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
#1 Define a fizzbuzz method to do the following: | |
def fizzbuzz_it(number) | |
if number % 3 == 0 && number % 5 == 0 | |
return "FizzBuzz" | |
elsif number % 3 == 0 | |
return "Fizz" | |
elsif number % 5 == 0 | |
return "Buzz" | |
end |
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
[23:35:51] code | |
-> mkdir artists | |
[23:35:55] code | |
-> cd artists/ | |
[23:35:58] artists | |
-> sqlite3 artists.db | |
SQLite version 3.7.12 2012-04-03 19:43:07 | |
Enter ".help" for instructions | |
Enter SQL statements terminated with a ";" | |
sqlite> CREATE TABLE artists( |
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 remove_bread(slices) | |
Place alien hand in bag | |
Grab slices | |
Remove alien hand from bag with slices in hand | |
Place_slices(prepare) | |
end | |
def place_slices(stage_of_meal) | |
if stage_of_meal == prepare | |
slices should be centered, next to each other. NOT on top of each other |
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
Name: Trevor McKendrick | |
Github: http://github.com/TrevMcKendrick | |
Blog: http://trevormckendrick.com | |
Tagline: Gets to the point | |
Profile Picture: http://www.trevormckendrick.com/headshot.jpg | |
Treehouse Account: http://teamtreehouse.com/trevormckendrick | |
CoderWall Account: https://coderwall.com/trevmckendrick | |
CodeSchool Account: http://www.codeschool.com/users/trevmckendrick | |
Favorite Websites: |
NewerOlder