Skip to content

Instantly share code, notes, and snippets.

View dknoodle's full-sized avatar

Daniel Knoodle dknoodle

  • Invictus Gurus, LLC
  • Dallas, TX
View GitHub Profile
@dknoodle
dknoodle / window-controller.js
Created March 28, 2017 20:16 — forked from neilj/window-controller.js
Cross-tab window controller
function WindowController () {
this.id = Math.random();
this.isMaster = false;
this.others = {};
window.addEventListener( 'storage', this, false );
window.addEventListener( 'unload', this, false );
this.broadcast( 'hello' );
@dknoodle
dknoodle / states_hash.json
Created December 3, 2012 21:45 — forked from mshafrir/states_hash.json
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",