Skip to content

Instantly share code, notes, and snippets.

@palewire
palewire / README.md
Last active May 20, 2021 19:22
Intensity maps of the 7.1 magnitude earthquake that struck Searles Valley, Calif., on July 5, 2019.

3D earthquake intensity maps

On July 5, a 7.1 magnitude earthquake rumbled beneath the Searles Valley in California's Mojave Desert.

The U.S. Geological Survey mapped its intensity as it rippled across Southern California.

Here's that data modeled in 3D.

Instructions

@eyeseast
eyeseast / documentcloud.py
Created December 15, 2010 03:00
A simple python wrapper for the DocumentCloud API
import httplib2
import urllib
try:
import json
except ImportError:
import simplejson as json
# create a global Http object so we can reuse connections
http = httplib2.Http('.cache')
@albertsun
albertsun / gist:674563
Created November 12, 2010 19:44
Parse GeoJSON for Raphael
var allPolygons = [];
function setPolys(geom) {
/* geom: a GeoJSON object.
Parse geom, and add it as a child to the global Raphael object, R.
*/
//geom.type either Polygon or MultiPolygon
var translationFunction = function(coords) {
var projected = Projections.contiguous.forward(coords);
var x = 217+(projected[0]*190/2400000);
@onyxfish
onyxfish / elections.chicagotribune.com.vcl
Created November 3, 2010 18:55
Elections Center Varnish Configuration File
backend app1 {
.host = "1.1.1.1";
.port = "80";
}
backend app2 {
.host = "2.2.2.2";
.port = "80";
}