I hereby claim:
- I am kylekeesling on github.
- I am kylekeesling (https://keybase.io/kylekeesling) on keybase.
- I have a public key whose fingerprint is 4011 27E5 ADB2 5CC7 FC50 FF9C D906 21B5 5F82 D202
To claim this, I am signing this object:
| start_working() { cd ~/sites/$1; git pull; bundle install; rake db:migrate; subl .; } |
I hereby claim:
To claim this, I am signing this object:
| @media (max-width: $screen-xs-max) { | |
| .btn-group-responsive { | |
| width: 100%; | |
| margin-bottom: 10px; | |
| .pull-left, .pull-right { float: none; } | |
| .btn { | |
| border-radius: $btn-border-radius-small !important; | |
| display: block; | |
| width: 100%; | |
| padding-right: 0; |
| (1..1000).each do |number| | |
| if number % 7 == 0 | |
| puts "#{number} is divisible by 7" | |
| end | |
| end |
| $pets = [] | |
| $pets << { | |
| :name => 'Lallo', | |
| :nocturnal => false, | |
| :breed => 'Schnauzer', | |
| :talents => ['napping', 'rolling over', 'playing dead'], | |
| :legs => 4 | |
| } | |
| $pets << { |
| # Expected output: | |
| # YOU ARE x YEARS OLD IN DOG YEARS | |
| # Calculate dog years: | |
| # 1 dog year = 7 human years | |
| puts "Hello there, what's your age?" | |
| user_age = gets | |
| dog_years = user_age.to_i * 7 | |
| output_string = "you are #{dog_years} years old in dog years" |
| chatting = true | |
| byes = 0 | |
| while chatting | |
| puts "Ask Grandma a question:" | |
| said = gets.chomp! | |
| if said == "BYE" | |
| byes += 1 | |
| if byes > 2 | |
| chatting = false | |
| else |
| puts "Enter a starting year in the format YYYY" | |
| starting = gets.chomp!.to_i | |
| puts "Enter an ending year in the format YYYY" | |
| ending = gets.chomp!.to_i | |
| puts "LEAP YEARS between #{starting} and #{ending}" | |
| starting.upto(ending) do |year| | |
| divisible_by_4 = (year % 4) == 0 | |
| not_divisible_by_100 = (year % 100) != 0 | |
| divisible_by_400 = (year % 400) == 0 |
| num_bottles = 99 | |
| while num_bottles > 0 | |
| puts "#{num_bottles} bottles of beer on the wall, | |
| #{num_bottles} bottles of beer, take one down, pass it | |
| around, #{num_bottles - 1} bottles of beer on the wall!" | |
| num_bottles = num_bottles - 1 | |
| end |
| require_relative 'english_number.rb' #https://gist.github.com/kylekeesling/4b73a984421f120312de | |
| num_bottles = 999 | |
| while num_bottles > 0 | |
| puts "#{englishNumber(num_bottles)} bottles of beer on the wall, | |
| #{englishNumber(num_bottles)} bottles of beer, take one down, pass it | |
| around, #{englishNumber(num_bottles - 1)} bottles of beer on the wall!" | |
| num_bottles = num_bottles - 1 | |
| end |