Public Gists by xmlblog

Gravatar
Mon Aug 31 05:20:46 -0700 2009
1
2
3
#!/usr/bin/env ruby
puts "looking for the gems to upgrade..."
gem_info = Struct.new(:name, :version)
Gravatar
Wed Aug 19 20:48:16 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'rubygems'
gist: 170804 Ubuntu Chef Bootstrapper
Gravatar
Wed Aug 19 20:43:50 -0700 2009
1
2
3
#!/bin/sh
 
trap "exit 2" 1 2 3 13 15
Gravatar
Mon Aug 03 15:11:27 -0700 2009
1
2
3
class ItineraryTest < ActiveSupport::TestCase
  context "a 3-day Bahamas itinerary" do
    setup do
Gravatar
Mon Aug 03 15:10:34 -0700 2009
1
2
3
class Itinerary < ActiveRecord::Base
  has_many :events
 
Gravatar
Mon Aug 03 15:09:41 -0700 2009
1
2
3
class ItineraryTest < ActiveSupport::TestCase
  context "a 3-day Bahamas itinerary" do
    setup do
Gravatar
Mon Aug 03 15:08:19 -0700 2009
1
2
3
class Itinerary < ActiveRecord::Base
  has_many :events
  
Gravatar
Mon Aug 03 15:06:49 -0700 2009
1
2
3
class ItineraryTest < ActiveSupport::TestCase
  context "a 3-day Bahamas itinerary" do
    setup do
Gravatar
Mon Aug 03 15:04:39 -0700 2009
1
2
3
class Itinerary < ActiveRecord::Base
  has_many :events
  
Gravatar
Mon Aug 03 15:03:27 -0700 2009
1
2
3
depart 'MIA', 'Fri at 3pm'
arrive 'NAS', 'Sat at 8am'
depart 'NAS', 'Sat at 6pm'
gist: 160853 Idealized data format
Gravatar
Mon Aug 03 15:02:18 -0700 2009
1
2
3
depart MIA Fri at 3pm
arrive NAS Sat at 8am
depart NAS Sat at 6pm
Gravatar
Mon Aug 03 15:00:58 -0700 2009
1
2
3
class ItineraryTest < ActiveSupport::TestCase
  context "a 3-day Bahamas itinerary" do
    setup do
Gravatar
Mon Aug 03 14:58:21 -0700 2009
1
2
3
class Event < ActiveRecord::Base
  belongs_to :itinerary
  validates_presence_of :code, :port, :event_date
gist: 160689 Data Format for Specifying ...
Gravatar
Mon Aug 03 09:52:57 -0700 2009
1
2
3
  depart 'MIA', 'Fri at 3pm'
  arrive 'NAS', 'Sat at 8am'
  depart 'NAS', 'Sat at 6pm'
gist: 160688 (Partial) Test Case for Iti...
Gravatar
Mon Aug 03 09:51:38 -0700 2009
1
2
3
class ItineraryTest < Test::Unit::TestCase
  context "a 3-day Bahamas itinerary" do
    setup do
gist: 160687 Itinerary and Event classes
Gravatar
Mon Aug 03 09:50:09 -0700 2009
1
2
3
class Event < ActiveRecord::Base
  belongs_to :itinerary
  validates_presence_of :code, :port, :event_date
gist: 159362 Alias Method Chain for YUI ...
Gravatar
Fri Jul 31 11:35:27 -0700 2009
1
2
3
YAHOO.lang.augmentObject(YAHOO.tracking.Omniture, { alias_method_chain: function (fn_name, ext) {
this.prototype[fn_name + "_without_" + ext] = this.prototype[fn_name];
this.prototype[fn_name] = this.prototype[fn_name + "_with_" + ext];
Gravatar
Wed Jul 22 14:28:15 -0700 2009
1
2
3
diff --git a/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb b/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb
index bbc290f..ddd0089 100644
--- a/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb
Gravatar
Mon Jul 06 21:54:55 -0700 2009
1
2
3
# Hmmm, not sure I like it
# not much of an improvement
 
gist: 138432 My .irbrc
Gravatar
Tue Jun 30 14:17:13 -0700 2009
1
2
3
# The following gems are required:
# cldwalker-hirb, wirble, what_methods, map_by_method, irb-history
[ 'pp', 'fileutils', 'rubygems', 'wirble', 'hirb', 'irb/completion',