Skip to content

Instantly share code, notes, and snippets.

View blech's full-sized avatar

Paul Mison blech

View GitHub Profile
@blech
blech / .block
Last active November 9, 2018 22:38 — forked from threestory/cb_2014_us_county_5m.json
California Votes - Prop 6, Nov 2018
---
height: 800
scrolling: no
border: no
#!/usr/bin/env python
# ./sscan.py input.mov rownumber output.png
# This is meant to be hyper-simple and makes
# some assumptions like: you want a row (not
# a column), the video is RGB (not gray), etc.
# Bug: frame_count is sometimes fractional.
# int() and the "if not okay" are workarounds.
@blech
blech / DeleteGmusicDupes-Python35.py
Created December 13, 2017 19:54 — forked from TKIPisalegacycipher/DeleteGmusicDupes-Python35.py
Python script to find and delete duplicate tracks from Google Play Music library.
#!/usr/bin/env python
# created by shuichinet https://gist.github.com/shuichinet
# forked from https://gist.github.com/shuichinet/8159878 21 Nov 2015
# using minor edits by fcrimins https://www.reddit.com/user/fcrimins from https://www.reddit.com/r/google/comments/2xzgyv/remove_duplicate_songs_from_google_play_music/csh6mrh
# also using clever edits by Morgan Gothard https://medium.com/@mgothard
# updated for Python 3.5 by John M. Kuchta https://medium.com/@sebvance 22 Nov 2016 (hey I was busy)
# compiled by John M. Kuchta https://medium.com/@sebvance
# thanks to shuichinet, fcrimins and Mr. Gothard for their work
@blech
blech / caltrain.geojson
Last active August 29, 2015 13:56 — forked from anonymous/overpass.geojson
Caltrain, from OSM via Overpass
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@blech
blech / london-railway-subway.geojson
Last active August 29, 2015 13:56 — forked from anonymous/overpass.geojson
OSM's railway=subway for London, from Overpass
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@blech
blech / README.md
Last active December 26, 2015 21:59 — forked from tomgp/LICENSE.txt
DST Transitions

Using some animated clocks from d3 to show the difference between how US and EU timezone transitions work.

The top row shows three clocks in the three main European Union timezones on the last Sunday in October. As London passes 0200 BST it resets to 0100 GMT; simultaneously, the clocks change in Berlin and Helsinki.

The bottom row shows four clocks for the US timezones, on the first Sunday in November. In contrast to the EU clocks, the DST ripples across the country at 0200 local time.

(Thanks to bl.ocks.org/tomgp/6475678 for the starting point and to @mbostock for help with heights.)

@blech
blech / .run
Last active December 25, 2015 17:59 — forked from mbostock/.block
python -m SimpleHTTPServer 5120
@blech
blech / README.md
Last active December 21, 2015 00:58 — forked from mbostock/.block

Forking mbostock's vector tiles gist/block, but for London and with motorways in blue.

I'm not quite sure what else I'm going to do with this yet. Hack in onHashChange? Realise that polymaps is better for this stuff?

@blech
blech / README.md
Last active December 19, 2015 22:18 — forked from mbostock/.block
BBC One

Just your BBC spinny globe, circa 1985. (TODO: add reversed antipodes as bg layer.)

@blech
blech / README.md
Last active December 19, 2015 13:09 — forked from mbostock/.block
Transverse mercator, per Landsat