This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
本拠> rake --trace ~/code/kgb/dharma | |
(in /Users/wilson/code/kgb/dharma) | |
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:14: warning: already initialized constant VERSION | |
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:14: warning: already initialized constant RubyGemsVersion | |
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:194: warning: already initialized constant MUTEX | |
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:196: warning: already initialized constant RubyGemsPackageVersion | |
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:202: warning: already initialized constant WIN_PATTERNS | |
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1079: warning: already initialized constant MARSHAL_SPEC_DIR | |
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1084: warning: already initialized constant YAML_SPEC_DIR | |
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/version.rb:72: warning: already initialized constant VERSION_PATTERN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load the environment constructed from the Gemfile | |
require 'vendor/bundled_gems/environment' | |
module Rails | |
class Boot | |
def run | |
load_initializer | |
extend_environment | |
Rails::Initializer.run(:set_load_path) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
本拠> git fetch | |
本拠> git cherry -v wilson/master | |
+ 6bb11cd7627f81f6bc81a8ba042ec0907fc19fe4 Avoid Symbol#to_proc, compatible with MRI 1.8.6 again. | |
+ 0ccaf87116defe87678499ea97c3640fb3188cce Give some 'require_as' examples in the README | |
本拠> git status | |
# On branch wilson | |
# Your branch is ahead of 'wilson/master' by 2 commits. | |
# | |
nothing to commit (working directory clean) | |
本拠> git rebase wilson/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set filetype=ruby | |
rails_ver = ">= 2.3.5" | |
gem "rails", rails_ver | |
gem "rake", ">= 0.8.7" | |
gem "haml", ">= 2.2.9" | |
gem "acts_as_list", ">= 0.1.2" | |
gem "authlogic", ">= 2.1.2" | |
gem "bunny", ">= 0.6.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def product(*arrays) | |
result = [] | |
arrays = arrays.map {|array| Type.coerce_to(array, Array, :to_ary)} | |
arrays.push self | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hg summary | |
# parent: 33780:28ef231a65a3 FIREFOX_3_6_3_BUILD1 FIREFOX_3_6_3_RELEASE | |
# Added tag FIREFOX_3_6_2_RELEASE for changeset d6e028dc1b68. CLOSED TREE | |
# branch: GECKO1922_20100315_RELBRANCH | |
. $topsrcdir/browser/config/mozconfig | |
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt | |
mk_add_options MOZ_MAKE_FLAGS="-s -j4" | |
mk_add_options MOZ_CO_PROJECT=browser | |
mk_add_options AUTOCONF=autoconf213 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
# Try to use the SystemTimer gem instead of Ruby's timeout library | |
# when running on Ruby 1.8.x. See: | |
# http://ph7spot.com/articles/system_timer | |
# We don't want to bother trying to load SystemTimer on jruby, | |
# ruby 1.9+ and rbx. | |
if !defined?(RUBY_ENGINE) || (RUBY_ENGINE == 'ruby' && RUBY_VERSION < '1.9.0') | |
require 'system_timer' | |
MemCacheTimer = SystemTimer | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
本拠> bin/rbx-build lib/ext/dl/extconf.rb |grep rbx ~/p/rbx | |
"bindir"=>"/Users/wilson/.rvm/rubies/rbx-head/rubinius/1.0/bin", | |
"RUBY_INSTALL_NAME"=>"rbx", | |
"ruby_install_name"=>"rbx", | |
"rubylibdir"=>"/Users/wilson/.rvm/rubies/rbx-head/rubinius/1.0/site", | |
"sitedir"=>"/Users/wilson/.rvm/rubies/rbx-head/rubinius/1.0/site", | |
"rubyhdrdir"=>"/Users/wilson/.rvm/rubies/rbx-head/rubinius/1.0/include", | |
"/Users/wilson/.rvm/rubies/rbx-head/rubinius/1.0/site/x86_64-darwin10.3.1", | |
"sitelibdir"=>"/Users/wilson/.rvm/rubies/rbx-head/rubinius/1.0/site", | |
"/Users/wilson/.rvm/rubies/rbx-head/rubinius/1.0/site/x86_64-darwin10.3.1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>ruby -v | |
ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10.3.1] | |
> which ruby | |
/Users/wilson/.rvm/rubies/ruby-1.8.7-p249/bin/ruby | |
> which rbx | |
rbx not found | |
> ./configure --prefix=/tmp/doesnotexist --skip-system | |
Configuring LLVM... | |
Checking for existing LLVM tree: not found. | |
Checking for prebuilt LLVM build... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text = "the quick brown fox jumped over the lazy dog" | |
text.scan(/(\w) /) do | |
p Regexp.last_match | |
end |