Skip to content

Instantly share code, notes, and snippets.

@krishicks
krishicks / font5x7.pde
Last active January 22, 2020 06:17 — forked from smcl/font3x8.pde
Processing code to allow visual editing of 128x32 OLED displays driven by QMK
// Standard ASCII 5x7 font, yanked from foostan's crkbd/lib/glcdfont.c
int[] progmem = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00,
0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00,
0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00,
0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00,
0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00,
0x00, 0x18, 0x3C, 0x18, 0x00, 0x00,
function goto() {
local p
local f
for p in `echo $GOPATH | tr ':' '\n'`; do
f=`find ${p}/src -maxdepth 3 -type d | grep ${1} | head -n 1`
if [ -n "$f" ]; then
cd $f
return
fi
class FastBeustSequence
class << self
def find_all(max)
@listener = []
zero = Digit.new(nil, 0)
one = zero.next
start = Time.now
(1..10).each {|length| find(one, zero, length, 0, max, @listener)}