Skip to content

Instantly share code, notes, and snippets.

View tmcw's full-sized avatar
💭
merging your prs except if they're ai-generated

Tom MacWright tmcw

💭
merging your prs except if they're ai-generated
View GitHub Profile
@tmcw
tmcw / index.html
Last active December 11, 2015 16:09 — forked from wboykinm/index.html
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
@tmcw
tmcw / index.html
Last active December 12, 2015 03:48 — forked from wboykinm/index.html
<DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
#map-ui {
position:absolute;
@tmcw
tmcw / README.md
Last active February 18, 2025 21:13 — forked from anonymous/README.md
Jenks Natural Breaks with simple-statistics and d3
// Types
var one = 1;
var two = 2;
// three;
window.three;
window.one = 1;
one = 1;
var one = [];
var one = {one: 1};
one.two = 1;
@tmcw
tmcw / WELCOME.md
Last active December 14, 2015 15:38 — forked from techlady/WELCOME.md

Welcome to OpenStreetMap, the world's open-source map.

You've just joined a community of over one million contributors who are creating a free, worldwide map.

var pre = '<pre>*</pre>';
var txt = '';
var chars = ' xx xxx 0000000000005550';
window.setInterval(function() {
var txt = '';
var c = chars.split('');
var l = c.pop();
chars = [l].concat(c).join('')
@tmcw
tmcw / index.js
Last active December 17, 2015 07:29 — forked from anonymous/index.js
void require('http://d3js.org/d3.v3.min.js');
// An introduction to d3js scales
//
// scales are transformations from an input
// domains to output ranges. you use them for
// transforming your input data into your output
// representation: $1B in the stock market might
// mean 200px on a laptop screen, and so on.

Notice an error on the foursquare map?

You can fix it! The maps you see on foursquare are powered by OpenStreetMap, a free map that anyone can edit. Thousands of websites and apps rely on OpenStreetMap to provide the underlying data for their maps. By improving the map, you'll be contributing to a project with far-reaching influence.

Two important things you should know before editing:

  1. foursquare uses a custom style of OpenStreetMap provided by MapBox that selectively hides and shows map features - so not every feature in OpenStreetMap will be visible on our maps. A perceived error on the map may be due to our style rather than missing data in OpenStreetMap.

  2. The blue venue markers that are overlaid on top of the base map are completely disconnected from OpenStreetMap. Foursquare venue errors should be dealt with…(??).

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.