Skip to content

Instantly share code, notes, and snippets.

View tristen's full-sized avatar

Tristen Brown tristen

View GitHub Profile
Sampling process 45131 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling node (pid 45131) every 1 millisecond
Process: node [45131]
Path: /Users/tristen/devseed/tilemill/bin/node
Load Address: 0x100000000
Identifier: node
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: node [45108]
/*-----------------------------------
Colors
------------------------------------- */
@water: #3c9cb0;
@greenery: #9FC069;
@redline: #ffd4c6;
@grey: #666;
/*-----------------------------------
Fonts
/*-----------------------------------
Colors
------------------------------------- */
@water: #3c9cb0;
@greenery: #9FC069;
@redline: #ffd4c6;
@grey: #666;
/*-----------------------------------
Fonts
// 1. if mailto: return it all
// (mailto\:)
// 2. if http/https return the relative path
// ([http?s]\:\/\/)?(\/.*) ------------> .exec(path)[2]
// 3. If there is a hash, return everything after the hash
// ....
if (oldIE) {
if (path.charAt(0) === 'm') {
return;
}
else if (path.charAt(0) === '#') {
path = /^([a-z]+:\/\/)?(#[\w\-]+)$/.exec(path)[2];
}
else {
path = /^([a-z]+:\/\/.+?)?(\/.*)$/.exec(path)[2];
}
Stylesheet: [
{
id: 'style.mss',
data: '#locations {' +
'marker-allow-overlap: true;' +
'marker-file: url(http://192.168.0.92:3000/assets/bclc-hub/images/point.svg);' +
'marker-width: 10;' +
'[zoom > 3] { marker-width: 20; }' +
'}'
}
Stylesheet: [
{
id: 'style.mss',
data: '#locations {' +
'point-allow-overlap: true;' +
'point-file: url(http://192.168.0.92:3000/assets/bclc-hub/images/point.svg);' +
'}'
}
],
Stylesheet: [
{
id: 'style.mss',
data: '#locations {' +
'point-allow-overlap: true;' +
'point-file: url(http://dl.dropbox.com/u/3677104/point.png);' +
'}'
}
],
var makeMaps = function () {
var mm = com.modestmaps;
m = new mm.Map('map', new com.modestmaps.WaxProvider({
baseUrl: 'http://a.tiles.mapbox.com/mapbox/',
layerName: 'world-glass',
zoomRange: [4, 8]
}));
m.setCenterZoom(
new com.modestmaps.Location(37, -97), 5);
$(function (){
var mm = com.modestmaps;
var m = new mm.Map('map', new com.modestmaps.WaxProvider({
baseUrl: 'http://a.tiles.mapbox.com/bclc/',
layerName: 'bclc-usa-glass',
zoomRange: [4, 8]
}),
null,
[ new mm.DragHandler,
new mm.DoubleClickHandler,