Better to have an incomplete UI and complete API than vice versa, so I'm relatively content to fill in GitHub UI gaps with API hacking. https://arongriffis.com/2019/11/29/github-events
I wrote a CSS isolator (applying LESS/SASS-style nesting to existing CSS) once in Python that required the external regex lib to avoid catastrophic backtracking. This would have solved the problem without the extra dep. https://github.com/smbapps/isolcss/blob/master/isolcss/parser.py
Spent an hour this morning trying to make a Logitech K400 Plus work with Linux. Pairing would seem to work (`ltunify pair`) but then only the keyboard would work, not the integrated touchpad. Maddening!
Finally found the answer: After pairing, unplug the unifying receiver and plug it back in. Presto, the touchpad works!
Today I replaced a Python script with a Bash script. Why?
1. Python's Pathlib has no equivalent to ln --relative
2. Easy verbosity on the Bash script with ln -v, mv -v, rm -v
3. Easier to rm -f than try/except
Normally I would advocate going the other way—Bash to Python—but in this case it was shorter path. Of course, if this grows up, I may switch it back...
It is proven! I am agriffis on Keybase: https://keybase.io/agriffis/sigchain#6b1913764ad41f2e042a35839b880fc9009cab7d63ac2f56ee0ab7322a1899aa0f
Neovim nightlies revisited, with LuaJIT and rpkg spec templates https://arongriffis.com/2019/04/15/neovim-nightlies-revisited
Some days you just hack out the bash one-liners to get the job done...
✸ for ((y=2018; y>1997; y--)); do curl -s "https://ripul.org/season.php?year=$y" | grep -m1 team.php | grep -Eo '[0-9]+' | xargs | (read y t; echo "INSERT INTO regular_season_winners (year, teamID) VALUES ($y, $t);"); done
INSERT INTO regular_season_winners (year, teamID) VALUES (2018, 7);
INSERT INTO regular_season_winners (year, teamID) VALUES (2017, 2);
INSERT INTO regular_season_winners (year, teamID) VALUES (2016, 0);