Skip to content

Instantly share code, notes, and snippets.

View jstart's full-sized avatar
💭
Learning SwiftUI... slowly

Christopher Truman jstart

💭
Learning SwiftUI... slowly
View GitHub Profile
@jstart
jstart / gist:279a62947a4a82a53ecc04ba23a6e67d
Created October 15, 2025 04:08
Torrance Bike and Pedestrian Accidents 2014-2023
CASE_ID,ACCIDENT_YEAR,PROC_DATE,JURIS,COLLISION_DATE,COLLISION_TIME,OFFICER_ID,REPORTING_DISTRICT,DAY_OF_WEEK,CHP_SHIFT,POPULATION,CNTY_CITY_LOC,SPECIAL_COND,BEAT_TYPE,CHP_BEAT_TYPE,CITY_DIVISION_LAPD,CHP_BEAT_CLASS,BEAT_NUMBER,PRIMARY_RD,SECONDARY_RD,DISTANCE,DIRECTION,INTERSECTION,WEATHER_1,WEATHER_2,STATE_HWY_IND,CALTRANS_COUNTY,CALTRANS_DISTRICT,STATE_ROUTE,ROUTE_SUFFIX,POSTMILE_PREFIX,POSTMILE,LOCATION_TYPE,RAMP_INTERSECTION,SIDE_OF_HWY,TOW_AWAY,COLLISION_SEVERITY,NUMBER_KILLED,NUMBER_INJURED,PARTY_COUNT,PRIMARY_COLL_FACTOR,PCF_CODE_OF_VIOL,PCF_VIOL_CATEGORY,PCF_VIOLATION,PCF_VIOL_SUBSECTION,HIT_AND_RUN,TYPE_OF_COLLISION,MVIW,PED_ACTION,ROAD_SURFACE,ROAD_COND_1,ROAD_COND_2,LIGHTING,CONTROL_DEVICE,CHP_ROAD_TYPE,PEDESTRIAN_ACCIDENT,BICYCLE_ACCIDENT,MOTORCYCLE_ACCIDENT,TRUCK_ACCIDENT,NOT_PRIVATE_PROPERTY,ALCOHOL_INVOLVED,STWD_VEHTYPE_AT_FAULT,CHP_VEHTYPE_AT_FAULT,COUNT_SEVERE_INJ,COUNT_VISIBLE_INJ,COUNT_COMPLAINT_PAIN,COUNT_PED_KILLED,COUNT_PED_INJURED,COUNT_BICYCLIST_KILLED,COUNT_BICYCLIST_INJURED,COUNT_MC
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 10.
Variable,Label
DP02_0019EA,Annotation of Estimate!!RELATIONSHIP!!Population in households!!Householder
DP02_0126E,Estimate!!ANCESTRY!!Total population!!Arab
DP02_0072EA,Annotation of Estimate!!DISABILITY STATUS OF THE CIVILIAN NONINSTITUTIONALIZED POPULATION!!Total Civilian Noninstitutionalized Population!!With a disability
DP02_0069PMA,Annotation of Percent Margin of Error!!VETERAN STATUS!!Civilian population 18 years and over
DP02_0057PMA,Annotation of Percent Margin of Error!!SCHOOL ENROLLMENT!!Population 3 years and over enrolled in school!!High school (grades 9-12)
DP02_0041MA,"Annotation of Margin of Error!!FERTILITY!!Number of women 15 to 50 years old who had a birth in the past 12 months!!Per 1,000 women 15 to 19 years old"
DP02_0070PMA,Annotation of Percent Margin of Error!!VETERAN STATUS!!Civilian population 18 years and over!!Civilian veterans
DP02_0125E,Estimate!!ANCESTRY!!Total population!!American
DP02_0054PE,"Percent!!SCHOOL ENROLLMENT!!Population 3 years and over enrolled in school!!Nursery sc
{
"7150064F": {
"Renter_Percent": 42.6
},
"7150806A": {
"Renter_Percent": 42.6
},
"7150065B": {
"Renter_Percent": 42.6
},
Precinct_ID Area_Name Area_sqft Perimeter_ft
7150064F PALOS VERDES AREA 906718.118164062 3930.80318081959
7150806A PALOS VERDES AREA 490207.452148438 2726.02070703845
7150065B PALOS VERDES AREA 568030.256835938 3096.44637083279
7150117A PALOS VERDES AREA 577461.192382812 3228.15794911142
7150001A INGLEWOOD AREA 694636.442382812 3850.32114947796
7150001B INGLEWOOD AREA 500473.517578125 2923.41854458772
7150001C INGLEWOOD AREA 864315.783203125 3955.25355765128
7150001D INGLEWOOD AREA 872172.846679688 3958.06630486709
7150001E INGLEWOOD AREA 530348.895507812 3838.6020791436
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
func testPlaceSearchByTextRequestGMPSRequestCreationWithProperties() {
let placeProperties: [GMSPlaceProperty] = [GMSPlacePropertyName, GMSPlacePropertyPlaceID];
let request = GMSPlaceSearchByTextRequest(textQuery:"pizza in New York" placeProperties:placeProperties)
request.isOpenNow = true
request.includedType = "restaurant"
request.maxResultCount = 5
request.minRating = 3.5
request.rankPreference = .distance
request.isStrictTypeFiltering = true
request.priceLevels = [GMSPlacesPriceLevel.moderate.rawValue, GMSPlacesPriceLevel.cheap.rawValue]
- (void)testPlaceSearchByTextRequestGMPSRequestCreationWithProperties {
GMSPlaceSearchByTextRequest *request =
[[GMSPlaceSearchByTextRequest alloc] initWithTextQuery:@"pizza in New York" placeProperties:@[GMSPlacePropertyName, GMSPlacePropertyPlaceID]];
request.isOpenNow = YES;
request.includedType = @"restaurant";
request.maxResultCount = 5;
request.minRating = 3.5;
request.rankPreference = GMSPlaceSearchByTextRankPreferenceDistance;
request.isStrictTypeFiltering = YES;
request.priceLevels = @[ @(kGMSPlacesPriceLevelFree), @(kGMSPlacesPriceLevelCheap) ];

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@jstart
jstart / conf.json
Created August 7, 2019 03:08
Conferences.digital Updated Conferences
{
"Try Swift 2019": {
"talks": [{
"title": "Swift Server Update",
"source": "youtube",
"videoId": "ZefmzgLabCA",
"details": "The Swift Server Work Group (SSWG) goal is to create a robust, healthy ecosystem for server application development with Swift. Its current focus is to encourage the development of high quality, well maintained libraries and tools that the community can reliably lean on. In this talk, we will review the latest development since the SSWG was announced Sept 2018, describe the incubation process and how to get involved, and dive into the details of some of the active projects and proposals the community and teams are working on.",
"speaker": {
"name": "Tom Doron",
"twitter": "https://twitter.com/tomerdoron",
@jstart
jstart / NestedScrollViews.swift
Created June 17, 2019 19:56
SwiftUI Nesting ScrollView's
struct NestedScrollViews : View {
var body: some View {
NavigationView {
ScrollView {
VStack {
ForEach(0..<100) { _ in
ScrollView {
HStack {
Text("test test test test test test test test test test test test test")