Yikes. In #python, (-7) % 4 == 1 but Decimal(-7) % Decimal(4) == Decimal('-3'). That's really confusing.
miniblog.
Related Posts
Yikes, needed this today:
$ git clone https://github.com/git/git
Fortunately git source is pretty readable and I found what I needed pretty quickly (difftastic can offer colour when GIT_PAGER_IN_USE is set).
Results from The International Obfuscated C Code Contest are out, and the winner has a devious program using the Turing-completeness of printf! Yikes.
Today I needed a library that takes a regular expression and gives you a string that matches. https://github.com/fent/randexp.js fits that need nicely.
Unfortunately, reading the docs has introduced me to evil patterns like /a^/ and /\1 (a)/. Yikes.