README is empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2", | |
"header": { | |
"title": "Police Department", | |
"navigation": [ | |
{ | |
"label": "Download", | |
"url": "https://www.opendataphilly.org/dataset/crime-incidents" | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2", | |
"header": { | |
"title": "Fire Department" | |
}, | |
"cards": [ | |
{ | |
"x": 0, | |
"y": 0, | |
"width": 12, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2", | |
"header": { | |
"title": "Philadelphia Prison System", | |
"description": "Mission: To provide a secure correctional environment that adequately detains persons accused or convicted of illegal acts; to provide programs, services, and supervision in a safe, lawful, clean, humane environment; and to prepare incarcerated persons for reentry into society in a frame of mind that will facilitate their becoming law-abiding citizens." | |
}, | |
"cards": [ | |
{ | |
"x": 0, | |
"y": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.when( | |
$.getJSON('https://data.phila.gov/resource/bbgf-pidf.geojson'), | |
$.getJSON('https://data.phila.gov/resource/r24g-zx3n.json?%24select=count(*)%20as%20value%2C%20%3A%40computed_region_bbgf_pidf%20as%20label&%24group=%3A%40computed_region_bbgf_pidf&%24order=value%20desc') | |
).done(function(responseGeojson, responseData) { | |
var data = responseData[0] | |
var geojson = responseGeojson[0] | |
// Create hash table for easy reference | |
var dataHash = {} | |
data.forEach(function(item) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var detectType = function(sample) { | |
if(moment(sample, moment.ISO_8601, true).isValid()) { | |
return 'datetime' | |
} else if(moment(sample, 'YYYY-MM-DD', true).isValid()) { | |
return 'date' | |
} else if(moment(sample, 'X', true).isValid()) { | |
return 'timestamp' | |
} else if( ! isNaN(sample) && sample.indexOf('.') !== -1) { | |
return 'float' | |
} else if( ! isNaN(sample)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import requests_mock | |
import pprint | |
pp = pprint.PrettyPrinter(indent=4) | |
session = requests.Session() | |
adapter = requests_mock.Adapter() | |
session.mount('mock', adapter) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Handsontable = require('handsontable') | |
var AmpersandModel = require('ampersand-model') | |
var AmpersandRestCollection = require('ampersand-rest-collection') | |
var _ = require('lodash') | |
var Person = AmpersandModel.extend({ | |
props: { | |
id: 'number', | |
name: 'string', | |
address: 'string' |