Skip to content

Instantly share code, notes, and snippets.

View calvinmetcalf's full-sized avatar

Calvin Metcalf calvinmetcalf

View GitHub Profile
//we will use this again
function foo(){
function bar(){
}
return bar;
}
//export by itself
//with a declaration
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"]){
var scheme = new PyramidScheme({
minzoom: 0,
maxzoom: 2,
concurrency: 1,
metatile: 1
});
var tiles = [];
scheme.task = {
'use strict';
var inherits = require('util').inherits;
var Transform = require('readable-stream').Transform;
module.exports = Stream;
inherits(Stream, Transform);
//can take either 1 or 2 functions or an array
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
site_id Site_name year month month_no monthly_total annual_total
4 Allston 2013 January 1 1.369999969 36.13999917
4 Allston 2013 February 2 3.39999992 36.13999917
4 Allston 2013 March 3 1.859999958 36.13999917
4 Allston 2013 April 4 1.439999968 36.13999917
4 Allston 2013 May 5 3.809999917 36.13999917
4 Allston 2013 June 6 9.859999781 36.13999917
4 Allston 2013 July 7 3.169999924 36.13999917
4 Allston 2013 August 8 1.779999955 36.13999917
4 Allston 2013 September 9 2.06999995 36.13999917