Skip to content

Instantly share code, notes, and snippets.

@chrislkeller
chrislkeller / README.md
Last active September 30, 2015 03:08
This has been updated here to reflect the coming changes to the Fusion Tables API.

SpreadSheet to Fusion Tables

This has been updated here to reflect the coming changes to the Fusion Tables API.

@jkeefe
jkeefe / datacall.js
Created January 30, 2012 02:56
John's Iowa Data Call Code
var overview;
var overview_query_url = "https://www.google.com/fusiontables/api/query?sql=SELECT+PNCommunityType%2C+SUM('NumVoters')%2C+SUM('NumBallotBoxes')%2C+SUM('NumCountedBallotBoxes')%2C+SUM('VoteCount-Paul')%2C+SUM('VoteCount-Bachmann')%2C+SUM('VoteCount-Johnson')%2C+SUM('VoteCount-Gingrich')%2C+SUM('VoteCount-Santorum')%2C+SUM('VoteCount-Huntsman')%2C+SUM('VoteCount-Other')%2C+SUM('VoteCount-Roemer')%2C+SUM('VoteCount-Romney')%2C+SUM('VoteCount-Perry')%2C+SUM('VoteCount-Cain')+FROM+2486515&jsonCallback=?";
function refreshData() {
// Hit the Google Fusion Table
$.getJSON(overview_query_url, function(data) {
overview = data;
@brianboyer
brianboyer / gist:1696819
Created January 29, 2012 02:21
Lion dev environment notes
@csessig86
csessig86 / GOP Caucus Results
Created January 6, 2012 20:55
Map of GOP caucus/primary dates and results
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Lee Enterprises - GOP Caucus/Primary Results</title>
<style>
body { height: 650px; width:610px;
font-family: Arial, sans-serif; }
@chrislkeller
chrislkeller / README.md
Last active September 28, 2015 10:18
Quick map creating a mouseover-like event on a google map using a Fusion Tables layer...

Demo: fusion-tables-pseudo-mouseover

This repo's location has changed.

@robflaherty
robflaherty / csv-to-json.php
Created September 1, 2011 02:26
Convert CSV to JSON
<?php
/*
* Converts CSV to JSON
* Example uses Google Spreadsheet CSV feed
* csvToArray function I think I found on php.net
*/
header('Content-type: application/json');
// Set your CSV feed
@markng
markng / gist:1101904
Created July 23, 2011 21:28
Interactive translation tool.
#!/usr/bin/env python
import sys, tty, termios
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
try:
filename = sys.argv[1]
f = open(filename, 'r')
text = f.read()