A script to sync activities *.FIT from my Garmin smartwatch.
deno run https://gist.githubusercontent.com/lpenaud/4bc8dce6c69d80a3a65bf4c59b4c4e5a/raw/activity.ts INDIR OUTDIR| import { CsvParseStream } from "https://deno.land/[email protected]/csv/mod.ts"; | |
| export interface RadioSearchOptions { | |
| hidebroken?: boolean; | |
| order?: "clickcount"; | |
| reverse?: boolean; | |
| language?: string; | |
| tagList?: string; | |
| codec?: string; | |
| limit?: number; |
| #!/bin/bash | |
| if [ $# -eq 0 ]; then | |
| printf "Usage: %s INDIR [...INDIRS]\n" "${0}" >&2 | |
| exit 1 | |
| fi | |
| # track | |
| function get_mimetype () { | |
| local line |
| #!/bin/bash | |
| if [ $# -ne 3 ]; then | |
| printf "Usage: %s LIST INFILE OUTDIR\n" "${0}" | |
| exit 1 | |
| fi | |
| function add_seconds () { | |
| echo $(( $1 + $2 )) | |
| } |