I hereby claim:
- I am matt297 on github.
- I am matt297 (https://keybase.io/matt297) on keybase.
- I have a public key ASCDHJ1O5CLDjlJPde7o-7t6OuOczDdE-_fpXCU-CToefgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
user_input = "TESTPHONEN" | |
if user_input.length == 10 | |
user_input.each_char do |letter| | |
case letter | |
when("A".."C") then print "2" | |
when("D".."F") then print "3" | |
when("G".."I") then print "4" | |
when("J".."L") then print "5" | |
when("M".."O") then print "6" |
class DiskJockey | |
def initialize | |
@song_history = [] | |
end | |
def set_song(song, artist) | |
@song = song | |
@artist = artist | |
end |
# The initial solution looked like this: | |
(1..100).each do |x| | |
puts x | |
if x % 3 == 0 && x % 5 == 0 | |
puts "FizzBuzz" | |
elsif x % 3 == 0 | |
puts "Fizz" | |
elsif x % 5 == 0 |
These instructions will help you deploy your Finstagram app to Heroku (a web hosting service), so that the entire internet will be able to see and interact with your application! Before we get to deployment though, we need to make sure a couple of our files are setup properly.
Ensure your Gemfile
file contains the following code (should match exactly).
source "https://rubygems.org"
gem 'rake'
gem 'activesupport'
You have been tasked with creating a program that runs in the command line (bash). The program should ask for 2 numbers, a mathematical operator, and then execute the operation on the two numbers.
ruby yourfile.rb
)10
)5
)+
)15.0
)