Skip to content

Instantly share code, notes, and snippets.

View anandthakker's full-sized avatar

Anand Eng-Thakker anandthakker

View GitHub Profile
nightlystats <- read.csv("summaries/nightly-stats.csv", header=F,
col.names=c('year',
'month',
'day',
'satellite',
'filtered_count',
'raw_count',
'mean',
'min',
'median',
#!/usr/bin/env node
/*
* Read a newline-delimited stream of GeoJSON features,
* write a valid GeoJSON FeatureCollection.
*/
var geojsonstream = require('geojson-stream')
var ndjson = require('ndjson')
process.stdin
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.
@anandthakker
anandthakker / tiles.js
Created April 15, 2015 14:39
omnivore-to-mbtiles
#!/usr/bin/env node
/**
* Convert the given omnivore-compatible vector source into an mbtiles
* file of vector tiles.
*/
var path = require('path')
var multi = require('multimeter')(process)
var tilelive = require('tilelive')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anandthakker
anandthakker / index.js
Created March 7, 2015 02:24
Twitter search API test
// Usage: node index.js "twitter search string"
var request = require('request');
// Grab a bearer token using application-only auth
// (doc: https://dev.twitter.com/oauth/application-only)
@mixin min-width-query($size) {
@media screen and (min-width: $size) { @content; }
}
/**
* Media query shorthand. Usage:
*
* @include mq([condition1], [condition2], [condition3], [...]) {
* // the stuff that should happen under the given conditions.
* }