This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE wizards( | |
name TEXT, | |
age INTEGER | |
); | |
ALTER TABLE wizards ADD COLUMN color TEXT; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# ====================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 + "?" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "WHAT DO YOU WANT?" | |
request = gets.chomp | |
puts "WHAT DO YOU MEAN, " + "'" + request.upcase.to_s + "'" + "?! YOU'RE FIRED!!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
] |
OlderNewer