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 / 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 / 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 / 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_Mon(Day16).md
Last active December 19, 2015 11:49
RAILS!!!
@screamingmunch
screamingmunch / wk2_Tue(Day12).md
Last active December 19, 2015 06:29
jQuery, Code along exercise-memory game, rockpaperscisors HW
@screamingmunch
screamingmunch / Useful_Tools.md
Last active December 19, 2015 02:28
Useful Tools that we've installed and commands we use regularly..

##JavaScript

tools

  1. Install jshint and Node.js

wget https://raw.github.com/coolaj86/dotfiles/master/.jshintrc

then install node.js from http://nodejs.org/ or

@screamingmunch
screamingmunch / Wk2_Tues(Day7).md
Last active December 18, 2015 23:19
Networks, Sinatra

Networks:

"The Cloud" - marketing wise, it implies anything that has to do with the internet these days.

but when we're talking about networks, it means the connection of computers from point A to some other computer B.

Firewall- a computer that by default accepts no connections, and accepts a few exceptions

port 80 = HTTP, port 443 = HTTPS (S=secure)

@screamingmunch
screamingmunch / Wk1_Fri(Day5).md
Last active December 18, 2015 19:38
MVC/Testing, Classes, Modules
@screamingmunch
screamingmunch / Wk1_Thu(Day4).md
Last active December 18, 2015 18:28
More hashes, Classes & Modules

tl;dr

Useful Tools

*JSONView is a great way to view raw json files. *Evernote for notes

Symbol [for hash keys] functions differently in memory compared to strings. Ruby maintains that memory location directly thus making it more efficient.

Get pictures from flickr