Skip to content

Instantly share code, notes, and snippets.

@oeon
oeon / h2o.json
Last active December 13, 2015 20:48
click a d3 polygon, test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oeon
oeon / h2o.json
Last active December 14, 2015 02:08
d3.geo.tile test with watersheds
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oeon
oeon / gist:5368027
Created April 11, 2013 23:21
qpdf merge
qpdf 3400_2012_NICS_Conference_2013.pdf --pages 3400_2012_NICS_Conference_2013.pdf 1-3 NICS_Marriott_receipt.pdf 1 -- 3400_2012_NICS_Conference_2013_receipt.pdf
@oeon
oeon / gist:5375480
Last active December 16, 2015 04:09
Running osm2pgsql SVN version 0.81.0 (64bit id space) on Windows 7
  1. Download @onepremise's build (currently) osm2pgsql-dev/osm2pgsql#17 (comment)
  2. Copy cygwin-package folder inside of the .zip package. Paste to a location such as C:\ and rename the folder to something like osm2pgsql.
  3. From Windows Explorer, press Shift + right-click C:\osm2pgsql, select 'Open command window here'.
  4. Type osm2pgsql to verify everything works, or osm2pgsql -h for help on the tool, or paste your command into the command window by right-clicking and selecting 'Paste' e.g. osm2pgsql "C:\Users\JLarson\slo_bldgs_apr2013.osm" -d bldgs -S "C:/Users/jlarson/Dropbox/slu.style" -U postgres --extra-attributes
@oeon
oeon / crime_police_log.md
Last active December 16, 2015 05:19
SLO County crime data thoughts

##Ideas##

##Questions##

  • Can we do it all on GitHub? Need for hosting/server?
  • OpenSLO was created at one point https://github.com/OpenSLO, revist using this for collaboration?
@oeon
oeon / index.html
Last active December 16, 2015 22:49
Southern California smoke, May 2
<!DOCTYPE html>
<html>
<head>
<script src='//api.tiles.mapbox.com/mapbox.js/v1.0.0/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.0.0/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.0/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<style>
body { margin:0; padding:0; }
@oeon
oeon / osmcitysmap pdf cmd
Created June 11, 2013 04:45
Run OSMCitySMap
./render.py -C ocitysmap.conf -t "SLO Sample" -b 35.24325,-120.6528 35.25561,-120.63392 --paper-format="default" --orientation="portrait" -L en_US.UTF-8
@oeon
oeon / maptiles_offline.html
Last active December 18, 2015 15:49
PirateBox, OpenStreetMap/Leaflet html http://forum.daviddarts.com/read.php?2,6988
<!-- Source code by Gaël Musquet aka RatZillaS under WTFPL licence [http://www.wtfpl.net/] -->
<html>
<head>
<title>Embed OpenStreetMap on your PirateBox</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="OpenPirateMap/leaflet/dist/leaflet.css" />
<script type="text/javascript" src="OpenPirateMap/leaflet/dist/leaflet.js"></script>
<style>
@oeon
oeon / barc_guide.md
Last active December 19, 2015 13:29
Burned Area Reflectance Classification BARC, quick synopsis
@oeon
oeon / osm2pgsql_cmd
Last active December 19, 2015 20:49
osm2pgsql command for buildings.osm to PostGIS for SLU
osm2pgsql -S slu.style -d osm_bldgs -U postgres -H localhost -x slo_bldgs_20130716.osm