Skip to content

Instantly share code, notes, and snippets.

(function(){
var $$ = function(query){
!!(query && query.nodeType == 1) ?
this.dom = query
:
this.dom = document.getElementById(query);
};
$$.prototype.remove = function(){
this.dom.parentNode.removeChild(this.dom);
module Graticule #:nodoc:
module Geocoder #:nodoc:
class Google
def initialize(key)
@key = key
@proxies = ["http://127.0.0.1:8080", "http://127.0.0.1:8081", "http://127.0.0.1:8082"]
@url = URI.parse @proxies[rand(@proxies.length)] + '/maps/geo'
end
end
end
require 'rubygems'
require 'yajl/json_gem'
module AP
# a = AP::ParseData.new('/file.txt')
class ParseData
def initialize(file)
@file = file
@ap_scratch = []
@final_results = []
@ashaw
ashaw / gist:604663
Created September 30, 2010 14:28 — forked from esmooov/gist:604625
TableFilterer.prototype.addClickHandler = function(el,facet,featuredness) {
tFinstance = this;
$(el).live('click',function() {
var entity = $(this).attr("data-"+facet);
var type = $(this).children('h4').html();
//for race "permalinks"
if (!_.isNaN(parseInt(entity))) {
entity = parseInt(entity);