Skip to content

Instantly share code, notes, and snippets.

View screamingmunch's full-sized avatar

Kristine screamingmunch

  • Dictionary.com
  • San Francisco, CA
View GitHub Profile
@screamingmunch
screamingmunch / wk4_Mon(Day16).md
Last active December 19, 2015 11:49
RAILS!!!
@screamingmunch
screamingmunch / wk4_Tue(Day17).md
Last active December 19, 2015 12:59
Rails Models!! Fat models skinny controllers

##MOMA App - first rails model app


ARTISTS - name, DoB, nationality, bio

PAINTINGS - style, title, date, artist_id

no id for artists because an artist can have multiple paintints. (ARTISTS has_many PAINTINGS, but PAINTING belongs to an ARTIST). Thus you don't need an id for the artists.

  1. create the new rails app, then generate the Artist Model (in terminal)
@screamingmunch
screamingmunch / wk4_Thu(Day19).md
Created July 11, 2013 18:13
Projects, Rspec for rails

ctrl T in sublime text lets you search for certain or file in your folder directory.

Diff. between a block & a proc: Block is an object and a Proc is not.

Projects-- api Rspec scaled down

@screamingmunch
screamingmunch / wk5_Mon(Day21).md
Last active December 19, 2015 18:49
Auth & Auth, User Sign-in/up/out, Sessions & Cookies, Bootstrap, Secure Password, Site navigation

##Project Week Cont'ed:

modeling.rb
Direct link
#http://guides.rubyonrails.org/association_basics.html#the-has-many-through-association
class Patient
  belongs_to :primary_care_physician, :class_name => "Physician"
end
@screamingmunch
screamingmunch / Wk5_Wed(Day23).md
Last active December 19, 2015 21:39
Devise, Heroku
# ,o888888o. 8 8888 88 8 8888 8888888888',8888'
# . 8888 `88. 8 8888 88 8 8888 ,8',8888'
# ,8 8888 `8b 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8b 8 8888 88 8 8888 ,8',8888'
# 88 8888 88 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8. 88 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8,8P 8 8888 88 8 8888 ,8',8888'
# `8 8888 ;8P ` 8888 ,8P 8 8888 ,8',8888'
# ` 8888 ,88'8. 8888 ,d8P 8 8888 ,8',8888'
@screamingmunch
screamingmunch / 0_reuse_code.js
Created September 30, 2013 23:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@screamingmunch
screamingmunch / debug_1.md
Last active December 24, 2015 17:09 — forked from OfTheDelmer/debug_1.md
Kristine's Quiz solution (Wk2D5)

#Debugging (Use The Duck… )

Find the errors in the following

1.) link rel="stylesheet"

@screamingmunch
screamingmunch / pothole_patrol.md
Created November 9, 2013 00:44
Project 2 - Pothole Patrol

##Pothole App

api's: google maps or leaflet

Amazon S3 (or paperclip)- photo storage

Twitter api

O-auth for user signin / Simple O-auth