Discover gists
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
foo bar |
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/bin/bundle b/bin/bundle | |
index 6efdf51..7b57fac 100755 | |
--- a/bin/bundle | |
+++ b/bin/bundle | |
@@ -9,8 +9,23 @@ $:.each do |path| | |
end | |
require 'bundler/cli' | |
+ | |
begin |
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
Butts.send :butt=>'fart' | |
100.times {puts <<EOF | |
___ ___ ___ ___ ___ ___ ___ | |
/ / / / | / / / / / / / / / / | |
/__/ /__/ |/ / /__ /__/ / / / /__ /__ | |
/ | / \ / / / / \ / / / / / | |
/__/ / \ / /___ /___ / \ /__/ /__ /___ ___/ | |
EOF | |
} | |
puts <<EOF |
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
require "rubygems" | |
require "rake" | |
puts `ps -orss -p#{Process.pid}` | |
# Result | |
# RSS | |
# 6564 |
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
import re | |
import glob | |
import os | |
for i in files: | |
i = re.sub("papers", "notes", i.lower()) | |
i = re.sub(" ", ".", i) | |
i = re.sub("[-,?():]", "", i) | |
i = re.sub("\.+", ".", i) |
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
The answer to everything. |
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
njghjhg |
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
RubyFringe.teh_awesome? # => true |
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
require 'spec_helper' | |
describe GroupsController do | |
include SessionTestHelper | |
describe "GET 'show'" do | |
it "should load the group from the database" do | |
@the_group = Factory(:group) | |
Group.stub(:find_active_by_unique_name).with("london-developers"). | |
and_return(@the_group) |
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
require 'spec_helper' | |
describe GroupsController do | |
include SessionTestHelper | |
describe "GET 'show'" do | |
it "should load the group from the database" do | |
@the_group = Factory(:group) | |
Group.stub(:find_active_by_unique_name).with("london-developers"). | |
and_return(@the_group) |