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
<!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' /> |
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
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; | |
} |
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
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; | |
} |
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
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" |
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
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 |
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
REATE TABLE hosts ( | |
id int, | |
name varchar(255), | |
phone int, | |
email varchar(255) | |
); | |
CREATE TABLE listings ( |
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
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; |
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 movies ( | |
id int, | |
title varchar(255), | |
directors varchar(255), | |
actors text, | |
release_year int, | |
category varchar(255), | |
price int | |
); |
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
# assignment.rb | |
# | |
# write an expression that returns true by using == | |
1 == "1".to_i | |
# write an expression that returns false using == | |
false == 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 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 |
OlderNewer