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> | |
<head> | |
<title>Hi!, I’m israel Ochoa</title> | |
<link rel="stylesheet" type="text/css" href="css/main.css" /> | |
<link href='http://fonts.googleapis.com/css?family=Lato:400,900' rel='stylesheet' type='text/css'> | |
</head> |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>About Me</title> | |
<link rel="stylesheet" type="type/css" href="css/main.css" /> | |
</head> | |
<body> |
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"> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/topojson.v1.min.js"></script> | |
<script src="http://datamaps.github.io/scripts/datamaps.all.min.js"></script> | |
<title>Earthquake!</title> | |
</head> | |
<body> |
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
// ** Models ** | |
var Monkey = Backbone.Model.extend({ | |
defaults: { | |
joy: 0, | |
bananas: 5 | |
}, | |
eatBanana: function(){ | |
this.attributes.joy += 1; | |
this.attributes.bananas -= 1; |
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
//========================================PART 2 (BONUS)=========================================== | |
//=======================================Favorite Things=================================== | |
var my_array = ["Talking Heads", "Sonic Youth", "Television", "Tom Waits", "The Woes", "They Might Be Giants", "Sleater-Kinney", "Wilco", "Stereolab", "The Woes", "Reggie Watts", "Radiohead", "Bjork", "Ted Leo", "Bob Dylan"]; | |
var num = 1; //Set 'num' to 1. Will Allow us to count.. | |
//..our first favorite band below. |
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 'bundler/setup' | |
Bundler.require(:default) | |
require 'musicbrainz' | |
require 'lastfm' | |
MusicBrainz.configure do |c| | |
# Application identity (required) | |
c.app_name = "BRAINZZZZ" | |
c.app_version = "1.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
def menu | |
@happiTails = Shelter.new | |
puts "Do you want to: " | |
puts "Show all animals (sa)" | |
puts "Show all clients (sc)" | |
puts "Create an animal (ca)" | |
puts "Create a client (cc)" | |
puts "Help a client adopt an animal (a)" | |
puts "Help a client put an animal up for adoption (p)? " |
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
module Wheeled | |
def wheeled? | |
true | |
end | |
def roll | |
puts "Yeah, buddy" | |
end | |
end | |
module Wooden |
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
@l_line = {:"8th Ave" => 1, :"6th" => 2, :"Union Square" => 3, :"3rd" => 4, :"1st" => 5} #DO I NEED TO MAKE THE SYMBOLS STRINGS? | |
@n_line = {:"8th St" => 1,:"Union Square" => 2, :"23rd N" => 3, :"28th N" => 4, :"34th" => 5, :"Times Square" => 6} | |
@six_line = {:"Astor Place" => 1, :"Union Square" => 2, :"23rd 6" => 3, :"28th 6" => 4, :"33rd" => 5, :"Grand Central" => 6} | |
def location | |
puts "Which stop are you at now?" | |
@here = gets.chomp.to_sym | |
train1 #Calls train1 | |
end |
NewerOlder