Skip to content

Instantly share code, notes, and snippets.

@AJolly
AJolly / convert-h10-acc-xyz-to-somnopose.py
Last active January 29, 2026 19:22 — forked from andrewjbennett/convert-h10-acc-xyz-to-somnopose.py
Convert the accelerometer data from the Polar H10 to the format generated by Somnopose, to import into OSCAR.
#!/usr/bin/env python3
"""
Convert Polar H10 accelerometer data to SomnoPose format for OSCAR import
Usage:
python convert-h10-acc-xyz-to-somnopose.py <input_file.jsonl> # Process single ACC.jsonl file
python convert-h10-acc-xyz-to-somnopose.py # Auto-process all unprocessed ACC.jsonl files
OSCAR can import SomnoPose data for position tracking during sleep.
Example in OSCAR: https://i.imgur.com/SDLQJEY.png
@AJolly
AJolly / bitmexusd.user.js
Last active September 12, 2019 01:51 — forked from QuantBits/script.js
BitMex USD Converter - For TemperMonkey
// ==UserScript==
// @name BitMex USD Converter
// @namespace https://bitmex.com/
// @version 0.13
// @description Get some sanity into your gambling.
// @author koinkraft, modified by @Jolly - https://www.twitter.com/Jolly
// @grant none
// @include https://bitmex.com/*
// @include https://www.bitmex.com/*
// @require https://code.jquery.com/jquery-2.1.4.min.js