Skip to content

Instantly share code, notes, and snippets.

View adelcambre's full-sized avatar

Andy Delcambre adelcambre

View GitHub Profile
class Bar
end
class Bar
end
Created by hub

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

rbx-head :001 > foo
NameError: undefined local variable or method `foo' on an instance of Object.
from Kernel(Object)#foo (method_missing) at kernel/delta/kernel.rb:85
from { } in Object#irb_binding at (irb):1
rbx-head :002 > foo = 123 if false
=> nil
rbx-head :003 > foo
=> nil
@adelcambre
adelcambre / README.txt
Created January 20, 2011 21:43
make messages containing *green* green and containing *red* red in Propane
curl https://gist.github.com/raw/788740/4b337df4be4be4338e2466ef775cd685b57d9601/gistfile1.diff | patch -p0
#!/usr/bin/env ruby
def binding_play(&blk)
eval("__LINE__", blk)
end
puts binding_play {
puts "FOO"
}
#!/bin/bash
cp $1 $1.bak
curl -s http://whatthecommit.com/index.txt > $1
cat $1.bak >> $1
## statusbar
##
# default background for all statusbars. You can also give
# the default foreground color for statusbar items.
sb_background = "%4";
# default bg color for active window status bar
sb_window_bg = "%1";
@adelcambre
adelcambre / Gemfile
Created April 2, 2010 18:18 — forked from atmos/Gemfile
source :gemcutter
group :runtime do
gem 'sinatra', '~>1.0'
gem 'rack', '~>1.0.0'
end
# vim:ft=ruby