Skip to content

Instantly share code, notes, and snippets.

Avatar

Minh Nguyễn 1ec5

View GitHub Profile
@1ec5
1ec5 / othertypes.tsv
Last active Nov 18, 2020
Business type descriptions for other businesses in Santa Clara County Social Distancing Protocol database
View othertypes.tsv
url typeofbusinessother
https://saesdp.sccgov.org/sdpdocs/3174340-SocialDistancingProtocolForm.pdf Streaming and outdoor production services
https://saesdp.sccgov.org/sdpdocs/3175907-SocialDistancingProtocolForm.pdf Farmer Market Vendor
https://saesdp.sccgov.org/sdpdocs/3172996-SocialDistancingProtocolForm.pdf Plumbing Company
https://saesdp.sccgov.org/sdpdocs/3174872-SocialDistancingProtocolForm.pdf Bakery
https://saesdp.sccgov.org/sdpdocs/3165898-SocialDistancingProtocolForm.pdf Quarry
https://saesdp.sccgov.org/sdpdocs/3174815-SocialDistancingProtocolForm.pdf ancillary hospital care
https://saesdp.sccgov.org/sdpdocs/3175499-SocialDistancingProtocolForm.pdf architecture
https://saesdp.sccgov.org/sdpdocs/3175068-SocialDistancingProtocolForm.pdf office
https://saesdp.sccgov.org/sdpdocs/3175860-SocialDistancingProtocolForm.pdf Home Bakery
@1ec5
1ec5 / simulation.md
Last active Jul 28, 2020
Comparison of route simulation features
View simulation.md
Characteristic iOS Simulator Xcode Mapbox Navigation SDK
Works in the iOS simulator
Works on a device
Works without a debugger attached
Compatible with Wormhole
Can ship as part of an application
Simulates user-defined routes
Simulates going off route
Simulates course changes
View 9-legged-route.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@1ec5
1ec5 / acgov.sh
Created May 23, 2020
Update the Wikimedia Commons table of COVID-19 cases in Berkeley and Alameda County, California
View acgov.sh
#!/bin/bash
# Fetch the current table as JSON
curl 'https://commons.wikimedia.org/wiki/Data:COVID-19_cases_in_Alameda_County,_California.tab?action=raw' > commons.json
# Fetch cases and deaths by day from the API
curl 'https://services3.arcgis.com/1iDJcsklY3l3KIjE/arcgis/rest/services/AC_dates/FeatureServer/0/query?where=1%3D1&outFields=Date,BkLHJ_Cases,BkLHJ_CumulCases,BkLHJ_Deaths,BkLHJ_CumulDeaths,ACLHJ_Cases,ACLHJ_CumulCases,ACLHJ_Deaths,ACLHJ_CumulDeaths,AC_Cases,AC_CumulCases,AC_Deaths,AC_CumulDeaths&outSR=4326&f=json' > dates.json
# Fetch hospitalizations by day from the API
curl 'https://services3.arcgis.com/1iDJcsklY3l3KIjE/arcgis/rest/services/AC_hospitalized2/FeatureServer/0/query?where=1%3D1&outFields=Date,Hospitalized_COVID_19_Positive_&outSR=4326&f=json' > hosp.json
@1ec5
1ec5 / datasf_covid19.sh
Last active May 18, 2020
Update the Wikimedia Commons table of COVID-19 cases in the City and County of San Francisco
View datasf_covid19.sh
#!/bin/bash
# Fetch the current table as JSON
curl 'https://commons.wikimedia.org/wiki/Data:COVID-19_cases_in_San_Francisco.tab?action=raw' > commons.json
# Fetch the new cases and deaths by day from the API
curl https://data.sfgov.org/resource/tvq9-ec9w.json > tvq9-ec9w.json
# Convert date from full timestamp to YYYY-MM-DD
# Pivot on dates as rows and counts by case disposition as columns
@1ec5
1ec5 / sccphd_covid19.sh
Last active May 10, 2020
Update the Wikimedia Commons table of COVID-19 cases in Santa Clara County, California
View sccphd_covid19.sh
#!/bin/bash
# Fetch the current table as JSON
curl 'https://commons.wikimedia.org/wiki/Data:COVID-19_Cases_in_Santa_Clara_County,_California.tab?action=raw' > commons.json
# Fetch the new cases by day from the dashboard
# Convert date from number of milliseconds to YYYY-MM-DD
# Fill in counts repeated from previous days, which are indicated by C = null, R = 2
# Calculate a running total
curl 'https://wabi-us-gov-virginia-api.analysis.usgovcloudapi.net/public/reports/querydata' --compressed --data '{"version":"1.0.0","queries":[{"Query":{"Commands":[{"SemanticQueryDataShapeCommand":{"Query":{"Version":2,"From":[{"Name":"c","Entity":"cases_date"}],"Select":[{"Column":{"Expression":{"SourceRef":{"Source":"c"}},"Property":"Date"},"Name":"cases_date.Date"},{"Aggregation":{"Expression":{"Column":{"Expression":{"SourceRef":{"Source":"c"}},"Property":"New_cases"}},"Function":0},"Name":"Sum(cases_date.New_cases)"}]},"Binding":{"Primary":{"Groupings":[{"Projections":[0,1]}]},"DataReduction":{"DataVolume":4,"Primary":
@1ec5
1ec5 / Main.storyboard
Last active Oct 10, 2019
Draft attribution guidelines simulation
View Main.storyboard
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_1" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
@1ec5
1ec5 / speed-limit-countries.geojson
Created Jul 16, 2019
Speed limit sign styles and units
View speed-limit-countries.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@1ec5
1ec5 / 2016.geojson
Created Jul 9, 2019
IndianaMap orthoimagery coverage area
View 2016.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@1ec5
1ec5 / AppDelegate.h
Last active May 13, 2019
SceneKit ❤️ Mapbox Maps SDK
View AppDelegate.h
@import Cocoa;
@interface AppDelegate : NSObject <NSApplicationDelegate>
@end
You can’t perform that action at this time.