Skip to content

Instantly share code, notes, and snippets.

View wboykinm's full-sized avatar

Bill Morris wboykinm

View GitHub Profile
@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
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>
@wboykinm
wboykinm / HOWTO.md
Created July 28, 2017 01:37 — forked from cvan/HOWTO.md
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you