Skip to content

Instantly share code, notes, and snippets.

View georgedrummond's full-sized avatar
:fishsticks:

George Drummond georgedrummond

:fishsticks:
  • GitHub Staff
  • Philadelphia
View GitHub Profile
SITE_ROOT = "#{File.dirname(__FILE__)}"
configuration.sass_options[:style] = :compressed
configuration.sass_options[:load_paths] = [SITE_ROOT + "/src/sass"]
configuration.use_extensions_for_page_links = false
*
:padding 0
:margin 0
body
:font-family arial
:font-size 13px
:color #333
.container
@georgedrummond
georgedrummond / currencies.json
Created May 8, 2011 23:59
accountsapp api - currencies
[
{
"currency":{
"name":"British Pounds",
"code":"GBP",
"id":1,
"unit":"\u00a3"
}
},
{
@georgedrummond
georgedrummond / gist:985346
Created May 22, 2011 10:39
install jammit
# Add to your Gemfile
gem 'jammit'
@georgedrummond
georgedrummond / gist:985352
Created May 22, 2011 10:42
serve static assets rails 3
# config/environments/production.rb
config.serve_static_assets = true
@georgedrummond
georgedrummond / gist:985357
Created May 22, 2011 10:45
install heroku jammit
heroku plugins:install git@github.com:kylejginavan/heroku_jammit.git
[remote "all"]
url = git@heroku.com:myapp.git
url = git@github.com:georgedrummond/myapp.git
Myapp::Application.routes.draw do
# signup.host.com
constraints :subdomain => "signup" do
resources :accounts
match "signup" => "accounts#new"
root :to => "accounts#new"
end
# Catch all subdomains except "signup.host.com"
127.0.0.1 signup.mydomain.dev test1.mydomain.dev test2.mydomain.dev
2012-09-25T22:44:14+00:00 app[web.1]: Started POST "/random_acts_of_kindness/2/received_kindnesses" for 81.157.45.246 at 2012-09-25 22:44:14 +0000
2012-09-25T22:44:14+00:00 app[web.1]: {"kindness_id"=>"37", "image"=>#<ActionDispatch::Http::UploadedFile:0x0000000719e6d0 @original_filename="kakow.gif", @content_type="image/gif", @headers="Content-Disposition: form-data; name=\"received_kindness[image]\"; filename=\"kakow.gif\"\r\nContent-Type: image/gif\r\n", @tempfile=#<File:/tmp/RackMultipart20120925-10-pshr7i>>, "how_receiver_feel"=>"", "how_receiver_will_spend"=>""}
2012-09-25T22:44:17+00:00 app[web.1]: #<Kindness id: 37, lat: #<BigDecimal:70595e0,'0.5149635283 260691E2',27(27)>, lng: #<BigDecimal:70594a0,'-0.6302861328 129E-1',18(27)>, location: nil, giver_id: 38, rak_blog_id: 2, receiver_id: 49, image: "", how_receiver_will_spend: "", how_receiver_feel: "", updated_at: "2012-09-25 18:37:38", address: "4 Collett Rd, Bermondsey, London Borough of Southwa...", flagged: false, flagged_comment: nil, giver_comm