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 / 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
@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 / 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
CREATE TABLE places
(
place_id INT,
name VARCAHR(20),
hometypename VARCHAR(20),
roomtype varchar(20),
accommodates INT,
city VARCHAR(20)
);
CREATE TABLE project
(
project_id INT,
title TEXT,
category TEXT,
funding_goal INT,
start_date TEXT,
end_date TEXT
);
@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
);
@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 / Homework 4.rb
Last active December 18, 2015 05:59
homework Fizz Buzz
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
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`
@joegiralt
joegiralt / jukebox.rb
Created June 10, 2013 18:30
jukebox app
# 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",