Skip to content

Instantly share code, notes, and snippets.

View argon's full-sized avatar

Andrew Naylor argon

View GitHub Profile
@argon
argon / arduino_spi_slave.pde
Created January 20, 2013 11:42 — forked from chrismeyersfsu/arduino_spi_slave.pde
Arduino SPI slave example
// Written by Nick Gammon
// Updated by Andrew Naylor (March 2013)
// February 2011
/**
* Send arbitrary number of bits at whatever clock rate (tested at 500 KHZ and 500 HZ).
* This script will capture the SPI bytes, when a '\n' is recieved it will then output
* the captured byte stream via the serial.
*/
@argon
argon / ttc2ttf.pe
Created July 16, 2020 17:40 — forked from fatum12/ttc2ttf.pe
Unpack .ttc and .dfont to .ttf using FontForge
#!/usr/local/bin/fontforge
# Usage: fontforge -script ttc2ttf.pe /path/to/font.ttc
fonts = FontsInFile($1)
n = SizeOf(fonts)
i = 0
while (i < n)
Open($1 + "(" + fonts[i] + ")", 1)
index = ToString(i + 1)