Skip to content

Instantly share code, notes, and snippets.

View aerickt's full-sized avatar

Aerick aerickt

View GitHub Profile
@aerickt
aerickt / viet.py
Last active November 22, 2024 23:52
basic viet.py for Plover
# This is a (work-in-progress) python dictionary implementation of my Vietnamese steno system: https://github.com/aerickt/steno-dictionaries/wiki/Vietnamese-Steno
# As this dictionary generates words on the fly, it is not (or shouldn't be) necessary to add missing entries.
# Therefore, it is a better implementation of my Vietnamese steno system than the json dictionary.
# However, this is very work-in-progress. I particularly don't have a great way to test the tone placement system.
# This dictionary also has some minor differences to the viet.json implementation. For words such as qua, this system
# only considers the q (KW) as a consonant -- you'll have to consider the ua as a vowel. Alternatively, you can consider qu
# as a separate consonant using a different vowel chord (KWR).
# This dictionary also does not support fingerspelling yet. However, a json dictionary may be provided instead to keep this
# python dictionary readable (I'm not sure if I am able to add fingerspelling in a competent way).
QWidget {
background-color: rgb(45, 45, 45);
color: white;
}
QToolTip {
background-color: black;
color: white;
}
{
"STPH-R": "{#Left}{^}",
"STPH-RB": "{#Control_L(Left)}{^}",
"STPH-P": "{#Up}{^}",
"STPH-B": "{#Down}{^}",
"STPH-BG": "{#Control_L(Right)}{^}",
"STPH-G": "{#Right}{^}",
"STPH*R": "{#Home}{^}",
"STPH*P": "{#Page_Up}",
"STPH*B": "{#Page_Down}",
@aerickt
aerickt / tufte-css-strokes.json
Last active September 4, 2021 23:24
Tufte CSS HTML Strokes
"TA*G": ".",
"TA*G/*EU": "{^}</i>",
"TA*G/*UL": "{^}</ul>",
"TA*G/A": "<a href=\"",
"TA*G/A*": "{^}</a>",
"TA*G/AE": "<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"{^}",
"TA*G/EU": "<i>{^}",
"TA*G/H*/1": "{^}<h1>{^}{-|}",
"TA*G/H*/1*": "{^}</h1>",
"TA*G/H*/2": "{^}<h2>{^}{-|}",
@aerickt
aerickt / strokes-counter.sh
Created August 2, 2021 17:14
Plover Stroke Counter
#!/bin/bash
cd ~/.config/plover
raw=($(cut -c-10 strokes.log))
dates=($(echo "${raw[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '))
for i in "${dates[@]}"; do
count=$(cat strokes.log | grep -c "$i")
@aerickt
aerickt / keymap.c
Created March 3, 2021 16:31
Splitography With Gemini PR
/* Copyright 2017 REPLACE_WITH_YOUR_NAME
*
* 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