Skip to content

Instantly share code, notes, and snippets.

@pingwin
pingwin / tcx2runkeeper.py
Last active August 29, 2015 13:59
This script is intended to directly upload exported Runtastic TCX tracks to Runkeeper.
#!/usr/bin/env python
"""
This script is intended to directly upload exported Runtastic TCX tracks up to
Runkeeper. Use the below script found at the below URL to export the tracks
from Runtastic you want.
Requires: lxml and requests (both are likely available packaged for your distro of choice)
http://blog.favo.org/post/56040226362/export-all-activities-from-runtastic-as-tcx
#!/usr/bin/python
import os
import sys
def main():
tree(sys.argv[1] if len(sys.argv)>1 else os.getcwd())
def tree(path):
map(lambda x: walk(*x), os.walk(path))
@pingwin
pingwin / jmpr.c
Last active February 12, 2018 15:10
/**
* This was something to play around with longjmp/setjmp and the stack that it would require.
* This code does not work as the direction this experiment was going would require context
* switching that I didn't want to happen.
*/
#include <setjmp.h>
#include <ucontext.h>
#include <unistd.h>
#include <stdio.h>
#include <stdint.h>