Skip to content

Instantly share code, notes, and snippets.

View bsudekum's full-sized avatar
👋

Bobby Sudekum bsudekum

👋
View GitHub Profile
var foo = items.map(function(item) {
return item + 1;
});
var foo = items.map((item) => {
return item + 1;
});
var foo = items.map(item => item + 1);
@bsudekum
bsudekum / tm.md
Last active August 29, 2015 14:15

TileMill 0.11.0

What is this?

In the past, creating new releases of TileMill was long and arduous process. With the future release of TileMill 0.11.0, builds will be automated on travis. Very few changes should be visible on the surface.

The biggest change is that TileMill 0.11.0 is wrapped in atom-shell, similarity to Mapbox Studio.

Find a bug?

@bsudekum
bsudekum / index.js
Created December 18, 2014 20:05
requirebin sketch
var rg = require('react-geocoder');
console.log(rg);
@bsudekum
bsudekum / index.js
Created December 18, 2014 20:05
requirebin sketch
var rg = require('react-geocoder');
console.log(rg);
function numerical_int(dx, y_array) {
var maxy = Math.max.apply(null, y_array);
var dy_array = y_array.map(function(num) {
return Math.abs(maxy - num);
});
var profile_integral = 0;
var n = dy_array.length;
for (i = 1; i < n; i++) {
var dy_init = dy_array[i - 1];
var dy_end = dy_array[i];
@bsudekum
bsudekum / index.html
Last active August 29, 2015 14:01 — forked from lxbarth/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.css' rel='stylesheet' />
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.js'></script>
<script src='http://code.jquery.com/jquery-1.11.1.min.js'></script>
<style>
body {padding: 0; margin: 0;}
#map { position:absolute; top:0; bottom:0; width:100%; }
@bsudekum
bsudekum / index.html
Created March 26, 2014 00:29
Layer switcher
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Layers</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.js'></script>
<script src='//api.tiles.mapbox.com/mapbox.js/plugins/leaflet-hash/v0.2.1/leaflet-hash.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.css' rel='stylesheet' />
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bsudekum
bsudekum / index.html
Created February 4, 2014 23:27
Esri + mapbox + clustering
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title></title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='//api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.css' rel='stylesheet' />
<script src='//code.jquery.com/jquery-2.0.3.min.js'></script>
This file has been truncated, but you can view the full file.
{"BIG_BAND": {"label": "Big Band", "albumCount": 1140, "artists": [{"label": "Duke Ellington", "albumCount": 301, "thumbnailUrl": "//lh6.ggpht.com/t_nBm8d6f6uwugzMPuTNZJdG9FlxlU7fdEMd15zvH0ckLRZI0R0OwEWFb77AW15yhAno0Z2agQ", "interestingAlbums": [{"thumbnailUrl": "//lh5.ggpht.com/1oumGA8kUwItZpzbhscr_eVj46wDSEftYyIxbhvvImTz7lFePigfNgAhNCigDbIg5X9G4vrTWd4", "popularity": 0.00111628294835154, "label": "Ellington At Newport 1956 (Complete)", "playStoreUrl": "https://play.google.com/store/music/album?id=B24ous76xy4fksb5ysckrmboo3y", "year": 1999, "id": "B24ous76xy4fksb5ysckrmboo3y", "genres": ["BIG_BAND", "JAZZ", "SWING"]}, {"thumbnailUrl": "//lh6.ggpht.com/_NtaJaV9kTrrehGRL5sYuK4QJ6j-k2x1a7n1AJQHQsIljSC_ILAvw4Wpi9xARWKjM40VBXe7", "popularity": 0.0007441465162959201, "label": "Ken Burns Jazz-Duke Ellington", "playStoreUrl": "https://play.google.com/store/music/album?id=Beb3yzttv3jepij2plxadnsrt4m", "year": 2000, "id": "Beb3yzttv3jepij2plxadnsrt4m", "genres": ["BIG_BAND", "JAZZ", "SWING"]}, {"thumbnailUrl": "//lh4.