This file contains hidden or 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
Friday | |
09.00 Keynote - Marcel Molina | |
10.00 Getting Git - Scott Chacon | |
10.45 Break | |
11.00 Building Blocks of Modularity - Jim Weirich | |
11.45 Break | |
12.00 Merb - Yehuda Katz | |
13.00 Lunch | |
14.30 Cannelloni Beats Spaghetti - Bruce Scharlau |
This file contains hidden or 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
puts I18n.public_methods.grep(/method/) | |
puts "\n\I18n.methods : "+ I18n.methods.sort.join("\n").to_s+"\n\n" |
This file contains hidden or 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 origin other_branch:other_branch | |
* [new branch] other_branch -> other_branch | |
git branch | |
* master | |
other_branch | |
git checkout other_branch |
This file contains hidden or 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
# command prompt | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
function proml { | |
local BLUE="\[\033[0;36m\]" | |
local RED="\[\033[0;31m\]" | |
local LIGHT_RED="\[\033[1;31m\]" | |
local GREEN="\[\033[0;32m\]" |
This file contains hidden or 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
# Monkey patch to add 3 decimal places to code/test ratio | |
# Add to rakefile | |
Rake::TaskManager.class_eval do | |
def remove_task(task_name) | |
@tasks.delete(task_name.to_s) | |
end | |
end | |
def remove_task(task_name) | |
Rake.application.remove_task(task_name) |
This file contains hidden or 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
Makes 6 regular or 8 smaller, takes about an hour or 40 mins if in a hurry. | |
For flour you can use white, wholemeal or my favourite: 50% untreated strong white flour (from Garboldisham mill) and 50% Hovis granary. | |
Even when I make wholemeal I use 50% white or they come out too heavy. | |
* 500g flour | |
* 280ml warm water | |
* 1.5 tsp yeast (like Allinson Dried Active Yeast) | |
* 1 tsp sugar |
This file contains hidden or 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
09.00 Keynote | |
10.30 Denormalizing Your Rails Application | |
11.30 I Think I Finally Understand Mocks | |
12.30 Getting the most out of ActiveRecord 3 with Arel | |
14.15 Taking the next step in Web Development with Document Databases | |
15.30 Rack Middleware Goodies | |
16.30 Distributed Architectures with Rack | |
09.00 Keynote | |
10.30 RTW (Real Time Web): WTF (What's That For)? |
This file contains hidden or 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
ndrop = v.length/10 | |
nkeep = v.length - 2*ndrop | |
trunc_mean = v.sort[ndrop,nkeep].sum/(1.0*nkeep) |
This file contains hidden or 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
a = [] | |
Mongoid.master.collections.each do |x| | |
x.index_information.map do |y| | |
a.push [y[1]["ns"], y[1]["name"], y[1]["key"].inspect, y[1]["unique"]] | |
end | |
end |
This file contains hidden or 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
case code | |
when 200; "OK" | |
when 201; "Created" | |
when 202; "Accepted" | |
when 203; "Non-Authoritative Information" | |
when 204; "No Content" | |
when 205; "Reset Content" | |
when 206; "Partial Content" | |
when 300; "Multiple Choices" | |
when 301; "Moved Permanently" |
OlderNewer