Skip to content

Instantly share code, notes, and snippets.

@timwis
timwis / gist:d4ce0ffb3f2f616ef892
Created March 5, 2015 19:06
Embed Open Budget
<iframe src="http://www.phila.gov/openbudget/" width="100%" height="700" frameborder="0"></iframe>
@timwis
timwis / gist:8ab6607d8f744e70437c
Created April 23, 2015 17:58
bike share swagger
swagger: "2.0"
info:
description: |
Locations of Indego bike share stations in Philadelphia
**Endpoint:** http://api.phila.gov/bike-share-stations/v1
version: "1.0"
title: Bike Share Stations
@timwis
timwis / gist:f24586ace7e43d6c6145
Created May 3, 2015 23:34
Election results kimono modification script
function transform(data) {
var newCandidates = [];
var raceIndex = -1; // start at -1 since first index is 0
// Loop through candidates
data.results.candidates.forEach(function(row, index) {
if(row.candidate === 'Candidate Name') {
raceIndex++;
} else {
row.race = data.results.races[raceIndex].race;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timwis
timwis / modernizr-custom.js
Last active September 14, 2015 16:05 — forked from ianlintner-wf/modernizr-custom.js
2.x dev-build of modernizr minified
/* Modernizr 2.8.3 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
*/
;window.Modernizr=function(a,b,c){function C(a){j.cssText=a}function D(a,b){return C(n.join(a+";")+(b||""))}function E(a,b){return typeof a===b}function F(a,b){return!!~(""+a).indexOf(b)}function G(a,b){for(var d in a){var e=a[d];if(!F(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function H(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:E(f,"functi
@timwis
timwis / gist:4237abfc1607d93bb5a0
Created September 14, 2015 16:20 — forked from ehershey/gist:ac1e9d9d246a5cb7de0c
Amazon Linux and Ubuntu and Red Hat Enterprise Linux
I've been launching and launching to test
varied instances, sizes, OS
to rule out dud instances
and regional differences
I'll try it outside us-west
mike o used an existing vpc
creating new ones broke for me
it all was this morning
with AMI's boring
I guess I'll go home now, thanks.
@timwis
timwis / gsheets.json
Last active September 25, 2015 18:32
Google Sheets VizWit testing
{
"version": "1",
"header": {
"title": "Parking Violations",
"description": "This data set reflects parking violations reported by authorized agencies in Philadelphia. The data represented below is a sample of parking violations occurring between 2012-2015 with license plate numbers anonymized for privacy.",
"navigation": [
{
"label": "Download",
"url": "https://data.phila.gov/api/views/3bxz-a5sb/rows.csv?accessType=DOWNLOAD&bom=true"
}
@timwis
timwis / parking-violations.json
Last active September 26, 2015 01:03
Parking Violations Full width
{
"version": "1",
"header": {
"title": "Parking Violations",
"description": "This data set reflects parking violations reported by authorized agencies in Philadelphia. The data represented below is a sample of parking violations occurring between 2012-2015 with license plate numbers anonymized for privacy.",
"navigation": [
{
"label": "Download",
"url": "https://data.phila.gov/api/views/3bxz-a5sb/rows.csv?accessType=DOWNLOAD&bom=true"
}
{
"version": "1",
"header": {
"title": "Improve Detroit: Submitted Issues",
"description": "This data set reflects parking violations reported by authorized agencies in Philadelphia. The data represented below is a sample of parking violations occurring between 2012-2015 with license plate numbers anonymized for privacy.",
"navigation": [
{
"label": "Download",
"url": "https://data.phila.gov/api/views/3bxz-a5sb/rows.csv?accessType=DOWNLOAD&bom=true"
}
@timwis
timwis / mass-commonwealth-connect.json
Last active September 30, 2015 01:14
Massachusetts Service Requests VizWit config
{
"version": "1",
"header": {
"title": "Improve Detroit: Submitted Issues",
"description": "This data set reflects parking violations reported by authorized agencies in Philadelphia. The data represented below is a sample of parking violations occurring between 2012-2015 with license plate numbers anonymized for privacy.",
"navigation": [
{
"label": "Download",
"url": "https://data.phila.gov/api/views/3bxz-a5sb/rows.csv?accessType=DOWNLOAD&bom=true"
}