Skip to content

Instantly share code, notes, and snippets.

Ramen - Cocolo
Vietnamese - Monsieur Vuong
Schnitzel - Spätzle & Knödel
Sausage - Das Meisterstück
German Traditional - Augustiner am Gendarmenmarkt
Beer Garden - Prater Garten
[alias]
feelin-saucy = push -f origin master
feelin-extra-saucy = push -f
@ethangunderson
ethangunderson / gist:1189125
Created September 2, 2011 16:46
~/Library/Application\ Support/Propane/unsupported/caveatPatchor.js
var MD5 = function (string) {
function RotateLeft(lValue, iShiftBits) {
return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits));
}
function AddUnsigned(lX,lY) {
var lX4,lY4,lX8,lY8,lResult;
lX8 = (lX & 0x80000000);
lY8 = (lY & 0x80000000);
@ethangunderson
ethangunderson / gist:976785
Created May 17, 2011 16:24
Chicago Craft Beer Week
19th - http://www.chibeerweek.com/event/goose-island-sampling
20th - Rogue tap takeover at burger bar ($9 flights) - http://burgerbarchicago.com/?page_id=75
21st or 22nd - http://www.chibeerweek.com/event/free-brewery-tour-4
23rd - http://www.chibeerweek.com/event/goose-island-presents-twisted-goose
25th - http://chibeerweek.com/event/trolley-tour
- http://thefountchicago.myfullseat.com/events/703896-Chicago-Craft-Beer-Week-Local-Cask-Night
users.restaurants.find_or_create_by(:name => params[:name])
db.users.save( { email: 'ethan@ethangunderson.com', created_at: Date.now() } )
>> Event.all.select{ |e| e.is_a?(GroupEvent) }.count
=> 48
>> Event.all.select{ |e| e._type == 'GroupEvent' }.count
=> 5
insert/s query/s update/s delete/s getmore/s command/s flushes/s locked % idx miss % q t|r|w conn time
0 0 0 0 0 0 0 0.3 0 0|0|0 8 15:22:00
0 0 0 0 0 0 0 0.6 0 0|0|0 8 15:22:10
0 0 0 0 0 0 0 0.7 0 0|0|0 8 15:22:20
0 0 0 0 0 0 0 0.3 0 0|0|0 8 15:22:31
0 0 0 0 0 0 0 0.2 0 0|0|0 8 15:22:41
0 0 0 0 0 0 0 7.6 0 0|0|0 8 15:22:51
0 0 0 0 0 0 0 0 0 0|0|0 8 15:23:01
0 0 0 0 0 0 0 0 0 0|0|0 8 15:23:11
heroku config --long | ruby -pe "\$_ = \$_.gsub(/(\w+)\s+=> (.+)/, 'export \1=\2')" > /tmp/$$ && source /tmp/$$; rm /tmp/$$
#basic ingredients
recipe = {
:name => "pancakes"
:quantity => "17"
:ingredients => [ 'sugar', 'flour' ]
}
#more complex ingredients
recipe = {
:name => "pancakes"