Skip to content

Instantly share code, notes, and snippets.

@purdeaandrei
purdeaandrei / flash_pro_micro.sh
Last active April 8, 2021 07:08
flash_pro_micro.sh
#!/bin/bash
# Partially insipred by qmk_firmware/tmk_core/avr.mk
# License: GPLv2
set -e
if [ $# -ne 1 ]; then
echo "Usage: $0 path/to/filename/to/flash.hex"
exit 1
@purdeaandrei
purdeaandrei / bpm.py
Created May 12, 2016 20:49
Small python script to manually measure bpm of songs.
#!/usr/bin/python
import time
raw_input()
t = time.time()
n=1
while True:
raw_input()
print 60*n/(time.time()-t)
n+=1