Public Gists by cldwalker

Gravatar
Wed Sep 02 23:44:35 -0700 2009
1
2
3
# Customize description to include model class
class Hirb::Helpers::MyActiveRecordTable < Hirb::Helpers::ActiveRecordTable
  def self.render(rows, options={})
Gravatar
Thu Jul 23 04:34:18 -0700 2009
1
2
3
['readline', 'rubygems', 'bond','bond/completion', File.dirname(__FILE__) + '/../config/boot'].each {|e| require e }
["#{RAILS_ROOT}/config/environment", 'console_app', 'console_with_helpers'].each {|e| require e}
history_file = File.join(ENV["HOME"], '.myrb_history')
Gravatar
Thu Jul 23 04:28:21 -0700 2009
1
2
3
%w{readline rubygems bond bond/completion}.each {|e| require e }
history_file = File.join(ENV["HOME"], '.mini_irb_history')
IO.readlines(history_file).each {|e| Readline::HISTORY << e.chomp } if File.exists?(history_file)
Gravatar
Fri May 29 13:14:20 -0700 2009
1
2
3
# from http://www.xcombinator.com/2008/02/22/ruby-inject-and-the-mandelbrot-set
require 'complex'
  
Gravatar
Tue Apr 07 10:48:27 -0700 2009
1
2
3
CmdUtils.makeBookmarkletCommand({
  name: 'github-user',
  icon: "http://github.com/favicon.ico",
gist: 50171 explained at http://tagahol...
Gravatar
Wed Jan 21 12:34:08 -0800 2009
1
2
3
require 'ostruct'
 
class ConfigStruct < OpenStruct