Skip to content

Instantly share code, notes, and snippets.

View jimlambie's full-sized avatar
🐙

James Lambie jimlambie

🐙
  • Dunedin, New Zealand
  • 09:11 (UTC +12:00)
View GitHub Profile
@jimlambie
jimlambie / Mapmyrun exporter.js
Created October 3, 2022 06:32 — forked from stampyzfanz/Mapmyrun exporter.js
Exports Mapmyrun workouts to a series of tcx files which can be imported into lots of software.
// # Javascript to copy in dev tools console
let data = await (await fetch("https://www.mapmyrun.com/internal/allWorkouts/?started_after=2020-01-29")).json()
// Change started_after for date you want to filter from or remove entirely for every workout
// Api parameters:
// number user= *id* - can be found in url of the person's profile ie https://www.mapmyrun.com/profile/[id]/activity_feed
// ISO-8601-date started_after= *date* for example this is valid 2020-01-29
// ISO-8601-date started_before= *date* this is another valid date 2011-10-05T14:48:00.000Z
// Remove ?user= to access only your own workouts
// Example url using all 3 parameters
// https://www.mapmyrun.com/internal/allWorkouts/?started_after=2020-01-29&started_before=2021-5-29&user=123456789
@jimlambie
jimlambie / create_branch_from_tag
Created April 19, 2016 15:45 — forked from nickfloyd/create_branch_from_tag
To create a branch from a tag
-Go to the starting point of the project
>> git checkout origin master
-fetch all objects
>> git fetch origin
-Make the branch from the tag
>> git branch new_branch tag_name
-Checkout the branch
>> git checkout new_branch
-Push the branch up
>> git push origin new_branch
find . -name \.AppleDouble -exec rm -rf {} \;