Skip to content

Instantly share code, notes, and snippets.

@erikformella
erikformella / omfgnyan.js
Created April 29, 2012 21:00
OMFGDOGS.com to NYAN.cat convertor bookmarklet (Speedproject)
// Just a quick hack for the cat lover in all of us
// Hijacks OMFGDOGS.com, and injects some Nyan Loveliness in there instead
// This is a bookmarklet! Copy and paste the code into an existing bookmark's URL, and rename it!
javascript:document.body.style.background='url(http://f.cl.ly/items/0x1J350B3E3t1h1b1m2r/0002.gif)';soundManager.stop('omfgdogs');soundManager.createSound({id: 'omfgnyan',url: 'http://iwantaneff.in/nyan.mp3',volume: 50,autoPlay: true,loops:999});void(0);
class ActionDispatch::Routing::Mapper
def draw(routes_name)
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb")))
end
end
BCX::Application.routes.draw do
draw :api
draw :account
draw :session