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
#!/bin/python3 | |
def num2bin(n): | |
p = f'{n:b}'.count('1')%2 | |
b = (n<<3) | (p << 2) | ((p^1) <<1) | 1 | |
return b | |
def bin2str(b): | |
return f'{b:013b}' |
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
from drawBotGrid import BaselineGrid, columnBaselineGridTextBox | |
import os | |
import datetime | |
import itertools | |
import unicodedata | |
# When you add more fonts, it stacks the strings for each | |
# weight to enable easy comparisons. | |
fonts = ('Helvetica Neue Thin', 'Helvetica Neue', 'Helvetica Neue Bold') | |
#fonts = ('Helvetica Neue Thin', 'Helvetica Neue') |
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
import time | |
from random import shuffle | |
# ---------- | |
# The Inputs | |
# ---------- | |
pageSize = 500 | |
maximumFrameCalculationDuration = 0.1 | |
minimumPixelSize = 5 |