Skip to content

Instantly share code, notes, and snippets.

View stiles's full-sized avatar

Matt Stiles stiles

View GitHub Profile
@stiles
stiles / homeless_cnt_neighborhood.geojson
Created August 30, 2019 06:39
LA City Homeless Count 2019, By Neighborhood
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stiles
stiles / homeless_count_la_city.geojson
Created August 30, 2019 06:04
LA City Homeless Count 2019, By Block
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stiles
stiles / query.sh
Last active August 25, 2019 03:07
Get one property from LA County Assessor Parcels API
# 4377002900
# 5571031904
http://assessor.gis.lacounty.gov/assessor/rest/services/PAIS/pais_parcels/MapServer/0/query?f=json&where=AIN%20%3D%20%274377002900%27&returnGeometry=true&spatialRel=esriSpatialRelIntersects&outFields=AIN&outSR=102100
http://assessor.gis.lacounty.gov/assessor/rest/services/PAIS/pais_parcels/MapServer/0/query?f=json&where=AIN%20%3D%20%275571031904%27&returnGeometry=true&spatialRel=esriSpatialRelIntersects&outFields=AIN&outSR=102100
@stiles
stiles / buffer_convert_3310.sh
Last active August 29, 2019 21:21
batch data conversion
# reproject data
ogr2ogr la_county_gis_childcare_3310.geojson -t_srs "EPSG:3310" la_county_gis_childcare_1566577142572.geojson
ogr2ogr la_city_gis_bikeways_3310.geojson -t_srs "EPSG:3310" Bikeways_Existing.geojson
ogr2ogr la_city_parks_3310.geojson -t_srs "EPSG:3310" la_city_parks_1566703413127.geojson
ogr2ogr lausd_schools_boundaries_3310.geojson -t_srs "EPSG:3310" lausd_schools_boundaries_1566703408821.geojson
ogr2ogr la_county_gis_homeless_shelters_3310.geojson -t_srs "EPSG:3310" la_county_gis_homeless_shelters_1566703407847.geojson
ogr2ogr la_city_boundary_3310.geojson -t_srs "EPSG:3310" city_boundary_4326.geojson
# ogr2ogr la_city_parcels_3310.geojson -t_srs "EPSG:3310" la_city_parcels_4326.geojson
# copy reprojected data to postgis database
@stiles
stiles / homeless2019.geojson
Last active August 15, 2019 04:56
LA County homeless count geo 2019
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stiles
stiles / trump_daily_tweets_size.json
Last active August 14, 2019 13:42
Trump Tweet Frequency Since Inauguration
{
"config": {
"view": {"width": 800, "height": 450},
"background": "#ffffff",
"title": {
"anchor": "start",
"font": "Benton Gothic Bold, sans",
"fontColor": "#000000",
"fontSize": 22,
"fontWeight": "normal"
@stiles
stiles / lacounty-donations.csv
Last active September 18, 2019 03:15
2nd District Donations - By Location
candidate inside outside
Jan Perry 97380 415380
Holly Mitchell 78981 489985
Herb Wesson 227105 907633
Jake Jeong 14450 31650
@stiles
stiles / district2labels.geojson
Created August 12, 2019 21:41
District 2 labels
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stiles
stiles / 2nddistrict.geojson
Last active August 12, 2019 21:40
LA County Supervisors: 2nd District Map
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stiles
stiles / merged_zips_totals.geojson
Last active August 12, 2019 21:19
2nd District Donations by LA Zips: 2018-2019
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.