My Recent Pastes (109 and counting)
Pastes by halorgium (109 and counting)
Below are the 15 most recent pasties by halorgium.
July 01, 2007
8:16AM EDT
by halorgium
View all 18 lines
## Updated version require 'rubygems' $:.unshift '/Users/tim/Projects/capistrano/fixes/block_variable_eval/lib' require 'capistrano'
July 01, 2007
8:15AM EDT
by halorgium
View all 42 lines
## Broken version using current capistrano require 'rubygems' require 'capistrano'
June 30, 2007
12:09PM EDT
by halorgium
View all 69 lines
## Defining module ActiveRecord module Acts module Commentable
June 30, 2007
11:58AM EDT
by halorgium
View all 15 lines
module ActiveRecord module Acts module Commentable def self.included(base) base.extend(ClassMethods)
June 29, 2007
9:15AM EDT
by halorgium
View all 62 lines
## Usage [plaintext] This allows for access control of 3 levels: - No access - Pull access
June 29, 2007
3:02AM EDT
by halorgium
View all 19 lines
## Explanation [plaintext] Add .empty files into empty directories to stop mercurial from ignoring the directory. ## One-liner
June 26, 2007
6:24AM EDT
by halorgium
View all 12 lines
load 'deploy' if respond_to?(:namespace) # cap2 differentiator # run `cap broken' # See: # - lib/capistrano/recipes/deploy/strategy/base.rb:52
June 25, 2007
6:13AM EDT
by halorgium
View all 13 lines
class Schools < AR::Base has_many :attendees has_many :pupils, :through => :attendees end
June 25, 2007
5:49AM EDT
by halorgium
# I assumed you wanted '==' instead of '=' content_tag(:p, :class => (comment.name == "me" ? "author" : ""))
June 25, 2007
5:23AM EDT
by halorgium
View all 34 lines
## README [plaintext] Not exactly finished. It is useful to not try and choose a revision which the current directory doesn't exist at. Use svn log #{repo} to obtain the earliest revision. Or just choose the HEAD
June 25, 2007
5:03AM EDT
by halorgium
View all 41 lines
#!/usr/bin/env ruby class String # Some stuff used from http://pastie.caboo.se/73206
June 20, 2007
6:34PM EDT
by halorgium
View all 22 lines
T 192.168.1.185:60299 -> 192.107.171.189:80 [AP] GET /weblog/feed/ HTTP/1.1..Host: coders.meta.net.nz..User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20061201 Firefox/2.0.0.4 (Ub untu-feisty)..Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5..Accept-Language: en-us,en;q=0 .5..Accept-Encoding: gzip,deflate..Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7..Keep-Alive: 300..Connection: keep-alive..Cookie: __utma=172725937.570 418246.1182378347.1182378347.1182378347.1; __utmb=172725937; __utmc=172725937; __utmz=172725937.1182378347.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(n
June 20, 2007
8:12AM EDT
by halorgium
View all 22 lines
## The params params[:attach] = { :upload => #<IO>, :site => "foobar",
June 20, 2007
8:01AM EDT
by halorgium
View all 10 lines
def foo; end; method(:foo).arity #=> 0 def foo(a); end; method(:foo).arity #=> 1 def foo(a, b); end; method(:foo).arity
June 12, 2007
11:23PM EDT
by halorgium
View all 18 lines
a = Class.new # => #<Class:0xb71216ac> a.new # => #<#<Class:0xb71216ac>:0xb711fb54> def a.name; "Foo"; end
