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 () { | |
try { | |
if (!google.doodle) google.doodle = {}; | |
var a = 200, | |
g = -200, | |
j = -200, | |
k, l, m, n = 0, | |
o = 0, | |
p = 0, | |
q = 35, |
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 Math2 = function() { | |
function sin(num) { | |
console.log('Compute'); | |
return Math.sin(num); | |
} | |
return { | |
sin: sin | |
} | |
}(); |
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 sin = function(n) | |
{ | |
if(sin.cache.hasOwnProperty(n)) return sin.cache[n]; | |
var result = Math.sin(n); | |
sin.cache[n] = result; | |
return result; | |
}; | |
sin.cache = {}; |
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
# | |
# CoffeeScript for http://dealloc.me/demos/crime/2011.html | |
# Copyright (c) 2011 Justin Palmer <http://github.com/Caged> | |
# LICENSE: http://www.opensource.org/licenses/mit-license.php | |
$ -> | |
hash = document.location.hash | |
year = if hash then hash.replace('#', '') else 2011 | |
[pt,pl,pb,pr] = [35, 20, 20, 20] | |
w = (900 - (pl + pr)) / 2 | |
h = w |
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
from thespian.actors import * | |
from datetime import datetime, timedelta | |
from logging import getLogger, basicConfig, DEBUG | |
from random import randint | |
basicConfig(level=DEBUG) | |
log = getLogger(__name__) | |
class Postman(Actor): |
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
# CommitBot | |
# An interface for audibly broadcasting commit messages | |
# Tested on OSX | |
# Created by the friendly team at Hunch.com (sharing is caring!) | |
# | |
# Installation | |
# 1. replace USERNAME, PASSWORD, and HOSTNAME below | |
# 2. ... | |
# 3. profit! |
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
#!/usr/bin/env ruby | |
require 'ftools' | |
require 'fileutils' | |
require 'rubygems' | |
require 'RMagick' | |
include Magick | |
require 'open3' | |
def merge( files = [] ) |
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
[12:06] <TrevorTSG> Ben! | |
[12:07] <TrevorTSG> I am a technical recruiter, ipsofacto, I have no idea what's | |
going on here, but I have a position for a jQuery stud up | |
for grabs if you're game | |
[12:07] <TrevorTSG> here in the Boston area | |
[12:09] <ben_alman> nope | |
[12:09] <TrevorTSG> But you have to give me props for stalking you all the way | |
into a jquery chat room, right? | |
[12:15] TrevorTSG left IRC. (Ping timeout: 250 seconds) |
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
# ~/.gitconfig from @boblet | |
# initially based on http://rails.wincent.com/wiki/Git_quickstart | |
[core] | |
excludesfile = /Users/oli/.gitignore | |
legacyheaders = false # >git 1.5 | |
quotepath = false | |
# http://stackoverflow.com/questions/136178/git-diff-handling-long-lines | |
pager = less -r | |
# if ↑ doesn’t work, try: pager = less -+$LESS -FRX |
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
module.exports = { | |
authors: | |
[ | |
{ | |
id: 'cory-house', | |
firstName: 'Cory', | |
lastName: 'House' | |
}, | |
{ | |
id: 'scott-allen', |
OlderNewer