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: Jack Altman | |
Github Username: Jaltman429 | |
Blog Url: jackealtman.com | |
Tagline: ? | |
Profile Picture (something normal, a headshot, of a good reusable size that can be easily cropped) | |
Treehouse Account: http://teamtreehouse.com/jackaltman | |
CoderWall Account: https://coderwall.com/jaltma | |
CodeSchool Account: Jaltman429 | |
Favorite Websites: Hackernews, twitter, quora, chess.com, svbtle, angelist.co, kickstarter. | |
Previous Work Experience: Currently an investor at Hydrazine Capital (Seed stage startup investing) |
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
DELIVERABLE: Create a numbered list that contains instructions for making a peanut butter and jelly sandwich. | |
FORMAT: Link to Public Gist | |
AUDIENCE: | |
Tourist Alien | |
CONSIDERATIONS: | |
The alien is positioned in front of a table with a plate, a knife, a jar of jelly, a jar of peanut butter, and a loaf of bread. | |
The alien can read and recognize english and english grammar, but does not necessarily understand what specific nouns refer to in the real world. |
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 == | |
# write an expression that returns false using == | |
# write an expression that returns true using != | |
# write an expression that returns false using != | |
puts 4 == 2 * 2 | |
puts 'jack' == 'JACK' | |
puts 'jack' != 'blob' |
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 | |
# FizzBuzz - The Programmer's Stairway to Heaven | |
# Define the fizzbuzz method to do the following: 10pts | |
# Use the modulo % method (divisible by) | |
# 2 % 2 #=> true | |
# 1 % 2 #=> false | |
# If a number is divisible by 3, puts "Fizz". | |
# If a number is divisible by 5, puts "Buzz". | |
# If a number is divisible by 3 and 5, puts "FizzBuzz" |
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
# jukebox.rb | |
class Jukebox | |
@@jukeboxes = [] | |
def initialize (name) | |
@@on = true | |
@name = name | |
@user_tracks = [] | |
@user_tracks << @name |
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 Hashes for the following use-cases. | |
# A movie collection that organizes by genres | |
# Recipes with ingredients | |
# User profiles where each user has a list of favorite colors along with 3 | |
# personal essays, essay_1, essay_2, essay_3 | |
# Just be creative, create a bunch of fake data just for the practice of how you would | |
# store this data in a structured hash. Feel free to create a single file, hashes.rb with | |
# a bunch of these and send them to me for review. There are really no wrong answers - |
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
# Construct an array with your favorite foods. It should have at least 5 elements. | |
# Write a puts which returns your most favorite food out of the array. | |
favorite_foods = ['pizza', 'bagel', 'sandwich', 'chicken', 'apple'] | |
favorite_foods.each_with_index do |food, index| | |
puts (index + 1).to_s + ". " + food.capitalize | |
end | |
puts "Which is your favorite food? Please pick a number." |
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
puts "Hello World".reverse | |
puts "Hello World".reverse.upcase | |
puts "Hello World".reverse.upcase.split | |
puts "Hello World".reverse.upcase.split.join(" ") | |
puts "Hello World".reverse.upcase.split.join(" ").reverse | |
puts "Hello World".reverse.upcase.split.join(" ").reverse.capitalize | |
puts "Hello World".reverse.upcase.split.join(" ").reverse.capitalize.concat('!') | |
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
# Temperature bot is American but takes Celsius temperatures. | |
# | |
def temperature_bot(temp) | |
case temp | |
when temp = 18,21,22 | |
"I like this temperature" | |
else | |
"This is uncomfortable for me" | |
end | |
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
# Hashketball Nests | |
# | |
# Great news! You're going to an NBA game! The only catch is that you've been | |
# volunteered to keep stats at the game. | |
# | |
# Using Nested Hashes, define a game, with two teams, their players, and the players stats: | |
# | |
# The game has two teams. | |
# | |
# A team has: |
OlderNewer