Skip to content

Instantly share code, notes, and snippets.

View marks's full-sized avatar

Mark Silverberg marks

View GitHub Profile
@marks
marks / BaltimoreTravelOptions.ipynb
Last active February 28, 2016 18:32
Thomas/Darron/Mark Celebrating Cities Hack The Last Mile work
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marks
marks / SPSS_code.py
Created February 25, 2016 21:07
SPSS and Stata code for importing a Socrata open dataset using SODA CSV APIs
# Requires official IBM SPSS extension to be installed [https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/We70df3195ec8_4f95_9773_42e448fa9029/page/Downloads%20for%20IBM%C2%AE%20SPSS%C2%AE%20Statistics]
* Encoding: UTF-8.
BEGIN PROGRAM Python.
# Import python dependencies
import urllib2
import csv
@marks
marks / scraping-because-there-is-no-API-or-export.ipynb
Last active February 12, 2016 17:41
Web scraping solution of CDC Vessel Sanitation Program Inspections -- DDOD issue #11 (https://github.com/demand-driven-open-data/ddod-intake/issues/11)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marks
marks / states.geojson
Created January 20, 2016 20:13 — forked from mapsam/states.geojson
US States GeoJSON from NaturalEarthData
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marks
marks / 0_reuse_code.js
Created January 20, 2016 18:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@marks
marks / chicago-crimes.v2.json
Last active January 17, 2016 20:39 — forked from timwis/chicago-crimes.v2.json
Chicago crime incidents VizWit configuration
{
"version": "2",
"header": {
"title": "Crime Incidents in Chicago",
"description": "This dataset reflects reported incidents of crime (with the exception of murders where data exists for each victim) that occurred in the City of Chicago from 2001 to present, minus the most recent seven days. Data is extracted from the Chicago Police Department's CLEAR (Citizen Law Enforcement Analysis and Reporting) system. In order to protect the privacy of crime victims, addresses are shown at the block level only and specific locations are not identified.",
"navigation": [{
"label": "Download",
"url": "https://data.cityofchicago.org/api/views/ijzp-q8t2/rows.csv?accessType=DOWNLOAD&bom=true"
}]
},
@marks
marks / README.md
Last active November 28, 2015 16:06
portals

README is empty

@marks
marks / README.md
Last active August 29, 2015 14:25 — forked from jefffriesen/README.md
US Zip Codes
@marks
marks / gist:b74e56bc9eb48772b77d
Last active August 29, 2015 14:21
Example SAS code bringing in data from a Socrata Open Data Portal (open.whitehouse.gov in this case). Output can be seen at http://imgur.com/m6ozopR
filename datain url
'http://open.whitehouse.gov/resource/i9g8-9web.csv?$limit=50000';
proc import datafile=datain out=whsalaries dbms=csv replace;
getnames=yes;
/* proc print data=whsalaries; */
proc means;
@marks
marks / README.md
Last active August 29, 2015 14:20
Algorithmia algorithm for descriptive statistics on numeric columns of data