- Launch Chrome preferences
- Create a new entry under "Manage Search Engines" with the following fields:
This file contains hidden or 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
.btn-custom { | |
background-color: hsl(357, 59%, 43%) !important; | |
- filter: progid:DXImageTransform.Microsoft.gradient(startColorStr="hsl(357, 59%, 63%)", endColorStr="hsl(357, 59%, 43%)"); | |
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorStr="#D8696F", endColorStr="#AE2D33"); | |
background-repeat: repeat-x; | |
} |
This file contains hidden or 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
web: bundle exec unicorn_rails -p $PORT -c ./config/unicorn.rb | |
pg: postgres -D /usr/local/var/postgres | |
log: tail -f -n 0 log/development.log | |
guard: bundle exec guard | |
memcache: /usr/local/bin/memcached -v | |
redis: redis-server /usr/local/etc/redis.conf | |
worker: bundle exec rake resque:work |
This file contains hidden or 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
project $ heroku db:pull | |
Loaded Taps v0.3.23 | |
Auto-detected local database: postgres://[email protected]/pg91-dev?encoding=utf8 | |
Warning: Data in the database 'postgres://[email protected]/pg91-dev?encoding=utf8' will be overwritten and will not be recoverable. | |
[snip] | |
project $ heroku pg:promote HEROKU_SHARED_POSTGRESQL_PURPLE | |
project $ heroku db:push |
This file contains hidden or 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
// Will include jquery. The newline matters. | |
//= require jquery |
This file contains hidden or 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
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') | |
require 'active_record' | |
# The following initializer will load the necessary HStore modules with | |
# ActiveSupport.on_load(:active_record) in a Railtie | |
run_hstore_initializer | |
class Document < ActiveRecord::Base | |
end |
This file contains hidden or 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
var eol = {}; | |
// For more information on this organizational pattern, refer to James Yu's | |
// blog post titled "A Backbone.js Tutorial with Rails (Part 1)" referenced | |
// in the README. | |
var App = { | |
Views: {}, | |
Controllers: {}, | |
Collections: {}, | |
init: function() { |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require "net/http" | |
require "rexml/document" | |
class PicasawebDownloadClient | |
PICASAWEB = "picasaweb.google.com" | |
# Will return a list of links to every photo in an album |
This file contains hidden or 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
require "imgscalr-lib" # https://github.com/thebuzzmedia/imgscalr | |
require "jruby" | |
java_import "javax.imageio.ImageIO" | |
ImageIO.write( | |
com.thebuzzmedia.imgscalr.Scalr.resize( | |
ImageIO.read(java.io.File.new("iss.jpg")), | |
250), | |
"jpg", | |
java.io.File.new("iss_new.jpg")) |