Skip to content

Instantly share code, notes, and snippets.

Peter Johnson missinglink

Block or report user

Report or block missinglink

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@missinglink
missinglink / mines.js
Last active Oct 24, 2019
Javascript one-liner to calculate total minesweeper neighbours
View mines.js
var m = [
[' ',' ',' ',' ',' '],
[' ',' ',' ',' ',' '],
['X',' ',' ',' ',' '],
[' ','X',' ',' ',' '],
[' ',' ','X',' ',' '],
]
var m = [
[' ',' ','X'],
@missinglink
missinglink / repo-list.sh
Created Jun 11, 2019
List all repositories by organization
View repo-list.sh
ORG='whosonfirst-data';
rm -f "${ORG}.txt"
for i in {0..15}; do
curl -s "https://api.github.com/orgs/${ORG}/repos?page=${i}&per_page=100" \
| jq -r '.[] | .name' \
>> "${ORG}.txt"
done
@missinglink
missinglink / nyc.geojson
Last active Jul 25, 2018
'Postal City' for New York City
View nyc.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@missinglink
missinglink / sanfran.geojson
Created Jul 25, 2018
'Postal Cities' for San Francisco
View sanfran.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@missinglink
missinglink / postal_cities.txt
Created Jul 25, 2018
Candidate 'postal cities', based off places the Census lists as a 'principal city', and whos geometry intersects with the geometry of more than one ZCTA
View postal_cities.txt
5300100|Aberdeen city
4801000|Abilene city
4000200|Ada city
1301052|Albany city
4101000|Albany city
3700680|Albemarle city
0100988|Albertville city
3502000|Albuquerque city
0101132|Alexander City city
2200975|Alexandria city
@missinglink
missinglink / portland.geojson
Created Jul 24, 2018
'Postal Cities' example for Portland OR, showing the Polygon for Census Combined Statistical Area 440 (Portland-Vancouver-Salem, OR-WA)
View portland.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@missinglink
missinglink / portland.geojson
Last active Jul 24, 2018
'Postal Cities' example for Portland OR, showing the Polygon for Census Metropolitan/Micropolitan Statistical Area 38900 (Portland-Vancouver-Hillsboro, OR-WA)
View portland.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@missinglink
missinglink / portland.geojson
Created Jul 20, 2018
'Postal Cities' example for Portland OR, showing 131 zip codes associated with the Census Core Based Statistical Area ID 38900
View portland.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@missinglink
missinglink / portland.geojson
Last active Jul 20, 2018
'Postal Cities' example for Portland OR, showing 425 zip codes associated with the Sectional Center Facility 'SCF PORTLAND OR 970'
View portland.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@missinglink
missinglink / portland.geojson
Last active Jul 24, 2018
'Postal Cities' example for Portland OR, showing 36 zip codes associated with the Census place ID 4159000
View portland.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.