Skip to content

Instantly share code, notes, and snippets.

View cupofjoey's full-sized avatar

Joe Hill cupofjoey

View GitHub Profile

Keybase proof

I hereby claim:

  • I am cupofjoey on github.
  • I am mbishop (https://keybase.io/mbishop) on keybase.
  • I have a public key ASAT9WmMXv631NjYlvCNeSr227GRyY3nW1BraLWwhjFnugo

To claim this, I am signing this object:

@cupofjoey
cupofjoey / finish.index.html
Created December 11, 2016 20:19
JS30 Day 1
script>
function removeTransition(e) {
if (e.propertyName !== 'transform') return;
e.target.classList.remove('playing');
}
function playSound(e) {
const audio = document.querySelector(`audio[data-key="${e.keyCode}"]`);
const key = document.querySelector(`div[data-key="${e.keyCode}"]`);
if (!audio) return;

Keybase proof

I hereby claim:

  • I am cupofjoey on github.
  • I am mbishop (https://keybase.io/mbishop) on keybase.
  • I have a public key whose fingerprint is 6F09 B921 0C67 72F9 8E34 612F 5AF9 66FB C745 881F

To claim this, I am signing this object:

# Problem Statement
# Create a class Calculator, which performs addition and subtraction of two numbers at a time.
class Calculator
def add(a, b)
a+b
end
def subtract(a, b)
a-b
end
new_employee = {
"Joe Hill" => {
"Launch Academy Graduate" => true,
"Birthplace" => "Norfolk, VA",
"Technical Skills" => ["Ruby", "Rails", "HTML", "CSS"],
"Interests" => ["Movies", "Hockey", "Podcasts", "Comics", "Comedy", "Autism Advocate"],
"Currently Playing" => ["Clash of Clans", "Angry Birds: Transformers"],
"Beer Preference" => "Hefeweizen"
}
}
souq_cart = ["old paperback book", "potato", "red onion", "dried lemon", "frankincense",\
"medicinal herbs", "saffron", "glass spice jar", "red fabric", "orange fabric", \
"handicrafts", "small Persian rug", "medium Persian rug", "large Persian rug",\
"extra large Persian rug",]
#item_list is where the customer selection will be stored.
# souq_cart is the intial list to choose from
puts "Welcome! Please select from the list below!"
souq_cart.each do |stuff|
def greeter (name)
return name
end
def by_three? (n)
if n % 3 == 0
return n % 3 ==0
end
end
hot_dog = 1.27
hamburger = 4.17
funnel_cake = 3.79
ice_cream_sandwich = 0.75
puts "I'd like 2 hamburgers and two ice cream sandwiches, please."
order1 = (2*hamburger) + (2*ice_cream_sandwich)
puts "That will be " + "$" + order1.to_s + "!"
#visual break
puts "I'd like 8 funnel cakes and a hot dog, please."
@cupofjoey
cupofjoey / streetshow.rb
Created April 29, 2015 01:26
Launch Academy Week 1 Exercise
knife = 2.1 + 5 + 1 + 3 + 0.77
puts "Knife Juggling:"
puts knife
torch = 6 + 3.5 + 7
puts "Torch Juggling:"
puts torch
hand = 2 + 1
puts "Hand Balancing:"
puts hand
block = 0.75 + 0.43