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.
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.
Stylish was an awesome browser extension that enabled you to override CSS on websites. Turns out that it logs every single URL you visit! https://robertheaton.com/2018/07/02/stylish-browser-extension-steals-your-internet-history/
For Google searches, it also records the search term and search results. Yikes.