Public Gists by leehambley

Gravatar
Sun Nov 22 11:47:17 -0800 2009
1
2
3
module Rack
  class NoIE
    def initialize(app, options = {})
Gravatar
Fri Nov 20 05:35:32 -0800 2009
1
2
3
# Throw this into your bash init file for automatic
# paging of a few svn commands, a la git.
 
Gravatar
Wed Nov 18 14:51:15 -0800 2009
1
2
3
form.formtastic { margin: 0; padding: 0; }
form.formtastic ul, form.formtastic ol, form.formtastic li, form.formtastic fieldset, form.formtastic legend, form.formtastic input, form.formtastic textarea, form.formtastic select, form.formtastic p { margin: 0; padding: 0; }
form.formtastic fieldset { bo
Gravatar
Wed Nov 11 07:00:25 -0800 2009
1
2
3
set :mercurial, '/usr/local/bin/hg'
set :mysql, '/opt/local/bin/mysql5'
 
Gravatar
Wed Nov 11 06:51:16 -0800 2009
1
2
3
set :mercurial, '/usr/local/bin/hg'
set :mysql, '/opt/local/bin/mysql5'
 
Gravatar
Wed Nov 11 06:50:24 -0800 2009
1
2
3
set :mercurial, '/usr/local/bin/hg'
set :mysql, '/opt/local/bin/mysql5'
 
Gravatar
Wed Nov 11 06:49:02 -0800 2009
1
2
3
set :mercurial, '/usr/local/bin/hg'
set :mysql, '/opt/local/bin/mysql5'
 
Gravatar
Wed Nov 11 00:10:51 -0800 2009
1
2
3
## Extract the logic,
class SpikeUserHelpers
  class << self
Gravatar
Fri Nov 06 00:44:06 -0800 2009
1
2
3
### Vim
 
`autocmd BufWritePre * :%s/\s\+$//e`
Gravatar
Wed Nov 04 06:46:42 -0800 2009
1
2
3
#!/usr/bin/env ruby
# encoding: utf-8
 
Gravatar
Tue Nov 03 09:16:53 -0800 2009
1
2
3
#!/usr/bin/env ruby19
# encoding: utf-16
 
Gravatar
Sat Oct 31 12:05:50 -0700 2009
1
2
3
Factory.define :account_with_users do |ac|
  ac.sequence(:name) { |n| "Account#{n}" }
  ac.sequence(:subdomain) { |n| "subdomain#{n}" }
Gravatar
Wed Oct 07 07:44:21 -0700 2009
1
2
3
capistrano_task_1 = mock('cap task')
capistrano_task_1.stub!(:description).and_return("Task Description 1. More Task Description Here")
capistrano_task_1.stub!(:fully_qualified_name).and_return("ezp:example:task_1")
Gravatar
Wed Oct 07 07:33:52 -0700 2009
1
2
3
capistrano_task_1 = mock()
capistrano_task_1.should_receive(:description).and_return("Task Description 1. More Task Description Here")
capistrano_task_1.should_recieve(:fully_qualified_name).and_return("ezp:example:task_1")
Gravatar
Wed Oct 07 04:54:05 -0700 2009
1
2
3
# Embedding Capistrano
cap = Capistrano::Configuration.new
cap.load('/path/to/deploy.rb')
Gravatar
Tue Oct 06 12:22:37 -0700 2009
1
2
leehambley /leehambley-tigglobal-release-system:echo $PS1
\[\033[1;35m\]\u \[\033[1;34m\]/\W:\[\033[0m\]
Gravatar
Tue Oct 06 09:08:34 -0700 2009
1
2
3
#/usr/bin/env ruby
 
class_name = "NewError"
Gravatar
Tue Oct 06 06:40:34 -0700 2009
1
2
3
#/usr/bin/env ruby
 
def hallo
Gravatar
Tue Oct 06 06:37:18 -0700 2009
1
2
3
Last login: Tue Oct 6 11:38:53 on ttys000
lee.hambley@~> echo "Hello World" | od -t o1
0000000 110 145 154 154 157 040 127 157 162 154 144 012
Gravatar
Tue Oct 06 02:47:59 -0700 2009
1
2
3
#/usr/bin/env ruby
 
def hallo