Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
/* | |
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. |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
# 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 |
/* | |
* 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 = { |