Skip to content

Instantly share code, notes, and snippets.

View Mbrownshoes's full-sized avatar

Mathew Brown Mbrownshoes

View GitHub Profile
@Mbrownshoes
Mbrownshoes / .gitignore
Last active August 29, 2015 14:07
Canada Topojson Population by Census
.DS_Store
build
node_modules
canada.json
*.csv
.zip
T30120141007100729.CSV
@Mbrownshoes
Mbrownshoes / README.md
Last active August 29, 2015 14:08
Nanaimo: if the sea level rose by 4 meters

This map is more of an exercise in using d3 with leaflet and plotting contour lines (obtained from the city's LIDAR data). The blue lines represent contours less than 5 m. Good thing the sea level rise shouldn't be this severe in the next 100 years or so. Though Nanaimo is hilly so there wouldn't be that much flooding.

gistup
gistup
@Mbrownshoes
Mbrownshoes / .DS_Store
Last active August 29, 2015 14:09
Tofino, B.C. Tsunami Map
month Downloads
08/15 3070
09/15 4019
10/15 4780
11/15 6531
12/15 4797
01/16 7010
/*
* File: jquery.dataTables.columnFilter.js
* Version: 1.5.6.
* Author: Jovan Popovic
*
* Copyright 2011-2014 Jovan Popovic, all rights reserved.
*
* This source file is free software, under either the GPL v2 license or a
* BSD style license, as supplied with this software.
*
@Mbrownshoes
Mbrownshoes / README.md
Last active November 27, 2016 20:42
My bike route to UofT.
@Mbrownshoes
Mbrownshoes / index.html
Last active November 27, 2016 20:46
stacked bar
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 14px sans-serif;
}
.axis path,
.axis line {
@Mbrownshoes
Mbrownshoes / concat.py
Last active November 27, 2016 22:57
Collapsible tree with scaled lines
import csv
with open('od_cntrbtn_audt_en.csv','rb') as f:
reader = csv.reader(f)
with open('short.csv', 'wb') as csvfile:
writer = csv.writer(csvfile)
i=0
for row in reader:
# print row[9][:4]