Name: Anonymous 2017-07-29 17:56
https://pastebin.com/qprgVAmc
(couldn't post it here)
(couldn't post it here)
#!/usr/bin/env python3
import sys
from pathlib import Path
if len(sys.argv) < 3:
sys.exit("Usage: anus.py SHAPE TEXT")
row = []
shape = [row]
for c in Path(sys.argv[1]).read_text():
if c == '\n':
row = []
shape.append(row)
else:
row.append(c != ' ')
stack = list(Path(sys.argv[2]).read_text()[::-1])
def fuck():
c = '='
while len(stack) > 0:
tmp = stack.pop()
if not tmp.isspace():
c = tmp
break
return c
for row in shape:
ln = []
for v in row:
ln.append(fuck() if v else ' ')
print(''.join(ln))