Skip to content

Instantly share code, notes, and snippets.

View iandees's full-sized avatar
🏠
Working from home

Ian Dees iandees

🏠
Working from home
View GitHub Profile
Congressional District FIPS Code is adjacent to
2707 2702
2707 2706
2707 2708
2707 2701
2707 3800
2707 4600
2702 2707
2702 2706
2702 2701

Keybase proof

I hereby claim:

  • I am iandees on github.
  • I am iandees (https://keybase.io/iandees) on keybase.
  • I have a public key whose fingerprint is F495 5459 BF3B D7D7 D1EB EC9C 9F02 C910 B63D 7E05

To claim this, I am signing this object:

{
"rows": [
{
"column_title": "Total:",
"line_number": 1,
"table_id": "B01001A",
"indent": 0,
"column_id": "B01001A001"
},
{
<html>
<body>
<iframe frameBorder="0" width="300" height="300" src="data:text/html;base64,PCFET0NUWVBFIGh0bWw+PGh0bWw+PGhlYWQ+PGxpbmsgcmVsPSJzdHlsZXNoZWV0IiBocmVmPSJodHRwOi8vY2Vuc3VzcmVwb3J0ZXIub3JnL3N0YXRpYy9jc3MvZW1iZWQuY2hhcnRzLmNzcyI+PC9oZWFkPjxib2R5PjxkaXYgaWQ9ImNlbnN1cy1jaGFydCIgY2xhc3M9ImNlbnN1cy1jaGFydC1lbWJlZCBjZW5zdXMtY2hhcnQtcGllIj48L2Rpdj48c2NyaXB0PnZhciBjaGFydERhdGEgPSB7Im1ldGFkYXRhIjogeyJ1bml2ZXJzZSI6ICJUb3RhbCBwb3B1bGF0aW9uIiwgImFjc19yZWxlYXNlIjogIkFDUyAyMDEyIDUteWVhciIsICJ0YWJsZV9pZCI6ICJiMDEwMDEifSwgInBlcmNlbnRfdW5kZXJfMTgiOiB7Im5hbWUiOiAiVW5kZXIgMTgiLCAidmFsdWVzIjogeyJ0aGlzIjogMy4wMywgInBsYWNlIjogMjEuNzEsICJjb3VudHkiOiAyMS43MX0sICJlcnJvciI6IHsidGhpcyI6IDIuNTcsICJwbGFjZSI6IDAuMjMsICJjb3VudHkiOiAwLjIzfSwgIm51bWVyYXRvcnMiOiB7InRoaXMiOiAxMDAuMCwgInBsYWNlIjogMTM0NzUzLjAsICJjb3VudHkiOiAxMzQ3NTMuMH0sICJudW1lcmF0b3JfZXJyb3JzIjogeyJ0aGlzIjogODQuMiwgInBsYWNlIjogMTQyOS44LCAiY291bnR5IjogMTQyOS44fSwgImluZGV4IjogeyJ0aGlzIjogMTAwLjAsICJwbGFjZSI6IDE0LjAsICJjb3VudHkiOiAxNC4wfSwgImVycm9yX3JhdGlvIjogeyJ0
@iandees
iandees / gist:9cab0abe95a38f3f7954
Created May 21, 2014 19:29
Geo IDs within 200 meters of the Blue Line in the Twin Cities.
14000US27053005901
14000US27053104800
14000US27053104900
14000US27053105400
14000US27053125600
14000US27053126100
14000US27053126200
14000US27123031900
14000US27123032000
14000US27123032100
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3"
# this script will display the current version, automatically
# suggest a "minor" version update, and ask for input to use
# the suggestion, or a newly entered value.
@iandees
iandees / gist:1215596
Created September 14, 2011 00:53
A script to keep an osm2pgsql database running with minutely diffs and osmosis.
#!/bin/bash
set -e
# Initialize timestamp with day of latest planet dump
# Setting to midnight ensures we get conistent data after first run
# osmosis --read-replication-interval-init
OSMOSIS_PATH=/home/iandees/osmosis-SNAPSHOT-r25995
OSMOSIS_WORKDIR=/home/iandees/.osmosis
OSM2PGSQL_PATH=/home/iandees/osm2pgsql
@iandees
iandees / expire_tiles.py
Created October 8, 2011 03:23
A tool to parse the OSM API's list of expired z12 tiles and delete the corresponding tiles in a TileStache disk cache.
#!/bin/python
import sys
import xml.etree.cElementTree as ET
import urllib2
# Expire tiles in a TileStache default file cache based on the OpenStreetMap server's z12 change output
# at http://www.openstreetmap.org/api/0.6/changes
maxZoom = 19
iandees@benzene:~/tilemill$ mapnik-config --libs
-L/usr/local/lib -lmapnik2
iandees@benzene:~/tilemill$ which mapnik-config
/usr/local/bin/mapnik-config