This file contains hidden or 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
anything in all caps is an object | |
Assuming that all the objects, their colors, positions, in the image are true: | |
on the TABLE there is a KNIFE, a PLATE, a JAR_OF_PEANUTBUTTER, and a JAR_OF_JELLY and a BAG OF BREAD. | |
a TABLE is defined as such: | |
it is orange | |
it is also square | |
objects can be placed upon it |
This file contains hidden or 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
Your Name: Joseph Giralt | |
Github Username: JoeGiralt | |
Blog Url (if you don't already have a blog it will be githubusername.github.io) : weatherlightus.tumblr.com | |
Tagline: Joe&Code | |
Profile Picture: will get back to you | |
Treehouse Account: http://teamtreehouse.com/josephgiralt | |
CoderWall Account: https://coderwall.com/joegiralt | |
CodeSchool Account: http://www.codeschool.com/users/weatherlight | |
Favorite Websites: "http://www.0100101110101101.org/home/copies/hell.com/index.html" | |
Previous Work Experience: army, thaiboxinginstructor, mosiacs, startup |
This file contains hidden or 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(oneminute = 1) | |
60 * oneminute #=> 60 | |
end | |
def minutes_in_hours(onehour = 1) | |
60 * onehour #=> 60 | |
end | |
def hours_in_days(oneday = 1) | |
24 * oneday #=> 24 |
This file contains hidden or 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 places | |
( | |
place_id INT, | |
name VARCAHR(20), | |
hometypename VARCHAR(20), | |
roomtype varchar(20), | |
accommodates INT, | |
city VARCHAR(20) | |
); |
This file contains hidden or 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 project | |
( | |
project_id INT, | |
title TEXT, | |
category TEXT, | |
funding_goal INT, | |
start_date TEXT, | |
end_date TEXT | |
); |
This file contains hidden or 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 project | |
( | |
project_id INT, | |
title TEXT, | |
category TEXT, | |
funding_goal INT, | |
start_date TEXT, | |
end_date TEXT | |
); |
This file contains hidden or 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
# Write an expression that returns true by using == | |
puts true == true | |
# Write an expression that returns false using == | |
puts true == false | |
# Write an expression that returns true using != Write an expression that returns false using != | |
puts false != true | |
puts false != false | |
# Write an if statement with 3 different branches use != in the first branch, == in the second, and > in the third | |
name="Joe" |
This file contains hidden or 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(count_up_to) | |
number = 1 | |
for number in 1..count_up_to | |
print "FizZ" if number%3 == 0 | |
print "BuzZ" if number%5 == 0 | |
puts "\n" | |
puts number unless (number%3 == 0) || (number%5 == 0) | |
puts "\n" | |
end | |
end |
This file contains hidden or 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
songs = [ | |
"The Phoenix - 1901", | |
`open http://www.youtube.com/watch?v=HL548cHH3OY` | |
"Tokyo Police Club - Wait Up", | |
`open http://www.youtube.com/watch?v=VARmJlPu6i4` | |
"Sufjan Stevens - Too Much", | |
`open http://www.youtube.com/watch?v=K0g7R3xqdcM` |
This file contains hidden or 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
# jukebox.rb | |
songs = [ | |
"The Phoenix - 1901", | |
"Tokyo Police Club - Wait Up", | |
"Sufjan Stevens - Too Much", | |
"The Naked and the Famous - Young Blood", | |
"(Far From) Home - Tiga", | |
"The Cults - Abducted", |
OlderNewer