Skip to content

Instantly share code, notes, and snippets.

workin' goodly

Gianni Chiappetta gf3

workin' goodly
View GitHub Profile
gf3 / shotweb.rb
Created Dec 11, 2008 — forked from anonymous/shotweb.rb
Downloads all releases from Luna-C's website.
View shotweb.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'hpricot'
require 'open-uri'
PAGE_URL = "#{BASE_URL}/music/"
FILE_URL = "#{BASE_URL}/file_download/"
View shotweb.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'hpricot'
require 'open-uri'
PAGE_URL = "#{BASE_URL}/music/"
FILE_URL = "#{BASE_URL}/file_download/"
gf3 / hoverer.js
Created Apr 9, 2009 — forked from fermion/hoverer.js
Hover class for Prototype
View hoverer.js
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 / gist:101164
Created Apr 24, 2009 — forked from fermion/gist:101162
Rake task to pack JS files.
View gist:101164
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 = ""
View gist:147681
document.observe('dom:loaded', function() {
View we_is_gonna_be_rich.rb
License: latest LGPL :D
As per my discussion with Gianni (@gf3), and
gf3 / description.txt
Created Dec 18, 2009 — forked from mislav/description.txt
Git Workflow
View description.txt
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]
View getHtml.fuse.js
(function($, doc) {
var getHTML = function getHTML() {
return $.String(this.raw.outerHTML);
if (!('outerHTML' in doc.documentElement)) {
var dummy = doc.createElement('html');
getHTML = function getHTML() {
var result = dummy.innerHTML;
gf3 / prototype-doc-workflow.txt
Created Feb 16, 2010 — forked from dandean/prototype-doc-workflow.txt
Prototype documentation workflow
View prototype-doc-workflow.txt
# Fork sstephenson/prototype on GitHub
# Go to this url and click the fork button. This will create a prototype
# repository under your GitHub account.