Skip to content

Instantly share code, notes, and snippets.

View gf3's full-sized avatar
🍊
workin' goodly

Gianni Chiappetta gf3

🍊
workin' goodly
View GitHub Profile
=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
document.observe('dom:loaded', function() {
$$('input[tabindex="1"]')[0].focus();
});
@gf3
gf3 / gist:101164
Created April 24, 2009 15:54 — forked from fermion/gist:101162
Rake task to pack JS files.
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 = ""
@gf3
gf3 / hoverer.js
Created April 9, 2009 16:26 — forked from fermion/hoverer.js
Hover class for Prototype
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)
@gf3
gf3 / shotweb.rb
Created December 11, 2008 17:00 — forked from anonymous/shotweb.rb
#!/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/"
@gf3
gf3 / shotweb.rb
Created December 11, 2008 16:51 — forked from anonymous/shotweb.rb
Downloads all releases from Luna-C's website.
#!/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/"