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
logger.info params.inspect |
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
namespace :deploy do | |
task :start do ; end | |
task :stop do ; end | |
task :restart do ; end | |
desc "Deploy the app" | |
task :default do | |
update | |
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
~ | |
└── work | |
├── bianchi_usa | |
│ ├── bike_designer_html5_prototype | |
│ └── pistafixie.com | |
├── rivendell_bicycle_works | |
│ └── rivendell.com | |
└── surly_bikes | |
└── surlybikes.com |
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
ln -s ~/work/rivendell_bicycle_works/rivendell.com ~/rivendell.com |
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
rm -rf ~/rivendell.com |
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
var solos = { | |
facebook: { | |
settings: { | |
api: 'https://graph.facebook.com/{username}/feed?limit={posts}&callback=?', | |
post_builder: build_facebook_post, | |
data_handler: function (data, settings, jq){ | |
$.each(data.data, function (i, item){ | |
$(jq).append(settings.post_builder(item, settings)); | |
}); |
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
var solos = {} | |
solos["facebook"] = { | |
settings: { | |
api: 'https://graph.facebook.com/{username}/feed?limit={posts}&callback=?', | |
post_builder: build_facebook_post, | |
data_handler: function (data, settings, jq){ | |
$.each(data.data, function (i, item){ | |
$(jq).append(settings.post_builder(item, settings)); |
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
# Example showing how to add permalinks to a model | |
rails g migration AddPermalinksToAssets permalink:string | |
rake db:migrate | |
# In models | |
def to_param | |
permalink | |
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
set tabstop=2 | |
set smarttab | |
set shiftwidth=2 | |
set autoindent | |
set expandtab |
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
<%= @neighborhoods.to_json(:include => {:addresses => {:include => :spot}}).html_safe %> |