Skip to content

Instantly share code, notes, and snippets.

View cstrelioff's full-sized avatar

Chris Strelioff cstrelioff

View GitHub Profile
@zross
zross / index.html
Last active September 7, 2021 02:25
Animate path on Leaflet map using D3 (Gimme!, Proletariat)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" />
<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script>
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.css' rel='stylesheet' />
@klange
klange / gen-sk.py
Created May 6, 2011 01:12
LastFM session key generator
#!/usr/bin/env python
import sys, md5
import pycurl, simplejson, webbrowser
class CurlReader:
def __init__(self):
self.contents = ''
def body_callback(self, buf):
self.contents = self.contents + buf