This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change all activity types on the page to eBiking | |
jQuery('.js-changeActivityType').each(async function(){ if(jQuery(this).text() == "eBiking"){ jQuery(this).click(); console.log("Clicked"); await sleep(100); } } ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import csv | |
from dataclasses import dataclass | |
from datetime import datetime, timedelta | |
from os.path import exists | |
import pickle | |
import spotipy | |
from spotipy.oauth2 import SpotifyOAuth | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import datetime | |
import xml.etree.ElementTree as ET | |
# To do: should set this up dynamically from the xmlns in the file | |
ns = {'tcx' : "http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2"} | |
time_format = '%Y-%m-%dT%H:%M:%S.000Z' | |
parser = argparse.ArgumentParser(description = "Recalculate distance in TCX file for indoor activities") | |
parser.add_argument("file", type = argparse.FileType('r'), help = "Input TCX file") |