Skip to content

Instantly share code, notes, and snippets.

View jdeerhake's full-sized avatar

John Deerhake jdeerhake

View GitHub Profile
@jdeerhake
jdeerhake / ftc.md
Last active December 10, 2017 18:42

French Toast Casserole

Ingredients

  • 1 loaf of bread
  • 8 eggs
  • 2 cups milk
  • 2 cups half & half
@jdeerhake
jdeerhake / fixlp.js
Last active December 13, 2017 01:32
NBA League Pass de-clutterer
var controls = jQuery('#lpControlsBotControls');
controls.hide();
jQuery('body')
.on('mouseover', function() { controls.show(); })
.on('mouseout', function() { controls.hide(); });
jQuery('game-video').css({
position: 'fixed',
left: 0,
https://www.dropbox.com/sh/ywird05onyjo8xp/AADTEjwE57d8L_EhHO89xjm9a?dl=0

Drag the following link to your browser's bookmark bar:

Goldstar Bookmarklet

Keybase proof

I hereby claim:

  • I am jdeerhake on github.
  • I am jdeerhake (https://keybase.io/jdeerhake) on keybase.
  • I have a public key whose fingerprint is 75D6 4BE5 B272 32B6 1E9C D8F7 98BC A6A1 D5B8 0C8D

To claim this, I am signing this object:

var foo = {};
with(foo) {
var a = 1;
b = 2;
}
foo.a //undefined
foo.b //undefined
window.a //1
@jdeerhake
jdeerhake / lol.js
Created October 30, 2013 08:43
An actual snipped from healthcare.gov
/* Needs to support x-domain requests */
/*
$(function() {
//Fallback for IE
if($.browser.msie) {
$('.span1 a.btn-mini.btn-lang').removeClass('nodisplay');
}else{
// Add lang button if it exist
if('en' == 'es'){
gem, call, qty, title
ruby, au, 120, Hey John did you know
emerald, si, 30, a cat was arrested in Russia for
amethyst, gg, 90, smuggling and hugging phones into prison, he was caught when
sapphire, ts, 50, guards noticed a package awkwardly strapped to his back
garnet, ts, 50, guards noticed a package awkwardly strapped to his back
sapphire, ts, 50, guards noticed a package awkwardly strapped to his back
@jdeerhake
jdeerhake / sure_payroll.js
Created January 28, 2013 21:36
Download all surepayroll paystubs
var JSZip=function(e,t){this.files={};this.root="";if(e){this.load(e,t)}};JSZip.signature={LOCAL_FILE_HEADER:"PK",CENTRAL_FILE_HEADER:"PK",CENTRAL_DIRECTORY_END:"PK",ZIP64_CENTRAL_DIRECTORY_LOCATOR:"PK",ZIP64_CENTRAL_DIRECTORY_END:"PK",DATA_DESCRIPTOR:"PK\b"};JSZip.defaults={base64:false,binary:false,dir:false,date:null};JSZip.prototype=function(){var e=function(e,t,n){this.name=e;this.data=t;this.options=n};e.prototype={asText:function(){var e=this.data;if(this.options.base64){e=JSZipBase64.decode(e)}if(this.options.binary){e=JSZip.prototype.utf8decode(e)}return e},asBinary:function(){var e=this.data;if(this.options.base64){e=JSZipBase64.decode(e)}if(!this.options.binary){e=JSZip.prototype.utf8encode(e)}return e},asUint8Array:function(){return JSZip.utils.string2Uint8Array(this.asBinary())},asArrayBuffer:function(){return JSZip.utils.string2Uint8Array(this.asBinary()).buffer}};var t=function(e,t){var n="",r;for(r=0;r<t;r++){n+=String.fromCharCode(e&255);e=e>>>8}return n};var n=function(){var e={},