Skip to content

Instantly share code, notes, and snippets.

Avatar
☠️
computing

Morgan Herlocker morganherlocker

☠️
computing
View GitHub Profile
View simplesytle.js
var options = {
style:function(feature){
if(!feature.properties){
return;
}
var out = {};
if(feature.properties.stroke){
out.color = feature.properties.stroke;
}
if(feature.properties["fill-opacty"]){
View jquery.js
/*!
* jQuery JavaScript Library v2.1.1pre
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
@wboykinm
wboykinm / index.html
Last active May 16, 2016
Mapbox.js GeoJSON markers with Google Static Chart API Popups
View index.html
<!doctype html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.css' rel='stylesheet' />
<link href="http://netdna.bootstrapcdn.com/bootswatch/3.0.2/simplex/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="http://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v0.4.0/MarkerCluster.css" />
<link rel='stylesheet' href='http://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v0.4.0/MarkerCluster.Default.css' />
<style>
body { margin:0; padding:0; }
View gist:8063003
// JavaScript that solves http://regex.alf.nu/
// Run in Chrome or Firefox console
// Enjoy ;-)
// Some people, when confronted with a problem, think
// “I know, I'll use regular expressions.”
// Now they have two problems.
for(var lvl in levels) {
var fn = function(lvl) {
@calvinmetcalf
calvinmetcalf / README.md
Last active Dec 15, 2015
express server bounding boxes
View README.md

how to set up a quick server that gives you geojson based on a bounding box, your going to need to remember to install express and rtree with

npm install rtree express