I hereby claim:
- I am bds on github.
- I am bds (https://keybase.io/bds) on keybase.
- I have a public key whose fingerprint is F157 0BAD 213C 68E5 5989 5EB0 F101 7FA2 66D5 7F86
To claim this, I am signing this object:
DISABLE_PRY_RAILS=1 rails console |
mongoid-3.1.6/lib/mongoid/criterion/modifiable.rb |
I hereby claim:
To claim this, I am signing this object:
(rdb:1) begin model.association.find_by(label: field["name"]); rescue => e; puts e.class; end |
`say -v? | cut -f1 -d' '`.split("\n").each {|v| `say -v "#{v}" I love you`} |
find . -name *spec.rb |xargs grep -l 86400| xargs sed -i '' 's/86400/10/g' |
puts "\033[32m-\033[0m" * 79 |
require 'rack' | |
params = "car[][color]=blue&car[][doors]=2&car[][model][name]=acme&car[][model][country]=usa" | |
Rack::Utils.parse_nested_query(params) |
require 'rack/test' | |
browser = Rack::Test::Session.new(Rack::MockSession.new(Fooproject::Application)) | |
browser.get("/posts.json") | |
browser.post("/posts.json", {:id => 1}) |
# print the numbers 1 to 5 | |
(1..5).each do |page| | |
puts page | |
end | |
# print a url string with a page number inside | |
(1..5).each do |page| | |
puts "http://blog/scripted.com/page/#{page}" | |
end |