Skip to content

Instantly share code, notes, and snippets.

View paulfioravanti's full-sized avatar
⌨️
Soon again I heard a tapping somewhat louder than before.

Paul Fioravanti paulfioravanti

⌨️
Soon again I heard a tapping somewhat louder than before.
View GitHub Profile
@paulfioravanti
paulfioravanti / exercism-bob-ruby-steno-tape.txt
Last active May 11, 2023 04:56
The steno tape output from the 'Steno Coding: TDD-ing Exercism's "Bob" challenge in Ruby' video https://www.youtube.com/watch?v=I9Oc4AirX_0
+++++ | K R P L | KR-PL -> {:COMMAND:SHELL:bash -ci 'osascript $STENO_DICTIONARIES/src/command/application/activate-application.scpt "Google Chrome"'}
+++++ | ST P H * R | STPH*R -> {:COMMAND:SHELL:bash -ci 'osascript $STENO_DICTIONARIES/src/command/actions/page-down.scpt'}
+++++ | ST P H R | STPH-R -> {#DOWN}{^^}
++ | ST P H R | STPH-R -> {#DOWN}{^^}
| ST P H R | STPH-R -> {#DOWN}{^^}
+ | ST P H R | STPH-R -> {#DOWN}{^^}
+ | ST P H R | STPH-R -> {#DOWN}{^^}
++++ | ST P H R | STPH-R -> {#DOWN}{^^}
+++++ | T RP L | T-RPL -> {:COMMAND:SHELL:bash -ci 'osascript $STENO_DICTIONARIES/src/command/application/activate-application.scpt iTerm'}
+++++ | S W T D | SW-TD -> {#CONTROL(A L)}
@paulfioravanti
paulfioravanti / steno-doom-episode-1.txt
Last active July 26, 2022 23:53
Tape output for Steno Doom Typist video: https://youtu.be/fxxDAYuciD8
R R
R R
R R
R R
R R
R R
S K P
S K P
S K P
S K P
asdf list <lang> | xargs -n1 asdf uninstall <lang>
@paulfioravanti
paulfioravanti / find.applescript
Last active April 17, 2022 04:03
Applescript Graveyard
# An attempted refactor of
# https://github.com/paulfioravanti/steno-dictionaries/blob/main/src/command/actions/find.applescript
# involving extracting common functions (`getActiveApp()` and `getiTermProcessName()`) into a util file,
# located in the src/command/ directory, and reading it back in.
# Not adopted since the nature of loading scripts in AppleScript is verbose and it was not possible to
# retrieve the file's relative path grandparent and store it in a property variable. Reading in the file
# dynamically every time meant that running the command felt slower, so I opted for just having duplicated
# handlers across multiple files.
global util
@paulfioravanti
paulfioravanti / 2022-02-12.txt
Created February 12, 2022 00:16
Typey Type progress as of 12 Feb 2022
{"0":59,"1":58,"2":56,"3":58,"4":59,"5":54,"6":53,"7":57,"8":55,"9":57,"10":54,"11":54,"12":51,"13":58,"14":52,"15":58,"16":58,"17":56,"18":58,"19":56,"20":58,"21":53,"22":56,"23":56,"24":57,"25":57,"26":51,"27":56,"28":53,"29":52,"30":55,"31":59,"32":58,"33":57,"34":57,"35":57,"36":53,"37":67,"38":55,"39":55,"40":56,"41":56,"42":55,"43":56,"44":53,"45":52,"46":56,"47":56,"48":55,"49":58,"50":55,"51":54,"52":56,"53":58,"54":56,"55":55,"56":56,"57":56,"58":60,"59":56,"60":53,"61":60,"62":54,"63":54,"64":54,"65":54,"66":54,"67":52,"68":55,"69":55,"70":60,"71":56,"72":55,"73":57,"74":57,"75":58,"76":59,"77":52,"78":54,"79":56,"80":60,"81":64,"82":64,"83":54,"84":55,"85":61,"86":56,"87":55,"88":57,"89":53,"90":57,"91":58,"92":58,"93":52,"94":57,"95":58,"96":53,"97":52,"98":55,"99":55,"100":57,"101":1,"121":1,"143":1,"200":56,"300":58,"400":58,"500":53,"600":57,"700":56,"800":58,"900":58,"1000":52,"2000":55,"3000":54,"4000":56,"5000":55,"6000":52,"7000":55,"8000":54,"9000":55,"10000":54,"has":350,"web":97,"top":12
@paulfioravanti
paulfioravanti / 2021-03-07-1615080283.txt
Created November 1, 2021 11:48
Typey Type progress as of 2021-03-07
{"0":50,"1":58,"2":54,"3":58,"4":57,"5":54,"6":53,"7":57,"8":55,"9":57,"10":54,"11":54,"12":51,"13":56,"14":52,"15":58,"16":58,"17":56,"18":58,"19":56,"20":58,"21":53,"22":56,"23":56,"24":57,"25":57,"26":51,"27":56,"28":53,"29":52,"30":55,"31":59,"32":58,"33":57,"34":56,"35":57,"36":53,"37":60,"38":55,"39":55,"40":56,"41":56,"42":55,"43":56,"44":53,"45":51,"46":56,"47":56,"48":55,"49":58,"50":55,"51":54,"52":56,"53":58,"54":56,"55":55,"56":55,"57":56,"58":60,"59":56,"60":53,"61":60,"62":54,"63":54,"64":54,"65":54,"66":54,"67":52,"68":55,"69":55,"70":60,"71":56,"72":55,"73":57,"74":57,"75":58,"76":59,"77":52,"78":54,"79":56,"80":60,"81":64,"82":64,"83":54,"84":55,"85":61,"86":56,"87":55,"88":57,"89":53,"90":57,"91":58,"92":58,"93":52,"94":57,"95":58,"96":53,"97":52,"98":55,"99":55,"100":57,"200":56,"300":58,"400":58,"500":53,"600":57,"700":56,"800":58,"900":58,"1000":52,"2000":55,"3000":54,"4000":56,"5000":55,"6000":52,"7000":55,"8000":54,"9000":55,"10000":54," has":349," web":97," top":121," world":137," her"
@paulfioravanti
paulfioravanti / gist:218ee9b4e01a1e1a78a716c522f77952
Created October 3, 2021 01:42
Re-sort steno JSON file by key and overwrite said file with result
jq --sort-keys . steno-dict.json | sponge steno-dict.json

Shift to Stenography

As a mechanical keyboard user, you have probably put a great deal of thought and effort into improving your typing habits.

Perhaps you have been looking past [QWERTY][], and towards [Dvorak][], [Colemak][], or [Workman][] to get that extra edge in speed and comfort when spending long sessions with your clack-y friend.

Well, there is an option available that you may not have considered. One that

cat dictionaries/condensed-strokes.json | jq --sort-keys | tee dictionaries/condensed-strokes.json > /dev/null
const fetchMachine = Machine({
id: "Payliance",
initial: "Programmed",
context: {
retries: 0,
},
states: {
// We done scheduled da transancion
Programmed: {
on: {