Skip to content

Instantly share code, notes, and snippets.

[user]
name = Your Name Here
email = [email protected]
[github]
user = your_github_username
token = your_github_api_key
[core]
editor = nano
pager =
[color]
@zarino
zarino / love.py
Created April 16, 2013 20:04
Another love forecasting app from #PyPool
#!/usr/bin/env python
# By David, Jonathan, David, and Zarino
import sys
names = sys.argv
score = 0.0
p1 = names[1].lower()
@zarino
zarino / gist:5083617
Last active December 14, 2015 11:59 — forked from beauvais/gist:5083596
//jsonData contains data in the appropriate format
var json_table = new google.visualization.Table(document.getElementById('table_div_json'))
var json_data = new google.visualization.DataTable(jsonData, 0.6);
json_table.draw(json_data, {
showRowNumber: true
});
@zarino
zarino / jquery.zoompan.js
Created February 28, 2012 12:06
ZoomPan jQuery Plugin (for ScraperWiki)
// Invoke using something like:
// HTML: <img src="foobar.png" width="400" height="300" alt="Example" />
// JQUERY: $('img').zoompan({sw: 400, sh: 300, lw: 2851, lh: 2135});
(function($){
$.fn.zoompan = function(settings) {
settings = jQuery.extend({
sw: 100, // small image width
sh: 100, // small image height