Skip to content

Instantly share code, notes, and snippets.

View mjamesruggiero's full-sized avatar

Michael Ruggiero mjamesruggiero

View GitHub Profile
@mjamesruggiero
mjamesruggiero / calculate_cpm.rb
Created July 11, 2012 05:49
tiered CPM calcs
#!/usr/bin/env ruby
# mjamesuggiero
# Tue Jul 10 22:14:59 PDT 2012
# so embarrassed about this!
require 'test/unit'
class Cpm
def initialize(rate_in_cents, discounted_rate_in_cents, threshold)
@rate = rate_in_cents
@discounted_rate = discounted_rate_in_cents
@mjamesruggiero
mjamesruggiero / rails_best_practices_notes.md
Created June 22, 2012 05:26
rails best practices notes

Rails Best Practices from CodeSchool

I took the course Rails Best Practices from CodeSchool and wanted to share my impressions.

Overall

  • The tutorial assumes basic Rails knowledge
  • Lessons are videos with examples
  • Exercises are completed on Code School's site in a faux editor; the sit