Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger
def quicksort(list) | |
case list | |
in [] | |
[] | |
in [first, *rest] | |
smaller, larger = rest.partition { |x| x < first } | |
quicksort(smaller) + [first] + quicksort(larger) | |
end | |
end | |
puts quicksort [7, 3, 2, 4, 5, 9, 1, 6] |
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
bigdecimal (1.2.6) | |
io-console (0.4.3) | |
json (1.8.1) | |
minitest (5.4.3) | |
power_assert (0.2.2) | |
psych (2.0.8) | |
rake (10.4.2) | |
rdoc (4.2.0) | |
test-unit (3.0.8) |
initdb /usr/local/var/postgres -E utf8 | |
createdb `whoami` | |
psql |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
url = git@github.com:joyent/node.git
fetch = +refs/heads/*:refs/remotes/origin/*
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths) |
npm config set prefix ~/npm | |
export PATH="$PATH:$HOME/npm/bin" |
--drb --color --format documentation |
.blah span:after { | |
content: " | "; | |
} | |
.blah span:last-child:after { | |
content: none; | |
} |