Skip to content

Instantly share code, notes, and snippets.

View stevevance's full-sized avatar
🏠
Working from home

Steven Vance stevevance

🏠
Working from home
View GitHub Profile
@stevevance
stevevance / getjson.js
Created August 22, 2018 04:46
Sample JavaScript code to get an API that returns JSON
function getAnApi(route, stop_id) {
var url = "https://website.domain/api/endpoint?";
var jqxhr = $.getJSON(url, {
// these are URL parameters
route: route,
stop_id: stop_id
})
.done(function(data) {
// all of the JSON response is now in a variable called "data"
@stevevance
stevevance / holc descriptions text mining.csv
Created May 23, 2018 15:56
Home Owners' Loan Corporation "redlining" maps descriptions for Cook County neighborhoods
We can't make this file beautiful and searchable because it's too large.
"holc_id","holc_grade","narrative"
"C76","C","This is an area of heterogeneous development almost impossible to classify because of complete lack of uniformity of structures, not only in style, but in point of general desirability. Improvements vary from good apartments to old, obsolete residences, from unfurnished kitchenette apartments to semi-high class furnished apartments, from rooming houses to apartment hotels. Location convenient to transportation; shopping and amusement centers, and beaches are its greatest assets. Ground value is the price tag on the residential property with the trend toward larger apartments of six-family and up. The future of this area is rather uncertain, but it is doubtful that it will reverse its present down trend."
"B35","B","This neighborhood is about 10 per cent built, with the bulk of structures centered around Oakton Park. All streets are paved and it appears that future development will be similar in character to that which is already here. Shopping centers are availabl
@stevevance
stevevance / bike_route.geojson
Last active April 24, 2018 15:22
A bike route given to a group of Dutch tourists.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stevevance
stevevance / IL_state_owned_land_01_30_2018.tsv
Created February 9, 2018 00:22
Outcome of a FOIA request for all Illinois state-owned land (this is a list of addresses, some of which are not locatable because they represent huge unaddressed parks and other areas). Obtained by Sam S.
We can't make this file beautiful and searchable because it's too large.
AgencyCertifying Site Name Physical street address City/Town County State Zip code
Agriculture Belleville-Henry White Farm 4747 Centerville Rd. Millstadt St. Clair IL 62260
Agriculture Duquoin State Fairgrounds 655 EXECUTIVE DR DuQuoin Perry IL 62832
Agriculture Galesburg Laboratory Site 2100 S Lake Storey Rd Galesburg Knox IL 61401
Agriculture Illinois State Fairgrounds Springfield 801 E Sangamon Ave Springfield Sangamon IL 62702
Agriculture Zell Farm 120 Acres 2125 E and 2150 E Beecher City Fayette IL 62414
Agriculture Zell Farm 160 Acres 2125 E and 2150 E Beecher City Fayette IL 62414
Agriculture Tracy Lane Home 358 Tracy Lane DuQuoin Perry IL 62832
Attorney General Attorney General Bldg - Springfield 500 S Second Street Springfield Sangamon IL 62706
Central Management Services Howe Developmental Center 7600 W 183rd St Tinley Park Cook IL 60477
@stevevance
stevevance / cta_property_041417.geojson
Created January 19, 2018 04:17
A map of CTA owned property as of April 14, 2017
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stevevance
stevevance / changeset_5037_finland_matka.json
Last active December 27, 2017 20:19
Payload for Finland Matka (long distance) feed
{
"changes": [
{
"action": "createUpdate",
"operator": {
"onestopId": "o-u6x-fÖliturunseudunjoukkoliikenne",
"name": "FÖLI Turun seudun joukkoliikenne",
"shortName": null,
"country": "FI",
"metro": "Turku",
@stevevance
stevevance / skate_parks_in_chicago.geojson
Last active December 23, 2017 19:37
Skate parks in Chicago via Overpass Turbo using OpenStreetMap data. Extract query: http://overpass-turbo.eu/s/tYv Extracted December 23, 2017
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stevevance
stevevance / hacknight_home_wards_feb2016.geojson
Created November 21, 2017 15:54
At a February 2016 ChiHackNight meeting, we asked people, when they introduced themselves, to say which ward they live in
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stevevance
stevevance / kimball_properties_660ft.geojson
Created September 28, 2017 00:43
Properties within 660 feet of Kimball station
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stevevance
stevevance / top_50_chicago_building_violations.tsv
Last active September 25, 2017 01:52
A count of the top 50 Chicago building violations grouped by type as of 9/24/17
count violation_code violation_description violation_ordinance
92922 CN190019 ARRANGE PREMISE INSPECTION Arrange for inspection of premises. (13-12-100)
59852 CN196029 POST OWNER/MANAGERS NAME/# Post name, address, and telephone of owner, owner's agent for managing, controlling or collecting rents, and any other person managing or controlling building conspicuously where accessible or visible to public way. (13-12-030)
52351 CN061014 REPAIR EXTERIOR WALL Failed to maintain the exterior walls of a building or structure free from holes, breaks, loose or rotting boards or timbers and any other conditions which might admit rain or dampness to the walls. (13-196-530(b), 13-196-641)
45596 CN070024 REPAIR PORCH SYSTEM Failed to repair or replace defective or missing members of porch system. (13-196-570, 13-196-641)
39023 CN193110 VACANT BUILDING - REGISTER Register vacant building within 30 days of it becoming vacant, or within 30 days after assuming ownership of an existing vacant building. (13-12-125(a)). Build