Skip to content

Instantly share code, notes, and snippets.

View wboykinm's full-sized avatar

Bill Morris wboykinm

View GitHub Profile
! function(t, e) {
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : t.js = e()
}(this, function() {
"use strict";
function t(t, e, n, r, o) {
return r + (t - e) / (n - e) * (o - r)
}
function e(t, e, n) {
@wboykinm
wboykinm / .block
Last active December 20, 2017 14:31
license: mit
@wboykinm
wboykinm / .block
Created December 20, 2017 03:18
fresh block
license: mit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wboykinm
wboykinm / compile_zillow_neighborhoods.sh
Last active July 9, 2020 18:40
Quickly compile all of Zillow's neighborhood geodata into a single national file
# Data courtesy of Zillow, attribution required: https://www.zillow.com/howto/api/neighborhood-boundaries.htm
# Requires GDAL/OGR: http://www.gdal.org/
STATES=("AL" "AK" "AZ" "AR" "CA" "CO" "CT" "DC" "DE" "FL" "GA" "HI" "ID" "IL" "IN" "IA" "KS" "KY" "LA" "ME" "MD" "MA" "MI" "MN" "MS" "MO" "MT" "NE" "NV" "NH" "NJ" "NM" "NY" "NC" "ND" "OH" "OK" "OR" "PA" "RI" "SC" "SD" "TN" "TX" "UT" "VT" "VA" "WA" "WV" "WI")
rm -rf zillow_neighborhoods.*
for s in "${STATES[@]}"; do
echo "Processing $s"
wget -c https://www.zillowstatic.com/static/shp/ZillowNeighborhoods-$s.zip -O $s.zip
unzip $s.zip
@wboykinm
wboykinm / .block
Last active November 6, 2017 01:41
Redlines: Philadelphia 1937
license: mit
@wboykinm
wboykinm / .block
Created October 25, 2017 18:46
oblique view
license: mit
@wboykinm
wboykinm / README.md
Last active September 29, 2017 16:40 — forked from officeofjane/README.md
Small multiple bar charts with tooltips
@wboykinm
wboykinm / .block
Last active September 5, 2017 01:14 — forked from mbostock/.block
Custom Time Format
license: gpl-3.0
@wboykinm
wboykinm / index.html
Last active December 4, 2020 09:02
BTV 1894 tiles: Sanborn-Perris Map Co. Burlington Vermont (Chittenden County) Nov. 1894. New York: Sanborn-Perris Map Co., Ltd., 1894. Courtesy of Special Collections, University of Vermont.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>External map layers</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox.js/v3.1.1/mapbox.js'></script>
<script src='https://api.mapbox.com/mapbox.js/plugins/leaflet-hash/v0.2.1/leaflet-hash.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v3.1.1/mapbox.css' rel='stylesheet' />
<style>