Skip to content

Instantly share code, notes, and snippets.

@SuperDoxin
Created April 25, 2017 11:10
Show Gist options
  • Select an option

  • Save SuperDoxin/570241924a0851dd583f4f44ea1727de to your computer and use it in GitHub Desktop.

Select an option

Save SuperDoxin/570241924a0851dd583f4f44ea1727de to your computer and use it in GitHub Desktop.
######iw]iyf######l(ipjf##################
# mi)t o )nroo #
# pt e=r =. iir THIS SIDE UP #
# ohar lnn #
# r s( x ( ]t(x #
# t f [ +(x #
import sys
with open( sys. argv[1
]) as f: l = list(
iter(f ))
y = max( max([ len(x)
for x in l]) , len( l))
# sof)mi ll(')i #
# yp:)an ij[\.n #
# se x su'n #
# n (l ts ' #
# ( ] (t'. #
# ) (* #
l = ([ list( x. rstrip
(). ljust( y)) for x
in l]+ ([' '* y]*y)) [:y]
print( '\n'. join(( ''.
join(x ). rstrip ()
for x in zip(*l ))))
# sl m, xyyjrz #
# y a .)]osi #
# s= xl )*itp #
# . (e ynr( #
# [n )(i* #
# ( )(pl #
# X #
# XXX #
# X X X #
# X #
# X #
# #
# al ll rf['() #
# ri e) so:')) #
# gs n) try. ) #
# vt ( r ] ) #
# [( x ix #
###### 1 ) ######p ##################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment