Skip to content

Instantly share code, notes, and snippets.

View pyrocto's full-sized avatar

Mike Stay pyrocto

View GitHub Profile
@pyrocto
pyrocto / TeX113.inputplugin
Created July 13, 2020 20:21
LaTeX-like names for unicode math symbols
#
METHOD: TABLE
ENCODE: Unicode
PROMPT: TeX 1.13
VERSION: 1.13
DELIMITER: ,
VALIDINPUTKEY: ^,.?!:;"'/\()[]{}<>$%&@*01234567890123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
TERMINPUTKEY:
BEGINCHARACTER
alpha α
@pyrocto
pyrocto / overload.js
Last active January 25, 2024 19:13
A modest proposal for operator overloading in JavaScript
/*
It is a melancholy object-oriented language to those who walk through
this great town or travel in the country, when they see the JavaScript
programs crowded with method calls begging for more succinct syntax.
I think it is agreed by all parties, that whoever could find out a
fair, cheap and easy method of making these operators sound and useful
members of the language, would deserve so well of the publick, as
to have his statue set up for a preserver of the nation. I do therefore
humbly offer to publick consideration a pure JS library I've written
for overloading operators, which permits computations like these: