Skip to content

Instantly share code, notes, and snippets.

View ahimmelstoss's full-sized avatar

Amanda Himmelstoss ahimmelstoss

View GitHub Profile
@ahimmelstoss
ahimmelstoss / Alien Sandwich
Last active December 23, 2015 18:49
On making a peanut butter and jelly sandwich, for Aliens.
Place the plate in front of you with curve facing upward.
Open the bag of bread.
Take out two pieces of bread.
Place the bag of bread off to the side.
Place the two pieces of bread in on the plate so that they are vertical and parallel to each other.
Unscrew the jar of peanut butter.
Place the peanut butter jar lid off to the side.
Unscrew the jar of jelly.
Place the jelly jar lid off to the side.
Pick up the jar of peanut butter in one hand.
@ahimmelstoss
ahimmelstoss / Profile information
Created September 24, 2013 00:12
Handy profile information
Name: Amanda Himmelstoss
Github: http://github.com/ahimmelstoss
Blog: ahimmelstoss.github.io
Tagline: Aspiring builder.
Profile Picture: specific file on computer
Treehouse Account: http://teamtreehouse.com/ahimmelstoss
CoderWall Account: https://coderwall.com/ahimmelstoss
CodeSchool Account: http://www.codeschool.com/users/ahimmelstoss
Favorite Websites:
@ahimmelstoss
ahimmelstoss / magical.db
Created September 25, 2013 03:27
magical.db for SQL homework
CREATE TABLE wizards(
name TEXT,
age INTEGER
);
ALTER TABLE wizards ADD COLUMN color TEXT;
@ahimmelstoss
ahimmelstoss / ruby_basics_TODO
Created September 25, 2013 13:37
ruby basics TODO
# Download this file:
# https://gist.github.com/aviflombaum/28534c5d69edd2439a7d/download
# Run it from your terminal with:
# ruby ruby.basics.rb
# (Just make sure you are in the right directory)
# ======================================
# Ignore All This Code
# ======================================
@ahimmelstoss
ahimmelstoss / fizzbuzzhw.rb
Last active December 23, 2015 23:19
fizzbuzz homework
def fizzbuzz
for n in 1..50
if (n % 3== 0) && (n % 5 == 0)
puts "FizzBuzz"
elsif n % 3 == 0
puts "Fizz"
elsif n % 5 == 0
puts "Buzz"
else
nil
@ahimmelstoss
ahimmelstoss / quiz.rb
Last active December 23, 2015 23:19
ruby lecture 1 quiz
def seconds_in_minutes(minutes)
minutes * 60
end
puts seconds_in_minutes(2)
def minutes_in_hours(hours)
hours * 60
end
puts minutes_in_hours(3)
@ahimmelstoss
ahimmelstoss / firstprogram.rb
Last active December 23, 2015 23:19
first program, ruby lecture 1
song1 = 223
song2 = 215
song3 = 378
song4 = 324
song5 = 254
total_length = song1+song2+song3+song4+song5
puts total_length
length_minutes = total_length / 60.0
@ahimmelstoss
ahimmelstoss / namelettercount.rb
Last active December 23, 2015 23:19
a program that counts the letters in your name, given input. from chris pine's learn to program ch6.
puts "What is your first name?"
first_name = gets.chomp
puts "What is your middle name?"
middle_name = gets.chomp
puts "What is your last name?"
last_name = gets.chomp
puts "Did you know that here are " + (first_name.length + middle_name.length + last_name.length).to_s + " characters"
puts "in your name, " + first_name.capitalize + " " + middle_name.capitalize + " " + last_name.capitalize + "?"
@ahimmelstoss
ahimmelstoss / angryboss.rb
Last active December 23, 2015 23:19
angry boss program, from chris pine's ch6
puts "WHAT DO YOU WANT?"
request = gets.chomp
puts "WHAT DO YOU MEAN, " + "'" + request.upcase.to_s + "'" + "?! YOU'RE FIRED!!"
require 'awesome_print'
songs = [
"The Magnetic Fields - 69 Love Songs - Parades Go By",
"The Magnetic Fields - Get Lost - Smoke and Mirrors",
"Neutral Milk Hotel - In An Aeroplane Over the Sea - Holland 1945",
"The Magnetic Fields - Get Lost - You, Me, and the Moon",
"The Magnetic Fields - 69 Love Songs - The Book of Love",
"Neutral Milk Hotel - In An Aeroplane Over the Sea - The King of Carrot Flowers"
]