Skip to content

Instantly share code, notes, and snippets.

@amirbehzad
Created July 27, 2016 11:01
Show Gist options
  • Save amirbehzad/d9f68fbbe7f6018742594acffeab332f to your computer and use it in GitHub Desktop.
Save amirbehzad/d9f68fbbe7f6018742594acffeab332f to your computer and use it in GitHub Desktop.
rules = { 2**x: ['{0:03b}'.format(x).translate(string.maketrans("10","x.")), (x > 0) and (x & 3 == x or x & 3 == 3) * 1] for x in range(8) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment