Skip to content

Instantly share code, notes, and snippets.

View Floppy's full-sized avatar
💾

James Smith Floppy

💾
View GitHub Profile
@Floppy
Floppy / google_maps_carbon.user.js
Created September 12, 2009 07:14
A GreaseMonkey script that uses AMEE to add carbon emissions to car journeys in Google Maps (click "raw" to install if you have GreaseMonkey, and then edit to put in your AMEE key details)
// ==UserScript==
// @name Google Maps Carbon
// @namespace http://www.amee.com
// @include http://maps.google.*/
// ==/UserScript==
// Created by James Smith, AMEE - [email protected]
// Public domain, do what you like :)
// Once you've installed the greasemonkey script (click "raw" on the top
#!/usr/bin/env ruby
require "rubygems"
require "mp3info"
require "net/http"
require 'cgi'
require 'zlib'
require 'stringio'
require 'rexml/document'