Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<meta charset="UTF-8" />
<meta name="viewport" content ="width=device-width, minimum-scale=1.0, initial-scale=1.0">
<title>The Flatiron School</title>
<link rel='stylesheet' href="css/style.css" type='text/css' media='all' />
@deatheragetr
deatheragetr / CSS
Created June 3, 2013 20:23 — forked from mendelk/CSS
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
margin: 0;
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
@deatheragetr
deatheragetr / CSS
Last active December 18, 2015 01:08 — forked from mendelk/CSS
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
margin: 0;
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
@deatheragetr
deatheragetr / gist:5703240
Created June 4, 2013 02:49
PB&J making instructions
Okay alien (that's you), you see that there are some things in front of you.
One big object and then some small objects resting on top of it.
That big object is a "Table".
Now let me label those smaller objects.
1) the item all the way on your left is "Bread"
2) the item to the right of that is "Jelly"
3) and to the right of that, "Peanut Butter"
4) and to the right of that, "Knife"
5) and to the right of that, "Plate"
Okay, good. Remember from left-to-right: "Bread", "Jelly", "Peanut Butter", "Knife", "Plate"
@deatheragetr
deatheragetr / gist:5703374
Created June 4, 2013 03:26
Profile Content
Thomas Deatherage
Github: https://github.com/deatheragetr
Blog: deatheragetr.github.io
Tagline: Still thinking...
Pics:
Treehouse: http://teamtreehouse.com/thomasdeatherage
CoderWall: https://coderwall.com/deatheragetr
codeschool: http://www.codeschool.com/users/deatheragetr
Favorite Websites:
Quora
@deatheragetr
deatheragetr / gist:5721243
Last active December 18, 2015 03:49
AirBnB Listing
REATE TABLE hosts (
id int,
name varchar(255),
phone int,
email varchar(255)
);
CREATE TABLE listings (
@deatheragetr
deatheragetr / gist:5721324
Created June 6, 2013 12:59
Answers to AirBnB questions :)
SELECT * FROM listings WHERE city = 'SFO';
SELECT * FROM listings WHERE city = 'SFO' AND host_id = 1;
SELECT * FROM listings WHERE room_type = 'shared';
SELECT * FROM listings WHERE room_type = 'private';
SELECT * FROM listings WHERE host_id = 3;
@deatheragetr
deatheragetr / gist:5723476
Last active December 18, 2015 04:09
Amazon Schtuff :)
CREATE TABLE movies (
id int,
title varchar(255),
directors varchar(255),
actors text,
release_year int,
category varchar(255),
price int
);
@deatheragetr
deatheragetr / gist:5737162
Created June 9, 2013 00:58
Logic Assignment
# assignment.rb
#
# write an expression that returns true by using ==
1 == "1".to_i
# write an expression that returns false using ==
false == nil
@deatheragetr
deatheragetr / gist:5737257
Created June 9, 2013 01:39
FizzBuzz And Fun
def fizzbuzz
i = 1
while i <= 50
if i % 3 == 0 && i % 5 == 0
puts "FizzBuzz"
elsif i % 3 == 0
puts "Fizz"
elsif i % 5 == 0
puts "Buzz"
end