Skip to content

Instantly share code, notes, and snippets.

View RobAWilkinson's full-sized avatar

Rob Wilkinson RobAWilkinson

  • @oddballio
  • Austin, TX
View GitHub Profile

#Title: Rental App

###Type:

  • Lab / Homeowrk

###Time Required:

  • 2 hours+

###Prerequisites:

  • Ruby
data = {
name: "Snoogums",
weight: "130lb",
taxonomy: {
genus: "Boa",
species: "constrictor imperator"
},
location: "Brazil"
}
@RobAWilkinson
RobAWilkinson / quiz.md
Created April 8, 2015 05:44
Quiz_question.md

Create and show examples of inheritance with 3 seperate classes

  • Vertebrate which has a method has_spine? which returns true
  • Reptilia which extends Vertebrate has a method cold_blooded? which returns true
  • Aves which can fly but is not cold blooded.

Each of these classes should be able to be given and find out its name

require_relative "../quiz"
describe "divosor" do
it "takes an integer and returns an array of its divosors" do
expect(divisor(6)).to eq([1,2,3,6])
expect(divisor(10)).to eq([1,2,5,10])
expect(divisor(1)).to eq([1])
expect(divisor(27)).to eq([27,9,3,1])
expect(divisor(27)).to eq([1,3,9,27])
expect(divisor(37)).to eq([1,37])
{
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"es3": false,
"forin": true,
"freeze": true,
"immed": true,
"indent": 4,

#Javascript Events

##Learning Objectives

  • Create a listener for mouse events and respond with an action
  • Capture data from specific events and do something with it

#Introduction Any basic web app needs to use events and javascript that is triggered on pages

#Javascript Events

##Learning Objectives

  • Create a listener for mouse events and respond with an action
  • Capture data from specific events and do something with it

#Introduction Any basic web app needs to use events and javascript that is triggered on pages

#Javascript Events

##Learning Objectives

  • Create a listener for mouse events and respond with an action
  • Capture data from specific events and do something with it

#Introduction Any basic web app needs to use events and javascript that is triggered on pages

#Javascript Arrays, Loops, Iterating

##Learning Objectives

  • Describe why arrays are useful and how to use them effectively in JavaScript
  • Describe the difference between “for” Loops, “for..in” Loops, and “forEach”
  • create while loops and for loops
  • iterate through arrays