view bin/distort @ 9945:14091a4ef591

<oerjan> le/rn rules of wisdom//Unless essential for the entry\'s humor, all wisdom entries should: be understandable without the separate key, be single spaced, and use proper capitalization and punctuation.
author HackBot
date Mon, 12 Dec 2016 00:59:02 +0000
parents d8f742efd393
children 75d67a002697
line wrap: on
line source

#!/usr/bin/env python
import sys
N=336
name = sys.argv[1] if len(sys.argv) > 1 else "/dev/stdin"
with open(name, "r") as f:
  data = ' \\ '.join(f.read().splitlines())
for i in xrange(0, len(data), N):
  print data[i:i+N]