Skip to content

Instantly share code, notes, and snippets.

View paulelliott's full-sized avatar

Paul Elliott paulelliott

View GitHub Profile
@paulelliott
paulelliott / gist:3718261
Created September 13, 2012 22:43
Call for postcards

Hello Family and Friends, I am writing to you on behalf of my little preschooler, Landon. He will be celebrating 100 days of school in 83 days and his class is attempting to collect 100 postcards from around the world by this day. Hence the reason for the early start:-) As the postcards come in, the child it is addressed to gets to find the city of origin on the map and will share with the class about the sender (if they know them). As a class they also discuss fun facts about the city. If you want to join in, and send a post card from your city, that would be fantastic! Feel free to forward this email to people you know who live in a different city from you. Can be anywhere in the world!! Or if you are travel, send a postcard! Thanks everyone!

Please send the postcard to:

Landon Elliott, Mrs. Judy’s Class
Merry Pat’s Preschool
1461 Fruit Cove Rd. S. St. Johns, FL 32259

@paulelliott
paulelliott / speaker.md
Created May 31, 2012 19:46 — forked from matiaskorhonen/speaker.md
Frozen Rails Talk Proposal
@paulelliott
paulelliott / speaker.md
Created May 31, 2012 19:34 — forked from matiaskorhonen/speaker.md
Frozen Rails Talk Proposal
@paulelliott
paulelliott / Procfile
Created October 4, 2011 10:54
Multiple unicorn workers on cedar
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
@paulelliott
paulelliott / cook.rb
Created May 4, 2011 16:43
reference to embedded document
class Employee
include Mongoid::Document
referenced_in :company
field :team_id, type: BSON::ObjectId
def team
company.teams.find(team_id)
end
@paulelliott
paulelliott / mongoid.yml
Created April 25, 2011 15:31
mongoid.yml for Heroku
production:
uri: <%= ENV['MONGOHQ_URL'] %>
---
gem: --no-rdoc --no-ri
:verbose: true
source 'http://rubygems.org'
gem 'carmen'
gem 'carrierwave'
gem 'decent_exposure'
gem 'devise'
gem 'fabrication'
gem 'ffaker'
gem 'fog'
gem 'haml-rails'
@paulelliott
paulelliott / comics_controller.rb
Created March 11, 2011 02:03
Merged create/update actions
class ComicsController < ApplicationController
respond_to :html
before_filter :authenticated
before_filter :authenticate_admin, except: :index
expose :comic
expose(:comics) do
User.find_by_username(params[:username]).try(:comics) || Comic.all
end