Skip to content

Instantly share code, notes, and snippets.

View ryandhaase's full-sized avatar

Ryan D Haase ryandhaase

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ryandhaase on github.
  • I am ryandhaase (https://keybase.io/ryandhaase) on keybase.
  • I have a public key ASB_lpgj4kDpoSs0jjGx4WhK2LH9K225NXthuav1BHXTLQo

To claim this, I am signing this object:

@ryandhaase
ryandhaase / README.md
Created October 9, 2015 02:02 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@ryandhaase
ryandhaase / mortgage_affordability_zillow_api.md
Last active August 2, 2018 18:09
Mortgage Affordability Calculator - Built in Ruby on Rails

Mortgage Affordability Calculator - Built in Ruby on Rails

Functionality
  1. Send a GET request containing the following user inputs to Zillow's Mortgage Affordability API. Inputs as follows:
  • Annual Income, Monthly Payment, Down, Monthly Debts, Rate, Schedule, Term, Debt to Income, Income Tax, Property Tax, Hazard, PMI, HOA, ZIP
  1. A successful response from the GET request will contain the following attributes/information:
    • Affordability Amount, Monthly Principle and Interest, Monthly Property Tax, Monthly Hazard Insurance, Monthly PMI, Monthly HOA Dues, Total Monthly Payment, Total Payments, Total Interest Payments, Total Principal, Total Taxes Fees and Insurance, Monthly Income, Monthly Debts, Monthly Income Tax, Monthly Remaining Budget
Build:
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@ryandhaase
ryandhaase / Debugging_Code.md
Last active August 29, 2015 14:16
Debugging Code - Error Types

###NoMethodError

NoMethodError: undefined method `hello` for main:Object

Means that we tried to invoke the hello method, which has yet to be defined

###Wrong Number of Arguments - ArgumentError

ArgumentError
wrong number of arguments (2 for 1)
@ryandhaase
ryandhaase / models.md
Last active August 29, 2015 14:16
Models - How your Rails application communicates with a data store

###Models How your rails application communicates with a data store

t = Tweet.find(3)

In this app/models/tweet.rb file it finds:

class Tweet < ActiveRecord::Base
end
@ryandhaase
ryandhaase / CRUD
Created March 5, 2015 21:36
How to Create, Read, Update, and Delete - Hashes in a table
#This is text version of the video/slides from the first checkpoint in railsforzombies.org/levels/1
#Hash Structure (variable, key, values)
b = {
id: 3,
status: "I just ate some delicious brains",
zombie: "Jim"
}
#how to retrieve a value from the hash: