Skip to content

Instantly share code, notes, and snippets.

@yizeng
yizeng / .dockerignore
Last active February 17, 2024 02:29
An example .dockerignore file for Rails
View .dockerignore
.git
.gitignore
# Created by https://www.gitignore.io/api/git,ruby,rails,jetbrains+all
# Edit at https://www.gitignore.io/?templates=git,ruby,rails,jetbrains+all
### Git ###
# Created by git for backups. To disable backups in Git:
# $ git config --global mergetool.keepBackup false
*.orig
@yizeng
yizeng / gist:bfc984373ad479a0c7796a82653945ff
Created April 14, 2018 06:03
Strava DetailedActivity example
View gist:bfc984373ad479a0c7796a82653945ff
{"resource_state":3,"athlete":{"id":9123806,"resource_state":1},"name":"First wourkout around Hagley in a while","distance":11567.5,"moving_time":3647,"elapsed_time":3703,"total_elevation_gain":42.8,"type":"Run","workout_type":3,"id":690216305,"external_id":"20160218041601.tcx","upload_id":760612234,"start_date":"2016-02-18T04:16:01Z","start_date_local":"2016-02-18T17:16:01Z","timezone":"(GMT+12:00) Pacific/Auckland","utc_offset":46800.0,"start_latlng":[-43.53975,172.617904],"end_latlng":[-43.539866,172.617122],"location_city":null,"location_state":null,"location_country":"New Zealand","start_latitude":-43.53975,"start_longitude":172.617904,"achievement_count":0,"kudos_count":0,"comment_count":0,"athlete_count":2,"photo_count":0,"map":{"id":"a690216305","polyline":"lzvhG{lq|_@E@]S_AcCc@q@Yg@m@{@_@w@[e@iAqBgAaCcB}DWe@Wm@sA{BuBqEg@_AuAuBc@[g@@Wh@Oh@Kn@W|@mBvJUn@Op@It@]`BW~AOr@OXKx@{@`EY`Bc@vAm@rAoArBi@h@Qr@s@dAWj@Sl@WfBQn@i@lA]n@[`@_@\\_@XkAl@a@V{@z@i@|@WPSC_@@k@Ps@Zi@@yAEg@Gm@?c@Go@C}CG[AWMKAG@_@CO@QGa@[kAWa@