Skip to content

Instantly share code, notes, and snippets.

@schas002
Created March 8, 2017 16:41
Show Gist options
  • Save schas002/a562cb75d15a8ff953ce83e3309524fa to your computer and use it in GitHub Desktop.
Save schas002/a562cb75d15a8ff953ce83e3309524fa to your computer and use it in GitHub Desktop.
Aesthetic in Frink, part 1: a base-36 alphabet.
››› 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