I've written a lot of scripts like this, oddly have lost all of them and cannot remember many.
GD was interesting fun, I wrote scripts
- to generate static (with rand, or mt_rand, or some_custom_rng_here) and find visual patterns.
$rand = rand() % 1 == 0 ? 0 : 0xFFFFFF;
for($x = 0; $x < 500; $x++) {
for($y = 0; $y < 500; $y++) {
imagesetpixel($gd, $x, $y, $rand);
}
}
- upload a picture, and display all available filters (inverted, and whatnot) side by side. It looked quite interesting on sharp pictures.
Unicode:
- Display a phrase in all available encodings, to see interesting encoding issues (see Mojibake)
- Display every possible codepoint, by category (i.e. unicodePoint('misc-symbols'))
Token Parsers, collecting input from a text form, and calculating with GMP/BC for simple arbitrary calculations
I will be sure to post some examples here if I find them.
Be sure to read the updated
FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us
why or
what errors occurred.