Skip to content

Instantly share code, notes, and snippets.

View WillEngler's full-sized avatar
🦔

Will Engler WillEngler

🦔
View GitHub Profile
@WillEngler
WillEngler / gist:51fa664745d2db073a81
Created February 3, 2015 00:27
Define alternative file structure in Gradle
sourceSets{
main{
java {
srcDir 'src'
}
}
test{
java {
srcDir 'test'
}
@WillEngler
WillEngler / gist:5c3407cba91fabf1410b
Created March 31, 2015 20:11
Chicago community areas as Geojson
This file has been truncated, but you can view the full file.
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "GeometryCollection",
"geometries": [
{
"type": "Polygon",
@WillEngler
WillEngler / gist:3f32a459f561d55855ec
Created April 2, 2015 00:03
Parameters for Mercator projection over Chicago in D3 js that kinda work
projection = d3.geo.mercator().center([-87.68398142305401,41.92394041])
.scale([273400]).translate(offset);
path = path.projection(projection);
from plenario.models import MetaTable
submission_meta = MetaTable(url='dummy_url',
human_name='Your Dataset Name',
observed_date='col_with_timestamps',
latitude='col_with_lat',
longitude='col_with_lon',
approved_status=True)
etl = PlenarioETL(submission_meta, 'path/on/your/filesystem')
@WillEngler
WillEngler / nursingHomes.json
Created February 18, 2016 23:09
Number of Chicago nursing homes by community area.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WillEngler
WillEngler / asbestos.json
Last active February 18, 2016 23:30
Asbestos-related complaints to the CDPH in 2016, tagged with the zip code the complaint occurred in. (Made with plenar.io)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WillEngler
WillEngler / bristolCrimesByWard.json
Last active March 11, 2016 03:57
Crimes committed in Bristol by ward ('count' attribute in each ward is number of crimes)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WillEngler
WillEngler / cabotDrugCrimes2014.json
Created March 11, 2016 04:03
Drug crimes committed in the ward of Cabot in 2014
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WillEngler
WillEngler / plenario-sensor-mock.js
Last active April 2, 2016 20:16
What should Plenario's sensor API look like?
// Every network maintainer gets an API key to authenticate POST, PATCH, DELETE requests on sensors and observations in their network
// What a network maintainer would POST to /sensor-observation
{
"data": {
"type": "sensor-observation",
"api-key": "abc123mykey", // Assigned to maintainer of sensor network
"attributes": {
"time": "2016-02-29T18:39:30.519207", // The one attribute that we mandate.
"observation": {
// The maintainer of the sensor network is responsible