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 / green_line.ql
Created April 12, 2017 03:37
Find grocery stores within 400 meters of the METRO Green Line train: http://overpass-turbo.eu/s/oj3
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“railway=light_rail and name="Green Line"”
*/
[out:json][timeout:25];
// gather results
(
// query part for: “railway=light_rail and name="Green Line"”
@stevevance
stevevance / 71st_street_downzoning.geojson
Last active May 23, 2017 05:04
A map of eight proposed ordinances to downzone mixed-use zones on 71st Street in South Shore to RS-3 (single-family).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stevevance
stevevance / map.geojson
Last active June 27, 2017 20:22
606 anti-gentrification development fee pilot area
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stevevance
stevevance / README.md
Last active May 31, 2017 18:47
Maps of traffic crashes in Chicago collected by the Illinois Department of Transportation. They are both incomplete. A great example of that is how there are more crashes in five months of 2017 than in 12 months of 2016, and also that crashes geocoded to appear outside of the Chicago city limits hasn't been corrected yet.
@stevevance
stevevance / downzonings_11th.geojson
Created June 27, 2017 20:26
Downzonings in the 11th Ward
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stevevance
stevevance / import_geojson.sql
Last active July 3, 2017 02:04
Import GeoJSON into PostgreSQL after re-projecting it to Illinois StatePlane East (feet) (or any other EPSG/SRID)
update table_name set geom = st_transform(st_setsrid(st_geomfromgeojson('{
"type": "Polygon",
"coordinates": [
[
[
-87.638478577137,
41.90763496036403
],
[
-87.63751566410065,
@stevevance
stevevance / README.MD
Last active April 17, 2018 19:37
Police issued a lot of spurious tickets in Chicago neighborhoods with higher populations of low-income and people of color.

I downloaded the CSV from Freddy Martinez. See all the data, and the FOIA request, on their repo. This data dump should show the same data the Chicago Tribune used in its analysis of where Chicago police officers issue tickets to people bicycling.

The CSV started with 15,971 total records.

I performed the following corrections of the data:

  • Removed 71 records on Unknown street
  • Coalesced all records on KING DR to use the same spelling
  • Removed the following ambiguous ones (sorry, I should have recorded the unique record ID along with these):
    • 850 67TH
    • 2050 71 STREET
@stevevance
stevevance / bike_parking_letter_to_aldi.txt
Created August 11, 2017 16:16
letter to Aldi about their bad bike parking
Hello, I am thrilled that Aldi has reopened here, with a new design, and is more pedestrian-friendly, because one of the entrances is on the sidewalk.
However, the store doesn't have a good place to park a bike. The bike rack model that has been installed hold a very small number of bicycles (2-4 depending on how people use it; it's hard to park here because the metal tubes are so close together), but it is also an insecure model.
The bike rack uses thin, round metal tubing, which can be easily cut with a handheld pipe cutter. The bike rack is installed on the ground with only 2 thin screws, which can be removed with hand tools obtained from any hardware store.
Because of this insecure installation, and the trouble of shuffling my bike into a crowd of other bikes at this rack, I lock my bike to the guard rails at the shopping cart pen.
The store is only going to get busier with bicyclists as more of your previous customers (and all of the new residents who've moved in when the store was gone) see that
@stevevance
stevevance / post_offices.geojson
Last active August 29, 2017 17:06
Post offices in an arbitrary area of Chicagoland, from OpenStreetMap, extracted by Overpass Turbo http://overpass-turbo.eu/s/rkP
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stevevance
stevevance / large_lots_september_2017.geojson
Last active September 12, 2017 19:00
Large Lots to be sold in September/October 2017. 952 properties
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.