Skip to content

Instantly share code, notes, and snippets.

View blech's full-sized avatar

Paul Mison blech

View GitHub Profile
@blech
blech / extract.sh
Last active December 20, 2015 07:59
Extract an station's history from GSOD
#!/bin/bash
# TODO the station code should be an argument
# also I just ran this as one line so it might not even work as a script
# GSOD: http://www.ncdc.noaa.gov/cgi-bin/res40.pl?page=gsod.html
for i in gsod_199*.tar;
do y=`echo $i | awk -F '_' '{print $2}' | awk -F '.' '{print $1}'`;
echo working on $i $y;
@blech
blech / random.js
Last active September 20, 2022 15:26
Kim Asendorf Maps: the code
// cheekily stolen from http://maps.kimasendorf.com/
var featureType = ["all", "water", "landscape", "landscape.man_made", "landscape.natural", "landscape.natural.landcover", "landscape.natural.terrain", "administrative", "administrative.country", "administrative.province", "administrative.locality", "administrative.neighborhood", "administrative.land_parcel", "poi", /*"poi.attraction", "poi.business", "poi.government", "poi.medical", "poi.park", "poi.place_of_worship", "poi.school", "poi.sports_complex",*/ "road", "road.highway", "road.highway.controlled_access", "road.arterial", "road.local", "transit", "transit.line", "transit.station"/*, "transit.station.airport", "transit.station.bus", "transit.station.rail"*/];
var elementType = ["all", "geometry", "geometry.fill", "geometry.stroke", /*"labels", "labels.icon", "labels.text", "labels.text.fill", "labels.text.stroke"*/];
var visibility = ["on", "simplified", "off"];
var asdfMapStyle = [];
// NEW GOOGLE MAPS STYLE
google.maps.visualRefresh = true;
@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 22:18
Dopplr Arcs
@blech
blech / README.md
Last active December 19, 2015 19:09
Notes for myself with jq/sed/etc

A command line script to convert the locations in a Twitter archive download to GeoJSON.

@blech
blech / README.md
Last active December 19, 2015 13:09 — forked from mbostock/.block
Transverse mercator, per Landsat
@blech
blech / README.md
Last active December 19, 2015 12:19 — forked from mbostock/.block
SF: buildings & railways
@blech
blech / README.md
Last active December 19, 2015 12:09
Who listened to an artist first?

A small script for fetching trendsetters based on their last.fm listening habits.

@blech
blech / README.md
Last active December 19, 2015 04:29
Update all checked out gists

If you've used mbostock's gist to pull all the gists you own into a folder, then this ridiculously hackish bit of shell will update them all.

If, unlike me, you actually have git up working properly, you'll be able to remove the - in line 6.

@blech
blech / README.md
Last active December 19, 2015 01:49 — forked from mbostock/.block
Dopplr Tour