Skip to content

Instantly share code, notes, and snippets.

View tomchatting's full-sized avatar
🥽
Changing track

Thomas Chatting tomchatting

🥽
Changing track
View GitHub Profile
🏃‍♂️ 115km ████████████████▊░░░
🚶‍♂️ 22km ███░░░░░░░░░░░░░░░░░
136km total
[{"Date":"2023-01-01","Distance Walking/Running":"6781.22","Steps":"9274.00","Distance Swimming":"0.00","Strokes":"0.00","Distance Cycling":"0.00","Distance Wheelchair":"0.00","Distance Downhill Snowsports":"0.00"},{"Date":"2023-01-02","Distance Walking/Running":"2083.65","Steps":"2856.00","Distance Swimming":"0.00","Strokes":"0.00","Distance Cycling":"0.00","Distance Wheelchair":"0.00","Distance Downhill Snowsports":"0.00"},{"Date":"2023-01-03","Distance Walking/Running":"1635.66","Steps":"2168.00","Distance Swimming":"0.00","Strokes":"0.00","Distance Cycling":"0.00","Distance Wheelchair":"0.00","Distance Downhill Snowsports":"0.00"},{"Date":"2023-01-04","Distance Walking/Running":"2755.19","Steps":"3793.00","Distance Swimming":"0.00","Strokes":"0.00","Distance Cycling":"0.00","Distance Wheelchair":"0.00","Distance Downhill Snowsports":"0.00"},{"Date":"2023-01-05","Distance Walking/Running":"1739.05","Steps":"2336.00","Distance Swimming":"0.00","Strokes":"0.00","Distance Cycling":"0.00","Distance Wheelchair"
@tomchatting
tomchatting / surge.yml
Created March 24, 2023 12:06
YML file that ties publishes to surge.sh on commit. Secrets SURGE_DOMAIN and SURGE_TOKEN are required (to get the latter just do "surge token" in bash)
name: build+deploy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
name: Publish to Surge.sh
steps:
/*
* MapToClass provides a function for the C# SQL datareader, allowing you to automatically
* map output from a SQL query to a class
*
* I found this on SO a few weeks ago and I cannot for the life of me find it again
* so I'll pop it here and add attribution when I find the link buried in my history
*
* This means you can spend less time doing this:
* while (dr.Read())
* {