Public Gists by crnixon

Gravatar
Sat Oct 10 05:48:55 -0700 2009
1
2
3
> #kill-defaults
> Lines beginning with `>` are comments.
> Comments and empty lines are ignored.
Gravatar
Fri Sep 25 08:29:52 -0700 2009
1
2
3
watch('test/.+\.rb') { |md| system("ruby -Itest #{md[0]}")}
watch('app/models/(.+)\.rb') { |md| system("ruby -Itest test/unit/#{md[1]}_test.rb")}
watch('app/controllers/(.+)\.rb') { |md| system("ruby -Itest test/functional/#{md[1]}_test.rb")}
Gravatar
Wed Sep 23 07:55:51 -0700 2009
1
2
3
class Textbook < Book; end
t = Textbook.new(:title => 'American History X')
=> #<Textbook created_at: , title: American History X, author: , updated_at: , _id: , user_id: , copyright: >
Gravatar
Mon Aug 03 11:27:30 -0700 2009
1
2
3
export ORIGINAL_PATH=$PATH
 
function use_system_ruby {
Gravatar
Wed Jul 01 11:28:18 -0700 2009
1
2
3
module I18n
  module Backend
    class SnippetBackend < Simple
Gravatar
Mon Mar 02 09:27:02 -0800 2009
1
rstakeout 'touch tmp/restart.txt' '**/*'
Gravatar
Wed Dec 03 20:35:47 -0800 2008
1
2
3
// SWTApplication.scala
//
// Usage:
Gravatar
Wed Sep 24 12:28:40 -0700 2008
1
2
3
public class Floor {
  enum State { NO_ONE_WAITING, PASSENGERS_WAITING, LOADING }
  
Gravatar
Wed Sep 24 12:28:14 -0700 2008
1
2
3
public class Floor {
  enum State { NO_ONE_WAITING, PASSENGERS_WAITING, LOADING }
  
Gravatar
Fri Sep 19 07:06:41 -0700 2008
1
2
3
class String
  def char_split(chars)
    parser = lambda do |line, results|
Gravatar
Tue Sep 16 18:50:45 -0700 2008
1
2
3
# module: audit2
 
class Audit < Thor