Skip to content

Instantly share code, notes, and snippets.

@jciancio
Created October 13, 2016 15:07
Show Gist options
  • Save jciancio/c5b1a537894a5aaf776fe32da9b1bb21 to your computer and use it in GitHub Desktop.
Save jciancio/c5b1a537894a5aaf776fe32da9b1bb21 to your computer and use it in GitHub Desktop.
# tip = 40 * 0.20
# total = 40 + tip
# my_share = total /3
# puts my_share
# bill = 40
# num_of_people = 3
# tip_percent = 0.20
# tax = 1.07
# tip = bill * tip_percent
# total = bill + tip
# total = total * tax
# my_share = total /num_of_people
# puts "Your share of the bill is $#{my_share}"
# age = 12
# puts "I'm #{age} year's old"
# arr = [1, 2, 3]
# p arr.delete(3)
# p arr
# str = "ACME Supplies"
# # puts str.downcase
# str.downcase!
# puts str
name = "Joe Ciancio"
# # Chat
# name = name.split(" ").join.downcase!
# puts name
# # Email
# puts name
# a = 1
# a = a.next
# puts a
# a = 1
# a += 1 # a = a + 1
# puts a
# a -= 1 # a = a - 1
# a *= 3 # a = a * 3
# a /= 4 # a = a / 4
# API_KEY = 1
# API_KEY = 2
# NOT A GOOD IDEA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment