Skip to content

Instantly share code, notes, and snippets.

{
":type": "application/vnd.playup.extension+json",
":uid": "tile.photo.featured.1",
":display": {
":self": "http://www.zombo.com/tileupdates.json",
":type": "application/vnd.playup.display.feature.photo+json",
"summary": "Photo Feature\nLorem ipsum dolor sit amet, consectetur adipisicing elit",
"image": "http://www.footballfedvic.com.au/uploads/pics/BoxHill_South_Emily_Web.jpg",
"footer_title": "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.",
"footer_subtitle": "Where sport gets social",
@skorks
skorks / asset_tag_helper.rb
Created July 8, 2011 09:16 — forked from matthewtodd/asset_tag_helper.rb
Rails + Sass + Asset Fingerprints + Heroku
# Ensure AssetTagHelper has been loaded before we try to monkey-patch it.
require 'action_view/helpers/asset_tag_helper'
module ActionView::Helpers::AssetTagHelper
# Insert the asset id in the filename, rather than in the query string. In
# addition to looking nicer, this also keeps any other static file handlers
# from preempting our Rack::StaticCache middleware, since these
# version-numbered files don't actually exist on disk.
def rewrite_asset_path(source)
source.insert source.rindex('.'), "-#{rails_asset_id(source)}"
@skorks
skorks / deploy.rake
Created July 8, 2011 07:43 — forked from jbarnette/deploy.rake
Heroku deploy via rake
# Hoptoad integration example.
task "deploy:before" => "isolate:dotgems" do
if /\.gems/ =~ `git status`
abort "Changed gems. Commit '.gems' and deploy again."
end
ENV["TO"] = Deploy.env
end