Skip to content

Instantly share code, notes, and snippets.

View iterm_pastel_theme.sh
#!/bin/bash
PASTEL='{
"Ansi 0 Color" = {
"Blue Component" = 0.3097887;
"Green Component" = 0.3097887;
"Red Component" = 0.3097887;
};
"Ansi 1 Color" = {
"Blue Component" = 0.3764706;
View dr-pepper-barbecue-sauce.txt
1 tbsp olive oil 15 mL
1 small onion
3 cloves garlic, minced
1 tsp chili powder 5 mL
1 tsp ground cumin 5 mL
1 1/3 cups ketchup 325 mL
2/3 cup dr. pepper 150 mL
1/4 cup soy sauce 60 mL
1/4 cup cider vinegar 60 mL
1 drop liquid smoke
View gist:376714
# Is this good? Like on a scale of 1 - 10, 1 being, "oh god my eyes the burning I can't even"
# and 10 being, "DO IT MOAR!"
class Document
attr_accessor :foo, :bar
def initialize
if block_given?
yield self
end
View gist:292319
under RVM 1.8.7:
MBP:oss ed$ ruby -rubygems test.rb
Successfully installed thor-0.12.3
1 gem installed
/Users/ed/.rvm/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:31: warning: already initialized constant EXPR_BEG
/Users/ed/.rvm/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:32: warning: already initialized constant EXPR_MID
/Users/ed/.rvm/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:33: warning: already initialized constant EXPR_END
/Users/ed/.rvm/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:34: warning: already initialized constant EXPR_ARG
/Users/ed/.rvm/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:35: warning: already initialized constant EXPR_FNAME
View gist:292318
john-mbp:gem_filer john$ ruby -rubygems gem_runner_test.rb
Successfully installed thor-0.12.3
1 gem installed
/Users/john/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:31: warning: already initialized constant EXPR_BEG
/Users/john/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:32: warning: already initialized constant EXPR_MID
/Users/john/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:33: warning: already initialized constant EXPR_END
/Users/john/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:34: warning: already initialized constant EXPR_ARG
/Users/john/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:35: warning: already initialized constant EXPR_FNAME
/Users/john/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:36: warning: already initialized constant EXPR_DOT
/Users/john/.rvm/rubies/ruby-1.8.7-p248/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:37: warning: already initialized constant EXPR_CLASS
View gist:276366
Bryan:
macruby-nightly [ ]
ree-1.8.6-20090610 [ x86_64 ]
ree-1.8.7-2009.10 [ x86_64 ]
=> ruby-1.8.6-p383 [ x86_64 ]
ruby-1.9.1-p376 [ x86_64 ]
(default) ree-1.8.7-2009.10 [ x86_64 ]
system [ ]