Skip to content

Instantly share code, notes, and snippets.

View wilfredjonathanjames's full-sized avatar
🤙
Ἀταραξία

Wilfred James wilfredjonathanjames

🤙
Ἀταραξία
View GitHub Profile
@sbrichardson
sbrichardson / polar.js
Last active May 23, 2025 09:52
Connects to a nearby bluetooth heart rate monitor and logs the active heart rate at 1hz (once per second). Tested with a Polar H10 HR monitor using Google Chrome.
/*
Make sure you are wearing the hr monitor, as it typically
goes to sleep when inactive, not allowing you to connect to it.
Instructions
=============
1. Using Google Chrome, open the dev console and paste the below code.
2. A panel near the address bar will open, searching for nearby bluetooth (ble)
heart rate devices. Don't click away from the panel or Chrome will cancel the search.
@rauchg
rauchg / README.md
Last active April 13, 2025 04:29
require-from-twitter
@bastibe
bastibe / limiter_python.py
Created October 11, 2015 10:58
A simple limiter in Python
# A simple limiter
from sounddevice import Stream, CallbackStop
from time import sleep
from numpy import array, random, zeros
import matplotlib.pyplot as plt
################################### Constants ##################################
fs = 44100 # Hz
@gre
gre / easing.js
Last active September 5, 2025 07:01
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {