Skip to content

Instantly share code, notes, and snippets.

View anandthakker's full-sized avatar

Anand Eng-Thakker anandthakker

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/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
nightlystats <- read.csv("summaries/nightly-stats.csv", header=F,
col.names=c('year',
'month',
'day',
'satellite',
'filtered_count',
'raw_count',
'mean',
'min',
'median',
#### Start IPython, generate SHA1 password to use for IPython Notebook server
$ ipython
Python 2.7.5 |Anaconda 1.8.0 (x86_64)| (default, Oct 24 2013, 07:02:20)
Type "copyright", "credits" or "license" for more information.
IPython 1.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.

Derek SSC

##Start

  1. Structured technical education for new and current team-members who are coders. Covers coding style, coding for readability and maintainability, and other best practices. Applies to anyone who joins us and is expected to code, more to those who are expected to code all/most of the time.

Right now we have a just-do-it approach where we throw them into the fire and call it teching up. We can't expect people to just osmosis this stuff. It can be more of a mentor/mentee approach or something else entirely, but we have to build time for it, by which I mean, if two people build something and one is expected to teach the other, it takes longer than if that first person just built it.

  1. Make someone the ZOD of communicating to the world what we're doing. This someone must not already be a fully-burdened team member.
@anandthakker
anandthakker / index.html
Last active January 17, 2016 10:41
Hover styles with Mapbox GL
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@anandthakker
anandthakker / index.html
Created September 22, 2015 21:56
Data driven style example with Mapbox GL
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.11.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@anandthakker
anandthakker / bootstrap.sh
Last active October 16, 2015 16:08
Ubuntu bootstrap: tilelive-s3, mbtiles, tippecanoe, oam-catalog-grid
#!/bin/bash
set -e
sudo apt-get update
sudo apt-get install -y git build-essential
git clone https://github.com/anandthakker/dotfiles
cd dotfiles && git submodule update --init --recursive
cd ..
@anandthakker
anandthakker / directions.md
Last active November 4, 2015 16:15
Development Seed DC Office Location

Our address is 1226 9th St. NW, but the entrance is actually around back: from that block of 9th street, look for Blagden Alley. As you walk into Blagden Alley there's a parking lot on your right; ours is the building right next to it, and we're up on the second floor