Skip to content

Instantly share code, notes, and snippets.

View skalnik's full-sized avatar
🐈

Mike Skalnik skalnik

🐈
View GitHub Profile
@skalnik
skalnik / gist:3813005
Created October 1, 2012 16:56 — forked from tomelm/gist:3772915
rails presentation outline for skalnik
  • linux users make sure you have sqlite3 and libsqlite3-dev
  • gem install rails
  • why rails?
  • github's on rail!
  • rails new
  • generates a shit ton of file, the fuck is all that for?
  • primarily going to be concerned with app/ and config/
  • routes
  • app/ => MVC
  • models
class Bandcamp
attr_accessor :tags
#=> Defines:
def tags
@tags
end
def tags=(tags)
@tags = tags
end
\newcounter{ct}
\newcommand{\Rate}[1]{
\forloop{ct}{0}{\value{ct} < #1}{\filledlargestar }
\forloop{ct}{\value{ct}}{\value{ct} < 5}{\largestar }
}