Public Gists by smtlaissezfaire

Gravatar
Mon Aug 10 09:25:28 -0700 2009
1
2
3
# This is a stub used to help Spork delay the loading of the real ApplicationController
class ::ApplicationController < ActionController::Base
end
Gravatar
Thu Jul 30 15:21:17 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
=begin
Gravatar
Thu Jul 30 15:11:20 -0700 2009
1
test public gist
Gravatar
Mon Jun 15 22:45:36 -0700 2009
1
2
3
commit eeb9bccff949bfdd439f4541932432cbe7a120d8
Author: Scott Taylor <scott@railsnewbie.com>
Date: Tue Jun 16 01:07:47 2009 -0400
Gravatar
Wed Jun 10 21:54:57 -0700 2009
1
2
3
---------------------------------------------------- Exception#backtrace
     exception.backtrace => array
 
Gravatar
Wed Jun 10 21:50:41 -0700 2009
1
2
3
begin
  raise "boom"
rescue
Gravatar
Wed Jun 10 21:50:22 -0700 2009
1
2
3
begin
  raise "boom"
rescue => e
Gravatar
Sun May 24 01:22:48 -0700 2009
1
2
3
#!/usr/bin/env ruby
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
require 'spec/autorun'
Gravatar
Sat May 23 22:36:30 -0700 2009
1
2
3
scott-taylors-macbook-pro:rubyspec(master) smt$ sudo chicken-install readline
retrieving ...
connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
Gravatar
Fri May 22 18:22:23 -0700 2009
1
2
3
>> class Wrapper
>> extend FixtureReplacement
>> end
Gravatar
Fri May 22 18:21:30 -0700 2009
1
2
3
>> class Wrapper
>> extend FixtureReplacement
>> end
Gravatar
Fri May 22 18:21:06 -0700 2009
1
2
3
>> FixtureReplacement.attributes_for :user, :class => Member do |u|
?> u.name = "Bob"
>> end
Gravatar
Fri May 22 18:20:26 -0700 2009
1
2
3
smt$ ./script/console
Loading development environment (Rails 2.0.2)
>> FixtureReplacement.create_member
Gravatar
Fri May 22 16:37:00 -0700 2009
1
2
3
scott-taylors-macbook-pro:flavorpill_com(venue_management) smt$ sc
Loading development environment (Rails 2.0.2)
include FR>> include FR
Gravatar
Wed May 20 00:33:43 -0700 2009
1
2
3
 
The following grammar:
 
Gravatar
Sun May 10 23:31:46 -0700 2009
1
2
3
 
   58
   59 table_name = nil
Gravatar
Sun May 10 23:30:05 -0700 2009
1
2
3
  table_name = nil
  
  SQLCreateTableParser.on :TABLE_NAME do |str|
Gravatar
Tue Mar 24 11:46:21 -0700 2009
1
2
3
# Example MySQL config file for very large systems.
#
# This is for a large system with memory of 1G-2G where the system runs mainly
Gravatar
Fri Mar 20 18:19:03 -0700 2009
1
2
3
>> obj = Object.new
=> #<Object:0x2098b0>
>> module Foo
Gravatar
Fri Mar 20 18:18:46 -0700 2009
1
2
3
>> obj = Object.new
=> #<Object:0x2098b0>
>> module Foo