1 == 1
1 == 2
2 != 1 1 != 1
| Steven Brooks | |
| Github: stevenabrooks | |
| Blog Url: stevenabrooks.github.io | |
| "Steven is a beast" | |
| Profile Picture: http://grfx.cstv.com/photos/schools/wake/sports/m-basebl/auto_action/6042660.jpeg | |
| Treehouse: teamtreehouse.com/stevenabrooks | |
| CoderWall: coderwall.com/stevenbrooks | |
| CodeSchool: codeschool.com/stevenabrooks | |
| Favorite Websites: twitter.com, facebook.com, t-nation.com, yahoo.com | |
| Previous Work Experience: |
| <ol> | |
| <li>Open the jar of jelly</li> | |
| <li>Open the har of peanut butter</li> | |
| <li>Take the loaf of bread out of the wrapping</li> | |
| <li>Take one piece of bread from the loaf of bread and place it on the plate</li> | |
| <li>With your left hand hold the piece of bread on the plate</li> | |
| <li>With your right hand hold the knife</li> | |
| <li>With the knife in your right hand, dip the knife into the open jar of peanut butter</li> | |
| <li>Collect peanut butter with the knife in the open peanut butter jar</li> | |
| <li>Spread the peanut butter that is currently on the knife onto the piece of bread located on the plate</li> |
| CREATE TABLE projects ( | |
| id int, | |
| title text, | |
| category text, | |
| funding_goal int, | |
| start_date text, | |
| end_date text | |
| ); | |
| CREATE TABLE users ( |
| # quiz.rb | |
| # Write a program that tells you the following: | |
| # | |
| # Hours in a year. How many hours are in a year? - 6pts | |
| # Minutes in a decade. How many minutes are in a decade? - 6pts | |
| # Your age in seconds. How many seconds old are you? - 6pts | |
| # | |
| # Define at least the following methods to accomplish these tasks: | |
| # |
| def fizzbuzz () | |
| number = 1 | |
| group_fizz = [] | |
| group_buzz = [] | |
| group_fizzbuzz = [] | |
| while number <= 50 | |
| case | |
| when number % 3 == 0 | |
| puts "fizz" | |
| group_fizz.push(number) |
| #Construct an array with your favorite foods. It should have at least 5 elements. | |
| array = ['Lobster', 'Bacon', 'Steak', 'Grilled Chicken', 'Ice Cream'] | |
| #Write a puts which returns your most favorite food out of the array. | |
| puts array[0] | |
| #Construct an array with the colors of the rainbow (ROYGBIV) |
| movies_by_genre = { 'rocky' => 'love', 'tropic thunder' => 'comedy', 'star wars' => 'unknown'} | |
| recipes = | |
| { | |
| :"steak" => ['steak', 'salt', 'pepper'], | |
| :"salad" => ['lettus', 'dressing'] | |
| } | |
| users = | |
| { |
| puts "hello".upcase | |
| puts "hello".upcase.downcase | |
| puts "hello".upcase.downcase.capitalize | |
| puts "hello".upcase.downcase.capitalize.concat(" world!") | |
| puts "hello".upcase.downcase.capitalize.concat(" world!").upcase |
| # Temperature bot is American but takes Celsius temperatures. | |
| # | |
| def temperature_bot(temp) | |
| case temp | |
| when temp = 18..22 | |
| "I like this temperature" | |
| else | |
| "This is uncomfortable for me" | |
| end | |
| end |