I hereby claim:
- I am alxbl on github.
- I am alxbl (https://keybase.io/alxbl) on keybase.
- I have a public key whose fingerprint is 6ADC C9F4 59AA 603E BB71 2011 6980 01FA 5C86 D4F1
To claim this, I am signing this object:
| #!/bin/env python3 | |
| # | |
| # Converts a Zwift activity (.fit) using fitfiletools.com to a "Tacx App for Windows" activity | |
| # so that Garmin Connect accrues distance and activity count for badge tallies. | |
| # Because apparently Garmin doesn't like Zwift ;) | |
| # Author: alxbl | |
| # | |
| # Assumptions: | |
| # - You are logged in to Garmin Connect using firefox (for automatic upload) | |
| # - You recently visited connect.garmin.com to make sure your authentication token is valid |
| # This script provides a rudimentary data encoding algorithm for | |
| # type08 records in MIF files. | |
| # | |
| # It's not exactly Huffman-coding or adaptative Huffman coding, but it | |
| # behaves very similar. The developers call it "Delta Mode" | |
| # | |
| # @author alxbl ([email protected]) | |
| # | |
| # https://en.wikipedia.org/wiki/File:Huffman_coding_visualisation.svg | |
| from sys import exit |
| import sys | |
| import random | |
| import binascii | |
| import struct | |
| import os | |
| from ctypes import * | |
| from ctypes.wintypes import * | |
| # Shorthands for some ctypes stuff. |
I hereby claim:
To claim this, I am signing this object: