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
@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/"
@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 / 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 / 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 = ""
document.observe('dom:loaded', function() {
$$('input[tabindex="1"]')[0].focus();
});
=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
@gf3
gf3 / description.txt
Created December 18, 2009 07:12 — forked from mislav/description.txt
Git Workflow
so my workflow is that each ticket gets a branch. Before merging the branch to master
it needs to be peer-reviewed. So sometimes I have a bunch of branches that are off
being reviewed while I work on something else.
Currently when I run "git branch" I see:
[branch 1]
[branch 2]
[branch 3]
*[branch 4]
[branch 5]
@gf3
gf3 / getHtml.fuse.js
Created February 4, 2010 20:14
getHTML
(function($, doc) {
var getHTML = function getHTML() {
return $.String(this.raw.outerHTML);
};
if (!('outerHTML' in doc.documentElement)) {
var dummy = doc.createElement('html');
getHTML = function getHTML() {
dummy.appendChild(this.raw.cloneNode(true));
var result = dummy.innerHTML;
%h1.lol
NO U
@gf3
gf3 / prototype-doc-workflow.txt
Created February 16, 2010 17:28 — forked from dandean/prototype-doc-workflow.txt
Prototype documentation workflow
#####
## INITIAL CONFIGURATION
#####
# Fork sstephenson/prototype on GitHub
# Go to this url and click the fork button. This will create a prototype
# repository under your GitHub account.
http://github.com/sstephenson/prototype