A while back I implemented[0] a (pretty basic) Matrix rain in JavaScript that will pull your latest public GitHub contributions and use that for the rain text. Demo here[1]. And of course my useless Game of Life icons, golicaons[2] (demo [3]).
[0]: https://github.com/anderspitman/redpill
[1]: https://anderspitman.net/apps/redpill/
People didn’t lock their computers back then. :)
It's a Matrix emulator inspired by cmatrix. It doesnt have as many features as this posts one (e.g. just 2 colors for the kanas), but was a fun exercise to learn Go. Pull requests welcome :)
https://gist.github.com/tylerneylon/e70a684b88809f74168f3a36...
It runs nicely in Python 2 (and slower in Python 3).
Here's a nice code golf Mandelbrot that also uses no image library (it produces a bmp file): https://codegolf.stackexchange.com/a/23465
Now I want to dust off my old snake game and upgrade it to 3D.
$ make 2>&1 | head
c++ -std=c++17 -Wall -Wextra -Os -MD -MP -MF cxxmatrix.dep -c -o cxxmatrix.o cxxmatrix.cpp
In file included from cxxmatrix.cpp:595:
glyph.inl:78:2: error: converting to execution character set: Invalid argument
78 | {U'�', 21, {127, 65, 65, 65, 65, 65, 127, }},
| ^~~~
glyph.inl:79:2: error: converting to execution character set: Invalid argument
79 | {U'�', 21, {573695, 2072768, 104616, 104344, 37000, 1609860, 430211, }},
| ^~~~
glyph.inl:80:2: error: converting to execution character set: Invalid argument
80 | {U'�', 21, {164354, 260859, 2015779, 1221155, 692770, 429602, 1238014, }},It is caused by the UTF-8 unaware awk. I haven't yet figured out why it happens, but at least you need to set your locale to one of UTF-8 locales.
brew install gawk
make clean
make
brew cask install iterm2
// buff.s1number();
// for (int i = 1; i < argc; i++)
// buff.s2banner(argv[i]);
// buff.s3rain(2800, buffer::s3rain_scroll_func_tanh);
buff.s4conway();
// buff.s5mandel();
// Infinite rain
//buff.s3rain(0, buffer::s3rain_scroll_func_const);Maybe because I run through WSL?