Skip to content

Instantly share code, notes, and snippets.

View tmcw's full-sized avatar
💭
merging your prs

Tom MacWright tmcw

💭
merging your prs
View GitHub Profile
var fs = require('fs');
var path = require('path');
const packages = fs.readdirSync('./packages');
const allDependencies = [];
fs.mkdirSync('src');
for (let pkg of packages) {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://dublincore.org/documents/2008/08/04/dc-html/">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index,follow" />
<meta name="creator" content="rfcmarkup version 1.127" />
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
<meta name="DC.Relation.Replaces" content="draft-butler-geojson" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://dublincore.org/documents/2008/08/04/dc-html/">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index,follow" />
<meta name="creator" content="rfcmarkup version 1.127" />
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
<meta name="DC.Relation.Replaces" content="draft-butler-geojson" />
This file has been truncated, but you can view the full file.
{"https://www.strava.com/api/v3/athlete":{"id":677924,"username":"tmacwright","resource_state":3,"firstname":"Tom","lastname":"MacWright","city":"San Francisco","state":"California","country":"United States","sex":"M","premium":true,"created_at":"2012-06-24T14:47:42Z","updated_at":"2018-06-01T19:25:26Z","badge_type_id":1,"profile_medium":"https://dgalywyr863hv.cloudfront.net/pictures/athletes/677924/238076/5/medium.jpg","profile":"https://dgalywyr863hv.cloudfront.net/pictures/athletes/677924/238076/5/large.jpg","friend":null,"follower":null,"email":"tom@macwright.org","follower_count":63,"friend_count":61,"mutual_friend_count":0,"athlete_type":1,"date_preference":"%m/%d/%Y","measurement_preference":"feet","clubs":[{"id":40710,"resource_state":2,"name":"Mapbox Runners","profile_medium":"https://dgalywyr863hv.cloudfront.net/pictures/clubs/40710/1075806/1/medium.jpg","profile":"https://dgalywyr863hv.cloudfront.net/pictures/clubs/40710/1075806/1/large.jpg","cover_photo":null,"cover_photo_small":null,"sport_type":
This file has been truncated, but you can view the full file.
{"https://www.strava.com/api/v3/athlete":{"id":677924,"username":"tmacwright","resource_state":3,"firstname":"Tom","lastname":"MacWright","city":"San Francisco","state":"California","country":"United States","sex":"M","premium":true,"created_at":"2012-06-24T14:47:42Z","updated_at":"2018-06-01T19:25:26Z","badge_type_id":1,"profile_medium":"https://dgalywyr863hv.cloudfront.net/pictures/athletes/677924/238076/5/medium.jpg","profile":"https://dgalywyr863hv.cloudfront.net/pictures/athletes/677924/238076/5/large.jpg","friend":null,"follower":null,"email":"tom@macwright.org","follower_count":63,"friend_count":61,"mutual_friend_count":0,"athlete_type":1,"date_preference":"%m/%d/%Y","measurement_preference":"feet","clubs":[{"id":40710,"resource_state":2,"name":"Mapbox Runners","profile_medium":"https://dgalywyr863hv.cloudfront.net/pictures/clubs/40710/1075806/1/medium.jpg","profile":"https://dgalywyr863hv.cloudfront.net/pictures/clubs/40710/1075806/1/large.jpg","cover_photo":null,"cover_photo_small":null,"sport_type":
This file has been truncated, but you can view the full file.
{"https://www.strava.com/api/v3/athlete":{"id":677924,"username":"tmacwright","resource_state":3,"firstname":"Tom","lastname":"MacWright","city":"San Francisco","state":"California","country":"United States","sex":"M","premium":true,"created_at":"2012-06-24T14:47:42Z","updated_at":"2018-06-01T19:25:26Z","badge_type_id":1,"profile_medium":"https://dgalywyr863hv.cloudfront.net/pictures/athletes/677924/238076/5/medium.jpg","profile":"https://dgalywyr863hv.cloudfront.net/pictures/athletes/677924/238076/5/large.jpg","friend":null,"follower":null,"email":"tom@macwright.org","follower_count":63,"friend_count":61,"mutual_friend_count":0,"athlete_type":1,"date_preference":"%m/%d/%Y","measurement_preference":"feet","clubs":[{"id":40710,"resource_state":2,"name":"Mapbox Runners","profile_medium":"https://dgalywyr863hv.cloudfront.net/pictures/clubs/40710/1075806/1/medium.jpg","profile":"https://dgalywyr863hv.cloudfront.net/pictures/clubs/40710/1075806/1/large.jpg","cover_photo":null,"cover_photo_small":null,"sport_type":
team region win loss draw points gf ga cs yc rc
Germany UEFA 7 6 0 1 19 18 4 14 4
Argentina CONMEBOL 7 5 1 1 16 8 4 4 4
Netherlands UEFA 7 5 0 2 17 15 4 11 4
Belgium UEFA 5 4 1 0 12 6 3 3 2
Colombia CONMEBOL 5 4 1 0 12 12 4 8 2
Brazil CONMEBOL 7 3 2 2 11 11 14 0 1
Japan AFC 3 0 2 1 1 2 6 0 1
United States CONCACAF 4 1 2 1 4 5 6 0 0

Geojson.net

Geojson.net will be a replacement for geojson.io, the simple editor for map data. In most ways, it has the same intent, goals, limitations, and ideas of geojson.io - they're both projects of mine.

I created geojson.io as a side project in 2013, and it thrived for a few years, as it simply solved the problem of previewing, modifying, and creating map data. I think it benefited from simplicity and unity of thought: it wasn't a product, it didn't have overarching design goals or any sort of leadership. There was the core functionality, and a bunch of functionality that pretty neatly layered on top of that without making the whole thing too intimidating. I'm pretty happy with how it went.

Over the last two or so years, though, geojson.io hasn't changed much, and the web has. Which means that, in a few ways, it's just straight-up broken: GitHub integration is broken, it was never updated to accommodate for the deprecation of anonymous gists, and

const prettier = require('prettier')
console.log(prettier.__debug.formatAST({
"type": "Identifier",
"name": "hi"
}))
module.exports.gif = function gif(r, g, b) {
return 'R0lGODlhAQABAIAB' +
(new Buffer([0, r, g, b, 0, 0])).toString('base64') +
'ACwAAAAAAQABAAACAkQBADs=';
}