Created
March 8, 2017 16:41
-
-
Save schas002/a562cb75d15a8ff953ce83e3309524fa to your computer and use it in GitHub Desktop.
Aesthetic in Frink, part 1: a base-36 alphabet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
››› fwAlphabet = "0123456789abcdefghijklmnopqrstuvwxyz" | |
0123456789abcdefghijklmnopqrstuvwxyz | |
// fwAlphabet contains 36 characters in fullwidth | |
// (yes, Frink allows you to type any Unicode character in a program) | |
››› parseInt["helloworld", 36] | |
1767707668033969 | |
// the `36` argument to parseInt is important, see last command | |
››› base[1767707668033969, fwAlphabet] | |
helloworld | |
// generates the aesthetic, self explanatory | |
// (thanks to the other two commands) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment