Skip to content

Instantly share code, notes, and snippets.

View parzivail's full-sized avatar

Colby Newman parzivail

View GitHub Profile
@parzivail
parzivail / main.cpp
Created September 14, 2022 00:16
Teensy/Arduino-compatible project to drive a grayscale display from a Palm PDA
#include <Arduino.h>
/*
Test code to drive a display from a Palm PDA (grayscale display, not color)
Notes:
- The pixel clock is nominally 1.3 MHz on a PDA but has been tested up to around 100 MHz
- The line clock nominally is 13 kHz but has been tested up to around 125 kHz
- The frame clock nominally is around 90 Hz but has been tested up to around 700 Hz
Pinout:
@parzivail
parzivail / tcp802.h
Created September 13, 2022 01:31
Single-header Teensy/Arduino-compatible library for controlling a TCP802-based CNKD0401-14004Ax display
#include <Arduino.h>
#ifndef __TCP802_H_
#define __TCP802_H_
// These modules are found in various CyberPower UPS systems. VDD, LED, and backlight are at least 5v tolerant.
// Module: https://www.globalsources.com/Alphanumeric-LCD/Alphanumeric-LCD-Module-1172373840p.htm
// Controller IC datasheet: https://pan.baidu.com/link/zhihu/7dhjzRuShLiGV2IUFmUrNfZUSDaOVkcwZn92==
/*
@parzivail
parzivail / github-markdown-vscode.css
Last active September 12, 2019 12:00
vscode mdmath stylesheets
/* Generated from 'node_modules/github-markdown-css/github-markdown.css' */
@font-face {
font-family: octicons-link;
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s0
Named Binary Tag specification
NBT (Named Binary Tag) is a tag based binary format designed to carry large amounts of binary data with smaller amounts of additional data.
An NBT file consists of a single GZIPped Named Tag of type TAG_Compound.
A Named Tag has the following format:
byte tagType
TAG_String name
[payload]
@parzivail
parzivail / keymap.c
Last active September 28, 2018 20:23
Prime_M QMK keymap
/* Copyright 2018 Jumail Mundekkat
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@parzivail
parzivail / .hyper.css
Last active August 10, 2017 00:53
Hyper settings
/* #window */
/* #terminal */
* {
font-variant-ligatures: contextual;
}
.cursor-node[focus="true"] {
mix-blend-mode: difference;
animation: blink 2s infinite ease-in-out;
{
"forge_marker": 1,
"defaults": {
"model": "pswm:a280.obj",
"custom": {
"flipUVs": "v"
}
},
"variants": {
"inventory": [
@parzivail
parzivail / blobs.fs
Created January 10, 2017 20:15
Noises
// Author: @patriciogv - 2015
// Title: Metaballs
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;
package com.parzivail.pswm.gui;
import com.parzivail.pswm.Resources;
import com.parzivail.pswm.StarWarsMod;
import com.parzivail.pswm.dimension.PlanetInformation;
import com.parzivail.pswm.dimension.TradeRoute;
import com.parzivail.pswm.items.ItemQuestLog;
import com.parzivail.pswm.models.ModelPlanetCube;
import com.parzivail.pswm.models.vehicles.*;
import com.parzivail.pswm.network.MessageHyperdrive;

Keybase proof

I hereby claim:

  • I am parzivail on github.
  • I am parzivail (https://keybase.io/parzivail) on keybase.
  • I have a public key whose fingerprint is 47C8 7E9C D731 D482 668D D661 CDAB BDDD C58D B2EE

To claim this, I am signing this object: