Skip to content

Instantly share code, notes, and snippets.

View JRJurman's full-sized avatar

Jesse Jurman JRJurman

View GitHub Profile
@JRJurman
JRJurman / EventRebroadcaster.js
Created November 1, 2023 04:39
Event Rebroadcaster Tram-Lite shadow Root Processor
/**
* TBA
*/
class EventRebroadcaster {
/**
* connect function for EventRebroadcaster - when this is attached to an element, we
* set up a listener to for events and rebroadcast them up or down the DOM
* @param {HTMLElement} newNode
*/
static connect(newNode) {
@JRJurman
JRJurman / build-excalidraw.js
Created May 18, 2023 03:56
Simple Excalidraw Build Script using excalidraw-to-svg
const fs = require('fs');
const glob = require('glob');
const excalidrawToSvg = require('excalidraw-to-svg');
// Script to read in .excalidraw files and write svg files to dist
// these follow the same folder structure inside of diagrams (if we ever add folders)
const excalidrawFiles = glob.sync('./diagrams/**/*.excalidraw');
excalidrawFiles.forEach((fileName) => {
/* read files and turn into SVG */
@JRJurman
JRJurman / pokemon_unite.json
Last active December 19, 2021 04:27
Pokemon Unite Keyboard Commands for use with QtScrcpy
{
"comment": "v1.0.0",
"old-switchKey": "Key_Tab",
"switchKey": "Key_Tab",
"keyMapNodes": [{
"comment": "Movement",
"type": "KMT_STEER_WHEEL",
"centerPos": {
"x": 0.139323,
"y": 0.798611
@JRJurman
JRJurman / googlesheets_column_builder.js
Created May 27, 2020 02:29
Build Excel Style Columns
// get 1,2,3,4...26,27,28...98,99,100
// ret A,B,C,D... Z,AA,AB...CU,CV,CW
const CHAR = i => String.fromCharCode(i)
const MOD = (i, den) => (i % den)
const sif = (conditional, value_if_true, value_if_false) => conditional ? value_if_true : value_if_false
a = Array(855).fill(0).map((_, i) => i)
b = a.map(num => {
return [num,
@JRJurman
JRJurman / Guide For Flashing Planck EZ
Last active March 1, 2020 18:27
Personal guide for flashing new layouts on the Planck EZ
## Links
https://docs.qmk.fm/#/newbs
https://qmk.fm/toolbox/
## Steps
1. Run MSYS2
2. Open QMK Toolbox
3. In MSYS2, CD to the `qmk_firmware` folder (you will need to run `cd /c/` to get to a normal drive)
4. Run `make <keyboard>/<version>:<layout>`, e.g. `make planck/ez:jesse`
5. Drag the generated `.bin` file into the qmk toolbox
@JRJurman
JRJurman / find-fingerspellings.sh
Created February 26, 2020 17:56
Fingerspellings found in steno-dictionaries
npm i -g steno-scripts
for dictionary in dictionaries/*.json; do test-fingerspellings "$dictionary"; done > fingerspellings_log.txt
@JRJurman
JRJurman / duplicates_log.txt
Created February 23, 2020 19:57
Duplicate Keys found in steno-dictionaries
No duplicated property keys found in dictionaries/abbreviations.json.
No duplicated property keys found in dictionaries/apps.json.
The following duplicated property keys have been detected in dictionaries/bad-habits.json:
<instance>.UPBDZ
No duplicated property keys found in dictionaries/briefs.json.
The following duplicated property keys have been detected in dictionaries/code.json:
<instance>.SKWR*S
<instance>.TKEUR
No duplicated property keys found in dictionaries/computer-powerups.json.
No duplicated property keys found in dictionaries/computer-use.json.
@JRJurman
JRJurman / list-to-table-formatter.js
Created February 16, 2020 20:24
Javascript for reformatting a list of values into a table formatting (with correct spacing)
// Notes on how to easily update this keyboard
// 1. use the ORYX configuration tool to setup a layout that you like
// 2. copy the layout into the following program
// 3. use the result to parse out which keys you should replace in the existing layouts
// here be javascript
// paste your layout here in whatever format you want
// we'll split it by ',', so as long at it's one giant list we good
const layout = `
KC_ESCAPE, STN_N2, STN_N3, STN_N4, STN_N5, STN_N6, STN_N7, STN_N8, STN_N9, STN_NA, STN_NB, KC_BSPACE,
@JRJurman
JRJurman / multi-stroke-phrases.txt
Last active February 8, 2020 05:54
Get all phrases (that is, briefs that have spaces in them)
ethylenediaminetetraacetic acid *EFPLT/TK*FPLT/T*FPLT/A*FPLT
he'll rouse *EL/ROUS
El Salvador *EL/SAL/SRA/TKOR
Elk Club *ELG/KHRUB
{~|'^}em think *EPL/THEU
Earl Grey *ERL/TKPWRAEU
Ethel Merman *ET/EL/PHERPL/A*PB
Ethis Communication *ET/EUS/KAEUBGS
unh unh *UPB/*UPB
under the *UPBD/-D