Skip to content

Instantly share code, notes, and snippets.

View lorenzbaum's full-sized avatar
🎯
Focusing

Lorenz Baum lorenzbaum

🎯
Focusing
View GitHub Profile
@lorenzbaum
lorenzbaum / 1_primitive_comparison.js
Created July 1, 2017 11:52 — forked from nicbell/1_primitive_comparison.js
JavaScript object deep comparison. Comparing x === y, where x and y are values, return true or false. Comparing x === y, where x and y are objects, returns true if x and y refer to the same object. Otherwise, returns false even if the objects appear identical. Here is a solution to check if two objects are the same.
//Primitive Type Comparison
var a = 1;
var b = 1;
var c = a;
console.log(a == b); //true
console.log(a === b); //true
console.log(a == c); //true
console.log(a === c); //true
@lorenzbaum
lorenzbaum / StreamcloudEnhancer.user.js
Last active May 2, 2016 21:42
Prepares video for playback and enables download.
// ==UserScript==
// @name StreamCloud Enhancer
// @namespace lorenzbaum
// @description Prepares video for playback and enables download.
// @include *streamcloud.eu/*
// @copyright 2016, lorenzbaum
// @license MIT
// @version 0.2
// @grant none
// @downloadURL https://gist.github.com/lorenzbaum/973a1d75b340bcff4d7e8789c96fc454#file-streamcloudenhancer-user-js
@lorenzbaum
lorenzbaum / AES.java
Created February 26, 2016 19:12 — forked from dweymouth/AES.java
A Java class to perform password-based AES encryption and decryption
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <[email protected]> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. D. Weymouth 4/2014
* ----------------------------------------------------------------------------
*/
import java.io.*;