I wrote a program called freq which shows stats on the most frequent lines in a file, similar to what you'd get from a sort | uniq -c | sort -rn pipeline.
This obliged me to implement an easter egg...
I wrote a program called freq which shows stats on the most frequent lines in a file, similar to what you'd get from a sort | uniq -c | sort -rn pipeline.
This obliged me to implement an easter egg...
There was a cartoon in the mid 90s called "Freakazoid!" about a teenager who got "sucked into the internet" due to a bug in the "Pinnacle" chip (definitely not the Pentium FDIV bug), imbuing him with the power to turn into "Freakazoid" by saying "freak out".
I wrote a custom decompressor for ANSI art based on canonical huffman coding because why not?
Wow, I just looked it up, Freakazoid! came out less than a year after the Pentium FDIV bug it lampooned. A more innocent time, when one could imagine getting sucked into the internet might merely drive one to zaniness rather than complete an utter madness.
The original ANSI image was generated using tv from https://github.com/daleroberts/tv, then I generated a reduced palette using imagemagick and remapped the colors with terrible shell scripting.
The compressed data was generated by a python script, which builds lookup tables for colors and characters, converts the original data into a stream of "symbols", then uses huffman coding to store them.
The decompression code is only a couple dozen lines.
Canonical huffman codes are neat because you can reconstruct them just based on how many codes there were of each bit length.
@ryanc freak a do...
@dntlookbehindu chimpanzee
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.