- 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
{ | |
"uid": 47777, // Dropbox user ID | |
"stripeId": "cus_xxx", // Stripe customer ID, used for payments | |
"donationRedeemed": false, // Flag to determine if the user has redeemed a PayPal donation | |
"isNewPro": true, // Flag to determine if the user should be shown the "new pro" pop up | |
"joined": "2013-02-06T03:42:28.825Z", // Date the user joined | |
"lastActivity": "2013-02-06T16:05:47.797Z", // Date of the account's last activity | |
"pro": true, // Flag to determine if the account is a Pro account | |
"token": "xxxx", // Dropbox OAuth token | |
"tokenSecret": "xxxx", // Dropbox OAuth token secret |
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
var EventEmitter = require("events").EventEmitter; | |
var emitter = new EventEmitter(); | |
emitter.once("foo", function() { | |
console.log("foo"); | |
}); | |
emitter.on("foo", function() { | |
console.log("bar"); |
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
Stream = require "stream" | |
class Base64Stream extends Stream | |
_queue: "" | |
_emitChunk: ( chunk ) -> | |
@emit "data", new Buffer chunk, "base64" | |
write: ( chunk ) -> |
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
{ | |
numMessages: "You have {numMessages, plural, one {one message} other {#{numMessages} messages}}." | |
} |
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
var obj = { | |
"ralph" : 1, | |
"jon" : 2, | |
"alex" : 3 | |
}; | |
function _with( fn, data ) { | |
var keys = Object.keys( data ), | |
values = keys.map(function( key ) { |
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
// This script exploits the fact that if you draw text on a | |
// canvas with a font stack that contains no available fonts, | |
// nothing gets drawn at all. So create a font stack with a | |
// single web font, and we can determine when it has been loaded. | |
var webfontCallback = (function() { | |
// Create a detached canvas with 1x1 dimensions | |
var canvas = document.createElement("canvas"), | |
context; |
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
var crypto = require('crypto'), | |
//sha1 = require('./sha1'), | |
http = require('http'), | |
https = require('https'), | |
url = require('url'), | |
util = require('util'), | |
querystring = require('querystring'), | |
_ = require("underscore"), | |
// OAuth constructor |
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 | |
}); |