Skip to content

Instantly share code, notes, and snippets.

View pat-whitrock's full-sized avatar

Pat Whitrock pat-whitrock

View GitHub Profile
@pat-whitrock
pat-whitrock / interview_questions.md
Created June 23, 2016 14:49
Interview Questions

Interview questions

Do you have a project you've worked on that you're proud of and want to show us?

Can you describe the domain and architecture of your app to us?

####What's a rails engine?

  • What is it used for?
  • Can you name an example?
@pat-whitrock
pat-whitrock / notes.md
Created June 17, 2016 16:55
Account Balance Plan
  • Goal
    • charges table becomes balance_adjustments table
    • Credit and Debit models inherit (STI) from BalanceAdjustment
      • add type column (:credit, :debit)
    • Account balance is Debit amounts less Credit amounts
    • Debits are created when ad spend is purchased
      • amount is the amount of FB dollars received
      • not the amount of dollars spent via stripe
        • this isn’t persisted
  • it can be gotten via stripe
@pat-whitrock
pat-whitrock / feedback.md
Created May 16, 2016 00:34
Feedback for Tiffany

README

Give your README some love. It's the first thing someone sees when they open your app. It doesn't need anything fancy, but at least give some basic setup instructions to get the app up and running (ruby version, bundling, rails server, how to run specs, etc). Basically just answer the questions that are in there as boilerplate. There may be developers that aren't familiar with rails reviewing your app and they'll appreciate it.

Gemfile

  • Remove anything you don't need
    • turbolinks
    • jbuilder
  • sdoc
"Hello world".split(" ")
# ["Hello world"]
"Hello world".split(" ")
# ["Hello", "world"]
class Peg
attr_reader :name
attr_accessor :values
def initialize(name)
@name = name
@values = []
end
def shift
@pat-whitrock
pat-whitrock / Pat Whitrock profile
Created February 4, 2014 03:56
Links, bio and info for Pat Whitrock
Name: Pat Whitrock
Github: https://github.com/pat-whitrock
Blog: pat-whitrock.github.io
Tagline: Doing things worth doing
Profile Picture: https://scontent-b-lga.xx.fbcdn.net/hphotos-ash3/t1/15286_4705760842444_708149735_n.jpg
Treehouse Account: http://teamtreehouse.com/patwhitrock
CoderWall Account: https://coderwall.com/pat-whitrock
CodeSchool Account: https://www.codeschool.com/users/571013
Favorite Websites: