Skip to content

Instantly share code, notes, and snippets.

View mkessy's full-sized avatar

Mepuka Kessy mkessy

  • Seattle
View GitHub Profile
@mkessy
mkessy / README.md
Created February 22, 2014 05:34 — forked from mbostock/.block
@mkessy
mkessy / _.md
Created January 27, 2014 10:51
Random Scatter
@mkessy
mkessy / _.md
Created January 26, 2014 00:46
Functional Programming
all: nd.jpg nd.json
nd.jpg: nd.tiff
convert nd.tiff nd.jpg
nd.json: nd.shp
topojson \
-p \
-o nd.json \
-- nd.shp
@mkessy
mkessy / README.md
Last active December 27, 2015 05:29
Minnesota counties colored by population
@mkessy
mkessy / join_county.py
Last active December 26, 2015 17:39
Merge counties represented by multiple Polygon features into a single MultiPolygon feature
#! /usr/bin/python
import simplejson as json
def join_by_fips(counties, fips):
"""Joins a county by the given FIPS code into a single multipolygon geometry,
it is assumed that each feature has properties as seen in the the us-atlas
shapefiles see: https://github.com/mbostock/us-atlas
"""
@mkessy
mkessy / index.html
Created October 22, 2013 02:14 — forked from mbostock/.block
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script>
<style type="text/css">
body {
background: #000;
}