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
{
"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 / install.md
Last active January 31, 2018 09:57
Installing and running Project OSRM, the OpenStreetMap-based routing engine, on an Amazon EC2 instance.

My goal here was the create a routable graph for Chicago.

I used Ubuntu 12.04LTS on an m2.4xlarge just to be sure memory wasn't too much of an issue.

Install

Start a screen session and start downloading an OSM extract (I used this extract of Illinois). In another screen I did the following:

  sudo apt-get update && sudo apt-get upgrade -y

sudo apt-get -y install git make cmake build-essential \

@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
Loading
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 / dlib_plus_osm.md
Last active May 30, 2018 19:07
Detecting Road Signs in Mapillary Images with dlib C++

image

I've been interested in computer vision for a long time, but I haven't had any free time to make any progress until this holiday season. Over Christmas and the New Years I experimented with various methodologies in OpenCV to detect road signs and other objects of interest to OpenStreetMap. After some failed experiments with thresholding and feature detection, the excellent /r/computervision suggested using the dlib C++ module because it has more consistently-good documentation and the pre-built tools are faster.

After a day or two figuring out how to compile the examples, I finally made some progress:

Compiling dlib C++ on a Mac with Homebrew

  1. Clone dlib from Github to your local machine:
@iandees
iandees / ildot_toll_plazas.geojson
Created January 2, 2016 04:40
Illinois Toll Plazas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Direction Code Expanded Full Text Directional Abbreviation Spanish Translation
11 North N
12 South S
13 East E
14 West W
15 Northeast NE
16 Northwest NW
17 Southeast SE
18 Southwest SW
19 Norte N Y North
import unicodecsv
import argparse
import sys
import simplejson as json
from shapely import wkt
from shapely.geometry import mapping
import shapely.speedups
shapely.speedups.enable()
parser = argparse.ArgumentParser()