Skip to content

Instantly share code, notes, and snippets.

//Derived from https://gist.github.com/anditriathlon/6da8ca33916e0a5e9a2d305ebd56072b
function extractActivityIds () {
let LIST_SELECTOR = '#Flow > div > div > main > div > div:nth-child(3) > div:nth-child(1) > div.row.history-list__row.history-list';
const activityIds = [];
$(LIST_SELECTOR).each(function(){
extractedActivityId = $(this).attr('class').replace('row history-list__row history-list id-','');
activityIds.push(extractedActivityId);
});
return activityIds;
}
@modal
modal / polar_flow_bulk_export.md
Created February 17, 2025 00:40 — forked from anditriathlon/polar_flow_bulk_export.md
Polar Flow export multiple activities in one go using JS/jQuery - working solution at 2023-08-18 using Google Chrome
  1. First of all navigate to: https://flow.polar.com/diary/training-list and select the date range of activities you want, and pick show all in drop down.

  2. then open the developer tools in your browser, e.g in Google Chrome "Control + Alt + I" on Windows or "Option + Command + I" on Mac

  3. then copy paste below JS into console

function extractActivityIds () {
@modal
modal / polar_flow_bulk_export.md
Created February 17, 2025 00:40 — forked from anditriathlon/polar_flow_bulk_export.md
Polar Flow export multiple activities in one go using JS/jQuery - working solution at 2023-08-18 using Google Chrome
  1. First of all navigate to: https://flow.polar.com/diary/training-list and select the date range of activities you want, and pick show all in drop down.

  2. then open the developer tools in your browser, e.g in Google Chrome "Control + Alt + I" on Windows or "Option + Command + I" on Mac

  3. then copy paste below JS into console

function extractActivityIds () {
@modal
modal / polar_flow_bulk_export.md
Last active February 17, 2025 00:43 — forked from anditriathlon/polar_flow_bulk_export.md
Polar Flow export multiple activities in one go using JS/jQuery - working solution at 2023-08-18 using Google Chrome
  1. Navigate to: https://flow.polar.com/diary/training-list and select the date range of activities you want, and pick show all in drop down.

  2. Open the developer tools in your browser, e.g in Google Chrome "Control + Alt + I" on Windows or "Option + Command + I" on Mac

  3. Copy/paste below JS into console

function extractActivityIds () {
	let LIST_SELECTOR = '#Flow > div > div > main > div > div:nth-child(3) > div:nth-child(1) > div.row.history-list__row.history-list';
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.7.1" version="1.0">
This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
<lib desc="#Wiring" name="0"/>
<lib desc="#Gates" name="1"/>
<lib desc="#Plexers" name="2"/>
<lib desc="#Arithmetic" name="3"/>
<lib desc="#Memory" name="4"/>
<lib desc="#I/O" name="5"/>
<lib desc="#Base" name="6">
#!/bin/bash
#Add all files except modified files beginning with "config"
git add --all && \
git reset -- config* && \
git commit -m"$@"
@modal
modal / ctrl_serial.py
Last active July 15, 2022 15:36
Python Serial Data Logger in Response to a Reddit Post
#http://www.reddit.com/r/electronics/comments/hzl9e/serial_data_logging_and_play_back/
#Serial Data Logging
#Assumptions:
#Microsoft Windows
import sys
import serial
import time
import glob
# declare types of commands
C_ARITMETIC = object()
C_PUSH = object()
C_POP = object()
C_LABEL = object()
C_GOTO = object()
C_IF = object()
C_FUNCTION = object()