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
TestApp::Application.configure do | |
# Settings specified here will take precedence over those in config/application.rb | |
# The production environment is meant for finished, "live" apps. | |
# Code is not reloaded between requests | |
config.cache_classes = true | |
config.assets.digest = true | |
config.assets.compile = false | |
config.assets.compress = true |
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
class Dog | |
# class variable | |
@@default_description = "A dog is a furry mammal." | |
attr_accessor :name | |
attr_accessor :age | |
attr_accessor :description | |
def initialize(name, description) |
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
require_relative "hang_play" | |
HangPlay.start | |
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
require_relative "hangman" | |
# figure out a random word to use for the game | |
class HangPlay | |
# Starts the hangman game | |
def self.start | |
@@game = Hangman.new("lemonade") | |
while true |
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
class Hangman | |
# This class will be used to run an instance of a hangman game | |
# It is only concerned with one run through of the game | |
# It is not responsible for human interaction | |
attr_accessor :word | |
attr_accessor :chances | |
attr_accessor :board |
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
require_relative "hangman" | |
# figure out a random word to use for the game | |
class HangPlay | |
# Starts the hangman game | |
def self.start | |
@@game = Hangman.new("lemonade") | |
self.show_round | |
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
# Returns true if sentence is a palindrome. | |
# racecar ---> true | |
# hello ---> false | |
# aba aba ---> true | |
# Never odd or even ---> true | |
def palindrome?(sentence) | |
# downcase the sentence | |
downcased_sentence = sentence.downcase | |
# remove all the spaces in the sentence |
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
cd ~/Documents/resume | |
# if you are using your computer | |
git config --global user.name "Monica Olinescu" | |
git config --global user.email "[email protected]" | |
# if you are the imacs | |
cd ~/Documents/resume | |
git config user.name "Monica Olinescu" |
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 { | |
margin: 0; | |
} | |
nav { | |
/*padding: 4px 0 8px 0;*/ | |
margin-top: 20px; | |
width: 100%; | |
height: 40px; | |
line-height: 40px; |
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
<html> | |
<head> | |
<title>Things Aaron made</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
<link href='http://fonts.googleapis.com/css?family=Sintony' rel='stylesheet' type='text/css'> | |
</head> | |
<body> | |
<nav> | |
<ul> |