Skip to content

Instantly share code, notes, and snippets.

Will Engler WillEngler

Block or report user

Report or block WillEngler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@WillEngler
WillEngler / howto.md
Last active Jun 20, 2019
Build GDAL from source with Postgres support on AWS Linux
View howto.md

How to make custom Elastic Beanstalk AMI

  1. Start environment with your desired configuration (e.g. Python 3.4)
  2. Find generated instance in EC2 console. The AMI ID is your base image.
  3. Launch an instance from the base AMI (It will be in the list of community AMISs)
  4. Provision that instance.
  5. Make an AMI from it. Use the AMI ID in your beanstalk environment configuration.
View flask_admin_bug.py
from os import environ
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_admin import Admin
from geoalchemy2 import Geometry
from flask_admin.contrib.geoa import ModelView
app = Flask(__name__)
@WillEngler
WillEngler / sensorCommentThread.md
Created Jul 6, 2016
Plenario Sensor API Comment Thread
View sensorCommentThread.md

For stakeholders to comment on the draft metadata specification in this wiki page. (I don't think there's a way to comment directly on a wiki page.)

View buildingViolationsEdgewater2016.json
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 Mar 11, 2016
Drug crimes committed in the ward of Cabot in 2014
View cabotDrugCrimes2014.json
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 Mar 11, 2016
Crimes committed in Bristol by ward ('count' attribute in each ward is number of crimes)
View bristolCrimesByWard.json
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 Apr 2, 2016
What should Plenario's sensor API look like?
View plenario-sensor-mock.js
// 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
@WillEngler
WillEngler / asbestos.json
Last active Feb 18, 2016
Asbestos-related complaints to the CDPH in 2016, tagged with the zip code the complaint occurred in. (Made with plenar.io)
View asbestos.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WillEngler
WillEngler / nursingHomes.json
Created Feb 18, 2016
Number of Chicago nursing homes by community area.
View nursingHomes.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View local_ingest.py
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')
You can’t perform that action at this time.