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
Here’s the deck so I won’t bore anyone with details that don’t want them (: | |
Angry Hermit-Less | |
4 Arc Lightning | |
2 Sowing Salt (gee you play with 4 ports, how nice) | |
2 Earthquake (hermit, rebel, etc) | |
4 Avalanche Riders | |
4 Plow Under | |
4 Birds of Paradise | |
2 Rofellos, Llanowar Emissary | |
3 Yavimaya Elder (amazing how much damage he can do) |
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
{setup:"Our wedding was so beautiful,",punchline:"even the cake was in tiers"},{setup:"I'm reading a book on the history of glue",punchline:"I just can't seem to put it down"},{setup:"What do you call an Argentinian with a rubber toe?",punchline:"Roberto"},{setup:"I am terrified of elevators,",punchline:"I'm going to start taking steps to avoid them"},{setup:"Why do crabs never give to charity?",punchline:"Because they're shellfish."},{setup:"Why don't skeletons ever go trick or treating?",punchline:"Because they have no body to go with"},{setup:"What do you call cheese by itself?",punchline:"Provolone"},{setup:'"Ill call you later."',punchline:"Don't call me later, call me Dad"},{setup:"Dad, I'm hungry.",punchline:"Hello, Hungry. I'm Dad"},{setup:"Where does Fonzie like to go for lunch?",punchline:"Chick-Fil-Eyyyyyyyy"},{setup:"Did you hear about the cheese factory that exploded in France?",punchline:"There was nothing left but de Brie"},{setup:"I knew I shouldn’t have had the seafood",punchline:"I’m feeling |
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
/* | |
* LinkedList | |
* Very simple LinkedList implementation | |
*/ | |
function Node(item, next) { | |
this.item = item; | |
this.next = next; | |
} |
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 Plan = (function() { | |
// protected | |
var records = []; | |
// the Plan constructor | |
function Plan(id, price) { | |
this.id = id; | |
this.price = price; | |
records.push(this); |
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
if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm') | |
begin | |
rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME'])) | |
rvm_lib_path = File.join(rvm_path, 'lib') | |
#$LOAD_PATH.unshift rvm_lib_path | |
require 'rvm' | |
RVM.use_from_path! File.dirname(File.dirname(__FILE__)) | |
rescue LoadError | |
raise "RVM ruby lib is currently unavailable." | |
end |
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 start = new Date(); | |
setTimeout(function () { var end = new Date(); console.log("Timeout 3ms elapsed:", end - start, "ms"); }, 3); | |
setTimeout(function () { var end = new Date(); console.log("Timeout 2ms elapsed:", end - start, "ms"); }, 2); | |
setTimeout(function () { var end = new Date(); console.log("Timeout 1ms elapsed:", end - start, "ms"); }, 1); | |
while( new Date() - start < 2000 ) {} | |
setTimeout(function () { var end = new Date(); console.log("Timeout 0ms elapsed:", end - start, "ms"); }, 0); |
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
squareRoot = ( num ) -> | |
square = ( x ) -> x * x | |
avg = ( x, y ) -> (x + y) / 2 | |
goodEnough = ( x ) -> Math.abs( square( x ) - num ) < 0.01 | |
improveGuess = ( x ) -> avg( x, num/x ) | |
iter = ( guess ) -> | |
return guess if goodEnough guess | |
iter improveGuess guess | |
iter 1.0 |
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 longestCommonPrefix ( arr ) { | |
var result = ""; | |
var firstWord = arr[0]; | |
for ( var i = 0; i < firstWord.length; i++ ) { | |
for ( var j = 0; j < arr.length; j++) { | |
if ( firstWord[i] === arr[j][i]) { | |
continue; | |
} else { | |
return result; |
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 Foo () { | |
this.a = []; | |
} | |
+function Bar () { | |
+ Foo.call(this); | |
+} | |
-function Bar () {} | |
Bar.prototype = new Foo(); |
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 inspect = require('util').inspect, // To help with printing to console | |
log = console.log; | |
// Define class Foo | |
function Foo () { | |
this.a = []; | |
} | |
// Define class Bar which inherits from Foo | |
function Bar () {} |
NewerOlder