Skip to content

Instantly share code, notes, and snippets.

@yotann
yotann / gist:377d7a66a879ae6fc2cd19030f19f2e3
Last active December 5, 2019 00:33
Prototype HARP reprogramming guide
This guide explains how to load custom code on the SparkFun Prototype HARP
(https://www.sparkfun.com/products/14379). Now, you're *supposed* to reset the
board after solving it and give it to a friend, so they can experience the
puzzle too. But maybe your friends are too busy fighting a rogue AI, or maybe
friendship is expensive where you live. In that case, it's possible to make the
board Arduino-compatible with some effort.
You should have gotten access to the board's development files when you solved
the puzzle. Note that the design is similar to the "SparkFun 9DoF Razor IMU M0"
and the "SparkFun SAMD21 Mini Breakout", but with different peripherals. All
@Sanqui
Sanqui / vmu_dec.asm
Created January 10, 2014 18:10
vmu decompressor for a nybble-based 1bpp compression
decompress_quit:
jmp goodbye
decompress_ret:
jmp decompress_done
decompress:
xor acc
ldc
be #$ff, decompress_quit
@jpouellet
jpouellet / zbell.sh
Last active November 24, 2023 10:49
Makes Zsh print a bell when long-running commands finish. I use this in combination with i3 and throw big compile jobs (or whatever it may be) into another workspace to get a nice visual notification (workspace indicator turns red) when it's done so I don't need to waste time regularly checking on it.
#!/usr/bin/env zsh
# This script prints a bell character when a command finishes
# if it has been running for longer than $zbell_duration seconds.
# If there are programs that you know run long that you don't
# want to bell after, then add them to $zbell_ignore.
#
# This script uses only zsh builtins so its fast, there's no needless
# forking, and its only dependency is zsh and its standard modules
#