Skip to content

Instantly share code, notes, and snippets.

define eval
call(rb_p(rb_eval_string_protect($arg0,(int*)0)))
end
define redirect_stdout
call rb_eval_string("$_old_stdout, $stdout = $stdout, File.open('/tmp/ruby-debug.' + Process.pid.to_s, 'a'); $stdout.sync = true")
end
@fevrisn
fevrisn / about.md
Created September 23, 2012 12:18 — forked from trey/about.md
Show how Git branches relate to your current branch.
module ActiveSupport
module Cache
class Store
protected
# Append to an entry from the cache implementation. Subclasses must implement this method.
def append(name, value, options = nil)
raise NotImplementedError.new("#{self.class.name} does not support append")
end
end
echo -e '\n" Associate .as to ActionScript\nau BufNewFile,BufRead *.as set filetype=actionscript' >> ~/.vimrc