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
jasonn:~ $ time brew install ack | |
==> Downloading http://github.com/petdance/ack/raw/f5556c48eb46100e1733f5a21b45a | |
######################################################################## 100.0% | |
/usr/local/Cellar/ack/1.92: 72K, built in 2 seconds | |
real 0m1.110s | |
user 0m0.104s | |
sys 0m0.124s | |
jasonn:~ $ |
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
# Given an original price of $5.00 | |
# When I order one my total price should be $5.00 | |
# When I order two my total price should be $8.35 | |
# When I order three my total price should be $11.70 | |
function calculate_price(quantity, orig_price) { | |
if (quantity == 1) { | |
price = orig_price * quantity; | |
} 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
app.get '/guess/:who/?' do | |
pass unless params[:who] == 'Frank' | |
"You got me!" | |
end | |
app.get '/guess/*/?' do | |
"You missed!" | |
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
def randomness | |
Time.now.min.odd? ? "" : "communitygeocode|GCLT #{geocode}" | |
end |