Skip to content

Instantly share code, notes, and snippets.

View trainmeditations's full-sized avatar
💭
Working on developing code and myself

Shaun Bouckaert trainmeditations

💭
Working on developing code and myself
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

byte ascii[128][8] = {
{B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000}, //NUL
{B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000}, //SOH
{B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000}, //STX
{B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000}, //ETX
{B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000}, //EOT
{B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000}, //ENQ
{B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000}, //ACK
{B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000}, //BEL
{B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000}, //BS
@trainmeditations
trainmeditations / 8x8cp437low.c
Created March 1, 2017 06:43
The low half of codepage 437 on an 8x8 grid
byte cp437[128][8] = {
{B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000}, //NUL
{B00111100,B01000010,B10010101,B10100001,B10100001,B10010101,B01000010,B00111100}, //☺
{B00111100,B01111110,B11101011,B11011111,B11011111,B11101011,B01111110,B00111100}, //☻
{B00000000,B00001100,B00011110,B00111110,B01111100,B00111110,B00011110,B00001100}, //♥
{B00000000,B00001000,B00011100,B00111110,B01111111,B00111110,B00011100,B00001000}, //♦
{B00000000,B00011100,B01011100,B01101111,B01111111,B01101111,B01011100,B00011100}, //♣
{B00000000,B00011000,B01011100,B01101110,B01111111,B01101110,B01011100,B00011000}, //♠
{B00000000,B00000000,B00011000,B00111100,B00111100,B00011000,B00000000,B00000000}, //•
{B11111111,B11111111,B11100111,B11000011,B11000011,B11100111,B11111111,B11111111}, //◘
@trainmeditations
trainmeditations / PKGBUILD
Last active November 20, 2017 05:13
PKGBUILD for pam-pgsql
# Maintainer: Shaun Bouckaert <shaun@train-meditations.com>
pkgname=pam-pgsql-git
pkgver=0.7.3.2.r10.efe2820
pkgrel=1
pkgdesc="PAM module to provide authentication against PostgreSQL tables"
arch=('x86_64')
url="https://github.com/pam-pgsql/pam-pgsql"
license=('GPL')
depends=('pam' 'postgresql-libs>=7.4')
makedepends=('git')
@trainmeditations
trainmeditations / code.py
Created March 27, 2023 11:36 — forked from sandyjmacdonald/code.py
RGB MIDI controller example for Pimoroni RGB Keypad for Raspberry Pi Pico
import time
import board
import busio
import usb_midi
import adafruit_midi
from adafruit_midi.note_off import NoteOff
from adafruit_midi.note_on import NoteOn
from adafruit_bus_device.i2c_device import I2CDevice
import adafruit_dotstar
from rgbkeypad import RGBKeypad
import time
keypad = RGBKeypad()
keypad.color = (0, 0, 0)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
GREEN = (0, 255, 0)