This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>d3 geo map</title> | |
<meta charset="utf-8"> | |
<style> | |
svg { | |
border: 1px solid #ccc; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Simple Google Markers | |
ex: var marker = new stamen.simpleMarker(map,latlng); | |
*/ | |
(function(exports) { | |
var stamen = exports.stamen || (exports.stamen = {}); | |
stamen.simpleMarker = function(map, latlng) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Mercator = (function(){ | |
/** | |
Mercator Projection | |
ref: https://developers.google.com/maps/documentation/javascript/examples/map-coordinates?csw=1 | |
**/ | |
function MercatorProjection(tileSize) { | |
this.tileSize = tileSize || 256; | |
this.ONE_DEGREE = Math.PI / 180; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parses maps.stamen.com log files | |
# 99% of the code comes from http://pymotw.com/2/multiprocessing/mapreduce.html | |
# Another useful article can be found here, http://effbot.org/zone/wide-finder.htm | |
# Per file processing time could be improved with threads I imagine | |
# roughly 2k-3k files totaling ~ 150mb takes about 30min | |
""" | |
Usage: | |
1. Download log files from s3 into local dated directories with your weapon of choice. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* modifies Leaflet to allow for extra pathRoots, "main" & "evts". | |
* seems to work in 0.7.3, partially updated the code below | |
* Have not tested it for canvas support, VML seems ok | |
* TODO: Create more dynamic way to add 'pathRoots' | |
*/ | |
/* | |
USAGE: | |
1. Include this file after leaflet.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adds attribution for maps.stamen.com tiles to Google maps | |
// You will need to add these CSS styles | |
/* | |
#stamen-maps-attribution { | |
font-family: Roboto, Arial, sans-serif; | |
z-index: 1; | |
} | |
#stamen-maps-attribution > div { | |
background-color: rgb(245, 245, 245); | |
opacity: 0.7; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* loadJSONP( url, hollaback [, context] ) -> Null | |
* - url (String): URL to data resource. | |
* - hollaback (Function): Function to call when data is successfully loaded, | |
* it receives one argument: the data. | |
* - context (Object): Context to invoke the hollaback function in. | |
* | |
* Load external data through a JSONP interface. | |
* | |
* ### Examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Refer to http://caffe.berkeleyvision.org/installation.html | |
# Contributions simplifying and improving our build system are welcome! | |
# cuDNN acceleration switch (uncomment to build with cuDNN). | |
# USE_CUDNN := 1 | |
# CPU-only switch (uncomment to build without GPU support). | |
CPU_ONLY := 1 | |
# uncomment to disable IO dependencies and corresponding data layers |