you claim to be a "he/him" yet your profile pic is an anime girl. curious
#shitchosting
also: #shitpost, #shitposting, #shitchost, #shitposts
Us: Mom, can we have jsx?
Mom: We have jsx at home.
The jsx at home:
const interpretOrder = function* (o) {
yield "<td>";
const ix = [1, 2, 3, 4];
yield ix.splice(o % 4, 1)[0];
o /= 4;
yield " ";
yield ix.splice(o % 3, 1)[0];
yield "<br>";
o /= 3;
yield ix.splice(o % 2, 1)[0];
yield " ";
yield ix[0];
yield "</td>";
};
The entire purpose of this garbage is to render a randomly generated permutation of [1, 2 , 3, 4] while making the RNG not trash (we just pass in an int in [0, 24) to describe the permutation). It works for what we're using it for. TBH this could be decent as a small-scale IMGUI type framework (utilizing yield* for composition).