This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# etc ... | |
group :development do | |
# etc ... | |
# Sprites: | |
gem 'sprite-factory' | |
gem 'rmagick' | |
gem 'piet' # image optimization | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DEBUG Styles: | |
#time_of_day_debug { | |
position: fixed; | |
padding: .25em; | |
bottom: 0; | |
right: 0; | |
font-size: 10px; | |
> a { | |
display:block; | |
margin: .5em .5em .5em 1.1em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If sent as normal errors: | |
# Response: {"errors": { "email": ["Email address is invalid","Email address can't be blank"]} } | |
>> NewsletterSubscriber.new(:email_address => "").save | |
ArgumentError: wrong number of arguments(2 for 1) | |
from /Users/amoslanka/.rvm/gems/ruby-1.9.3-p194/gems/activeresource-3.2.8/lib/active_resource/validations.rb:19:in `[]' | |
from /Users/amoslanka/.rvm/gems/ruby-1.9.3-p194/gems/activeresource-3.2.8/lib/active_resource/validations.rb:19:in `block (2 levels) in from_array' | |
from /Users/amoslanka/.rvm/gems/ruby-1.9.3-p194/gems/activeresource-3.2.8/lib/active_resource/validations.rb:18:in `each' | |
from /Users/amoslanka/.rvm/gems/ruby-1.9.3-p194/gems/activeresource-3.2.8/lib/active_resource/validations.rb:18:in `detect' | |
from /Users/amoslanka/.rvm/gems/ruby-1.9.3-p194/gems/activeresource-3.2.8/lib/active_resource/validations.rb:18:in `block in from_array' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PG::Error: ERROR: relation "chores" does not exist | |
LINE 4: WHERE a.attrelid = '"chores"'::regclass | |
^ | |
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull | |
FROM pg_attribute a LEFT JOIN pg_attrdef d | |
ON a.attrelid = d.adrelid AND a.attnum = d.adnum | |
WHERE a.attrelid = '"chores"'::regclass | |
AND a.attnum > 0 AND NOT a.attisdropped | |
ORDER BY a.attnum | |
/Users/amoslanka/.rvm/gems/ruby-1.9.3-p194@jitb_cms/gems/activerecord-3.2.7/lib/active_record/connection_adapters/postgresql_adapter.rb:1158:in `async_exec' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveSupport::Inflector.inflections do |inflect| | |
inflect.irregular 'media', 'media' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rpush::Client::Redis::Apns::Feedback.all.each do |feedback| | |
if Device.exists?(feedback.device_token) | |
puts "Device exists: #{feedback.device_token}" | |
else | |
feedback.destroy | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export EDITOR=subl | |
export PATH="/usr/local/bin:/usr/local/sbin:$PATH" | |
export PATH="~/bin:$PATH" | |
# Configure RVM | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
# | |
# Aliases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Getting flickr thumbs for 'tcby' | |
Found 13 flickr thumbs | |
Started GET "/work/tcby-store-design" for 192.168.0.24 at 2012-05-01 15:51:49 -0700 | |
Processing by WorkDetailController#index as HTML | |
Parameters: {"id"=>"tcby-store-design"} | |
Category Load (0.3ms) SELECT `categories`.* FROM `categories` ORDER BY name asc | |
Industry Load (0.3ms) SELECT `industries`.* FROM `industries` ORDER BY name asc | |
Campaign Load (0.4ms) SELECT `campaigns`.* FROM `campaigns` WHERE `campaigns`.`live` = 1 AND `campaigns`.`slug` = 'tcby-store-design' LIMIT 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :sync_directories, ["public/assets", "public/galleries"] | |
set :sync_backups, 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install ruby1.9.1 ruby1.9.1-dev \ | |
rubygems1.9.1 irb1.9.1 ri1.9.1 rdoc1.9.1 \ | |
build-essential libopenssl-ruby1.9.1 libssl-dev zlib1g-dev | |
sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 400 \ | |
--slave /usr/share/man/man1/ruby.1.gz ruby.1.gz \ | |
/usr/share/man/man1/ruby1.9.1.1.gz \ | |
--slave /usr/bin/ri ri /usr/bin/ri1.9.1 \ |