Skip to content

Instantly share code, notes, and snippets.

View jalbertbowden's full-sized avatar

albert jalbertbowden

View GitHub Profile
@jalbertbowden
jalbertbowden / BOL_adm3.js
Last active December 24, 2015 17:39 — forked from yosemitebandit/BOL_adm3.js
Leaflet maps with shapefile-derived GeoJSON
var BOL_adm3 = {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": {
"ID_0": 27,
"ISO": "BOL",
"NAME_0": "Bolivia",
"ID_1": 1,
"NAME_1": "Chuquisaca",
@jalbertbowden
jalbertbowden / short.css
Created October 9, 2013 16:18 — forked from vlandham/short.css
Street Map Styling for TileMill
//short version
@minor_color: #1d1d1d;
@major_color: #000;
#roads {
line-join: round;
line-cap: round;
line-width:0.5;
line-color:@minor_color;
// by Douglas Bonneville | bonfx.com
// http://bonfx.com/gorgeous-random-color-scheme-gradient-generator-for-photoshop
// preferences
app.preferences.rulerUnits = Units.PIXELS
// constants
var lenWidth = 500
var quad = lenWidth/2;
<OGRVRTDataSource>
<OGRVRTLayer name="AGRI_GCP.gdb">
<SrcDataSource>AGRI_GCP.gdb.csv</SrcDataSource>
<FID>GcpID</FID>
<GeometryType>wkbPoint25D</GeometryType>
<LayerSRS>GEOGCS["GDA94",DATUM["Geocentric Datum of Australia 1994",SPHEROID["GRS 1980",6378137.0,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0.0,0.0,0.0,0.0,0.0,0.0,0.0],AUTHORITY["EPSG","6283"]],PRIMEM["Greenwich",0.0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.017453292519943295],AXIS["Geodetic latitude",NORTH],AXIS["Geodetic longitude",EAST],AXIS["Ellipsoidal height",UP],AUTHORITY["EPSG","4939"]]</LayerSRS>
<GeometryField encoding="PointFromColumns" x="GPS_Long" y="GPS_Lat" z="GPS_Ht" reportSrcColumn="FALSE"/>
</OGRVRTLayer>
</OGRVRTDataSource>
#!/bin/sh
xpath-values.pl "/penalty_notices/notice/address" < penalty_notices.pp.xml
#!/usr/bin/perl -w
# This script converts a GTFS stops.txt into an OSM file.
#
# To the extent possible under law, the person who associated CC0
# with this work has waived all copyright and related or neighboring
# rights to this work.
# http://creativecommons.org/publicdomain/zero/1.0/
use strict;

How I would do an open data program if I were not just a lil' hacker dude.

The principles of open data:

  • the program needs to make the agency look good, so it can keep getting funding for it because it's expensive
  • the open data tech needs to match the internal tech or everyone is constantly porting and will give up since it's lots of work
  • the open data infrastructure must choose a spot on the continuum between service and resource. should other services rely on it to be online all the time, or just for it to let them download tons of copies of things?

Lots of Copies Keep Stuff Safe

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<html><head><title>Geocommons and Leaflet JS</title>
<!-- Leaflet CSS -->
<link rel="stylesheet" href="CloudMade-Leaflet-404b097/dist/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="CloudMade-Leaflet-404b097/dist>/leaflet.ie.css" /><![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<!-- Leaflet JavaScript -->
<script type="text/javascript" src="CloudMade-Leaflet-404b097/dist/leaflet.js"></script>
@jalbertbowden
jalbertbowden / dabblet.css
Created November 12, 2013 05:40 — forked from LeaVerou/dabblet.css
Google-style progress indicator (process)
/**
* Google-style progress indicator (process)
*/
.progress {
display: inline-block;
font-size: 50px; /* Size of the progress indicator */
width: 1em;
height: 1em;
border: 0 solid grey;