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
=begin | |
License: latest LGPL :D | |
As per my discussion with Gianni (@gf3), | |
http://twitter.com/phillmv/status/2659984348 | |
http://twitter.com/phillmv/status/2660026344 | |
http://twitter.com/phillmv/status/2660059102 | |
http://twitter.com/phillmv/status/2660184885 | |
http://twitter.com/phillmv/status/2660283856 and | |
http://twitter.com/phillmv/status/2660306850 |
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
document.observe('dom:loaded', function() { | |
$$('input[tabindex="1"]')[0].focus(); | |
}); |
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
require 'packr' | |
namespace :js do | |
desc "Pack javascript src for production environment" | |
task :pack => :environment do | |
# Files to pack | |
Dir.glob(File.join("public", "javascripts", "**", "*.js")).each do |filename| | |
puts "packing #{filename}..." | |
FileUtils.cp(filename, "#{filename}.orig") | |
js = "" |
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 Hoverer = { | |
current: null, | |
delay: 0.5, | |
timer: null, | |
handler: function(event) { | |
var element = event.findElement('div.nav_menu'); | |
if (!element) | |
return Hoverer.leave(); | |
if (element == Hoverer.current) |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
BASE_URL = "http://www.kniteforcerevolution.com" | |
PAGE_URL = "#{BASE_URL}/music/" | |
FILE_URL = "#{BASE_URL}/file_download/" | |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
BASE_URL = "http://www.kniteforcerevolution.com" | |
PAGE_URL = "#{BASE_URL}/music/" | |
FILE_URL = "#{BASE_URL}/file_download/" | |
NewerOlder