Public Gists by wilson

Gravatar
Tue Oct 20 14:19:46 -0700 2009
1
2
3
# Run the bundler directly instead of relying on Rake to do it
if ARGV.any? {|task_name| task_name =~ /^gems:bundle$/}
  system "gem bundle"
Gravatar
Tue Oct 20 12:23:31 -0700 2009
1
2
3
---
gem: --no-ri --no-rdoc
:benchmark: false
Gravatar
Mon Oct 19 15:54:15 -0700 2009
1
2
3
<DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-08-15/">
  <reservationSet>
    <item>
Gravatar
Fri Oct 16 10:41:31 -0700 2009
1
2
3
obj = "something"
method_name = "foo"
obj.instance_eval <<-CODE
Gravatar
Mon Oct 05 15:25:23 -0700 2009
1
2
3
(gdb) r
Starting program: /Users/wilson/code/rbx/bin/rbx -P stuff.rb
Reading symbols for shared libraries +++. done
Gravatar
Mon Oct 05 14:48:36 -0700 2009
1
2
3
data = {}
choices = ('a'..'z').to_a
100_000.times do |i|
Gravatar
Mon Aug 24 20:28:25 -0700 2009
1
2
3
# > {:x => 4, :y => 7}.keys_sorted_by_value
# [:y, :x]
class Hash
Gravatar
Mon Jul 27 11:47:24 -0700 2009
1
2
3
words = %w(one two three lol zarglezargle one two six jambo)
p words.select {|word| word if (word.length > 3)..(word.length > 5) }
 
gist: 92453 mongrel_object_track.conf
Gravatar
Thu Apr 09 06:12:02 -0700 2009
1
2
3
# Original code by Robert Klemme
OUT=open("objects.log","w")
OUT.sync = true
Gravatar
Wed Jan 14 06:53:43 -0800 2009
1
2
3
本拠> rake rspec:pre_commit ~/code/rspec-dev/example_rails_app
(in /Users/wilson/code/rspec-dev/example_rails_app)
running against rails 2.2.2
Gravatar
Tue Jan 13 21:09:58 -0800 2009
1
2
3
From 37e5dfb8c9f305d1df50abb1fff766fe741874c7 Mon Sep 17 00:00:00 2001
From: Wilson Bilkovich <wilson@supremetyrant.com>
Date: Wed, 14 Jan 2009 00:07:09 -0500
Gravatar
Mon Dec 08 11:51:52 -0800 2008
1
2
3
set background=dark
" ir_black has an 'after' hook
colorscheme ir_black
Gravatar
Mon Dec 08 11:50:19 -0800 2008
1
2
3
set nocompatible
set backspace=indent,eol,start whichwrap+=<,>,[,]
set history=50
Gravatar
Mon Dec 08 11:42:34 -0800 2008
1
2
3
# 本拠> git remote show origin
# * remote origin
# URL: git://repo.or.cz/MacVim.git
Gravatar
Thu Nov 20 08:29:52 -0800 2008
1
2
3
本拠> gem env ~/code/integrity
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.0
Gravatar
Thu Nov 20 08:10:44 -0800 2008
1
2
3
Installing gem integrity-0.1.1
Using local gem /usr/local/lib/ruby/gems/1.8/cache/integrity-0.1.1.gem
ERROR: Error installing integrity-0.1.1.gem:
Gravatar
Wed Oct 22 08:57:29 -0700 2008
1
2
3
t = Thread.new do
  sleep 100_000
end
Gravatar
Wed Oct 08 15:47:23 -0700 2008
1
2
3
desc "Build MacVim and copy MacVim.app to the root of the checkout"
task :package do
  cd "src"
Gravatar
Wed Oct 08 15:47:03 -0700 2008
1
2
3
desc "Build MacVim and copy MacVim.app to the root of the checkout"
task :package do
  cd "src"
Gravatar
Tue Sep 30 13:30:25 -0700 2008
1
2
3
  ##
  # Sets all the default values. Should only be called once. Use reset
  # if you need to restore values.