- Run software update
- Download & install Command Line Tools for XCode
- Install iTerm2
- Dropbox
- Install 1Password and sync with Dropbox
- Install Google Chrome and enable syncing -- ensure 3rd party cookies are disabled
- Install homebrew
brew install git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
var keys = [], code = '38,38,40,40,37,39,37,39,66,65'; | |
var konami = function (e) { | |
keys.push(e.which); | |
if (keys.length >= 11 && keys.slice(-11).toString() !== code) { | |
keys = []; | |
/* do your konami thing here */ | |
} else if (keys.length > 11) { | |
keys.length = 11; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// Load browser shims | |
Modernizr.load([ | |
{ | |
test: window.JSON, | |
nope: 'libs/shims/json3.js' | |
}, | |
{ | |
test: Object.getOwnPropertyNames, | |
nope: "libs/shims/es5-shim.js", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
success: function(data){ | |
setTimeout(function(){ | |
_.each( data.objects, function( obj ) { | |
var t = new Todo({ | |
id: data.obj.id, | |
text: data.obj.text, | |
done: data.obj.done, | |
order: data.obj.order | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getEl = (function (doc) { | |
var getElementsByClassName = (function () { | |
return doc.getElementsByClassName ? | |
function (selector) { | |
return doc.getElementsByClassName(selector.split('.').pop()); | |
} : function (selector) { | |
var parts = selector.split("."), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Yepnope JS | |
* | |
* Version 0.2.6pre | |
* | |
* by Alex Sexton - [email protected] | |
* | |
* Tri-Licensed WTFPL, BSD, & MIT | |
*/ | |
(function(window, doc, undef) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
function domchanged(methods, type) { | |
$.each( methods.split(' '), function( i, method ) { | |
// Store a reference to the original method. | |
var orig = $.fn[ method ]; | |
// Override the original method. | |
$.fn[ method ] = function(){ | |
var args = arguments, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rough implementation, untested, etc | |
// Will obviously fail when non-overridden methods are used to change the DOM | |
(function($){ | |
$.fn.isAncestorOf = function( elem ) { | |
// If parent and child element are the same, return false | |
if (this[0] == elem[0]) return false; | |