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/bash | |
cp $1 $1.bak | |
curl -s http://whatthecommit.com/index.txt > $1 | |
cat $1.bak >> $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
## statusbar | |
## | |
# default background for all statusbars. You can also give | |
# the default foreground color for statusbar items. | |
sb_background = "%4"; | |
# default bg color for active window status bar | |
sb_window_bg = "%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
(defun open (project) (interactive (list (read-directory-name "Peepopen for project: " "~/code/"))) | |
(flet ((textmate-project-root () (file-truename project))) | |
(peepopen-goto-file-gui))) | |
(global-set-key [(meta ?o)] 'open) |
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
source :gemcutter | |
group :runtime do | |
gem 'sinatra', '~>1.0' | |
gem 'rack', '~>1.0.0' | |
end | |
# vim:ft=ruby |
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
module Foo | |
module Bar | |
module Helper | |
def make_it_so | |
return where_i_came_from | |
end | |
end | |
end | |
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
if File.exists?("Gemfile") | |
# We are using bundler | |
_0_8_bundle_path = "vendor/gems" | |
if (gemfile = File.read("Gemfile")) =~ /^\s*bundle_path\s+"([^"])\"\s*$/ | |
_0_8_bundle_path = $1 | |
end | |
if File.exists?(_0_8_bundle_path / "environment.rb") | |
# we are using 0.8 | |
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
diff --git a/lib/bundler/setup.rb b/lib/bundler/setup.rb | |
index e984348..05bd7e6 100644 | |
--- a/lib/bundler/setup.rb | |
+++ b/lib/bundler/setup.rb | |
@@ -1,3 +1,7 @@ | |
-require 'bundler' | |
+begin | |
+ require '.bundle/environment.rb' | |
+rescue LoadError | |
+ require 'bundler' |
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
diff --git a/bundler.gemspec b/bundler.gemspec | |
index 7bd310e..160d1f9 100644 | |
--- a/bundler.gemspec | |
+++ b/bundler.gemspec | |
@@ -6,11 +6,11 @@ Gem::Specification.new do |s| | |
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version= | |
s.authors = ["Carl Lerche", "Yehuda Katz"] | |
- s.date = %q{2010-02-07} | |
+ s.date = %q{2010-02-09} |
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
gem 'rake' | |
gem 'rspec', :require => 'spec' | |
source 'http://gemcutter.org' |
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
gem 'rake' | |
group :never do | |
gem 'json' | |
end | |
source 'http://gemcutter.org' |