Skip to content

Instantly share code, notes, and snippets.

View AKAMEDIASYSTEM's full-sized avatar

AKA AKAMEDIASYSTEM

View GitHub Profile
@AKAMEDIASYSTEM
AKAMEDIASYSTEM / pyfont.py
Created October 30, 2013 21:09
Convert column-based font.h into row-based font. I just needed to do this once so I just printed the converted array to the screen. I took font.h from here: https://github.com/radikaldesig/Arduino-POV-minimalist/blob/master/Arduino%20code/fonts.h
a = [[0x00,0x00,0x00,0x00,0x00],[0x00,0x00,0x6f,0x00,0x00],[0x00,0x07,0x00,0x07,0x00],[0x14,0x7f,0x14,0x7f,0x14],[0x00,0x07,0x04,0x1e,0x00],[0x23,0x13,0x08,0x64,0x62],[0x36,0x49,0x56,0x20,0x50],[0x00,0x00,0x07,0x00,0x00],[0x00,0x1c,0x22,0x41,0x00],[0x00,0x41,0x22,0x1c,0x00],[0x14,0x08,0x3e,0x08,0x14],[0x08,0x08,0x3e,0x08,0x08],[0x00,0x50,0x30,0x00,0x00],[0x08,0x08,0x08,0x08,0x08],[0x00,0x60,0x60,0x00,0x00],[0x20,0x10,0x08,0x04,0x02],[0x3e,0x51,0x49,0x45,0x3e],[0x00,0x42,0x7f,0x40,0x00],[0x42,0x61,0x51,0x49,0x46],[0x21,0x41,0x45,0x4b,0x31],[0x18,0x14,0x12,0x7f,0x10],[0x27,0x45,0x45,0x45,0x39],[0x3c,0x4a,0x49,0x49,0x30],[0x01,0x71,0x09,0x05,0x03],[0x36,0x49,0x49,0x49,0x36],[0x06,0x49,0x49,0x29,0x1e],[0x00,0x36,0x36,0x00,0x00],[0x00,0x56,0x36,0x00,0x00],[0x08,0x14,0x22,0x41,0x00],[0x14,0x14,0x14,0x14,0x14],[0x00,0x41,0x22,0x14,0x08],[0x02,0x01,0x51,0x09,0x06],[0x3e,0x41,0x5d,0x49,0x4e],[0x7e,0x09,0x09,0x09,0x7e],[0x7f,0x49,0x49,0x49,0x36],[0x3e,0x41,0x41,0x41,0x22],[0x7f,0x41,0x41,0x41,0x3e],[0x7f,0x49,0x49,0x49

Keybase proof

I hereby claim:

  • I am akamediasystem on github.
  • I am aka (https://keybase.io/aka) on keybase.
  • I have a public key whose fingerprint is B7CB F1F6 332F 537E 3142 F377 9BA7 BBA4 3632 C17E

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am akamediasystem on github.
  • I am aka (https://keybase.io/aka) on keybase.
  • I have a public key ASCMXaPDjUTzNIT7O6LqI14Ox3emqWhaRLgwNPjmn5Yp8Ao

To claim this, I am signing this object:

#include <Adafruit_NeoPixel.h>
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
#define NUM_PIXELS 60 // number of pixels on one strip
#define PIX_PIN 2 // neopixels
#define sigPin 21 // input from touch traces
@AKAMEDIASYSTEM
AKAMEDIASYSTEM / nex5t.conf
Created November 20, 2017 17:57
lirc interface file, as translated from pronto codes (verified to work with nex-5t)
begin remote
name nex5t
flags RAW_CODES
eps 30
aeps 100
gap 25691
begin raw_codes
name Single
2510 572 1242 572 621 572
# amulet_miner.py
"""Mine some poetry."""
import glob
import nltk
from hashlib import sha256
common = '8888'
uncommon = '88888'
rare = '888888'
epic = '8888888'