Skip to content

Instantly share code, notes, and snippets.

View joegiralt's full-sized avatar
💣
:p

Joseph Giralt joegiralt

💣
:p
View GitHub Profile
@joegiralt
joegiralt / Ruby 3 homework
Created June 8, 2013 22:48
homework for ruby 3
# 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"
@joegiralt
joegiralt / gist:5726850
Created June 7, 2013 03:17
Kick stater SQL type Exercise Join tables
CREATE TABLE project
(
project_id INT,
title TEXT,
category TEXT,
funding_goal INT,
start_date TEXT,
end_date TEXT
);
CREATE TABLE project
(
project_id INT,
title TEXT,
category TEXT,
funding_goal INT,
start_date TEXT,
end_date TEXT
);
CREATE TABLE places
(
place_id INT,
name VARCAHR(20),
hometypename VARCHAR(20),
roomtype varchar(20),
accommodates INT,
city VARCHAR(20)
);
@joegiralt
joegiralt / gist:5725043
Created June 6, 2013 21:18
just a matter of time
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
@joegiralt
joegiralt / joes-discription
Created June 4, 2013 04:30
Joe's Description
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
@joegiralt
joegiralt / alien_tourist
Created June 4, 2013 04:12
Alien tourist
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