Skip to content

Instantly share code, notes, and snippets.

@hc5
Created December 24, 2011 22:45
Show Gist options
  • Select an option

  • Save hc5/1518489 to your computer and use it in GitHub Desktop.

Select an option

Save hc5/1518489 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
_ =["#@"
,'$%&#@#%%#'
,'=+@#%#$####'
,'@@@@@'
'.++ ,`###`` `:+#@@@'
,];import string, os;M=[string
.count,lambda zz: zz|1<<6,lambda QQQ ,X,
z :M[0](M[QQQ+0x7],_[X][z]),lambda WW:1 if WW==1
else 1+M[3](WW/2),lambda zxQwR, ZRZZ:M[0](_[zxQwr],ZRZZ),
lambda o :chr(M[1](o)+(1<<5)),int(os.popen('stty size', 'r').read().
split()[1]),'#%@@@@@#&@##%%#@$@@@@@@','@@@#@@@@######@@@#@@####@ `\
@$#$$#$$$##$&%##%%,','@$$%%%%%%$$@@%%%%@@@%%@@%%%%@%@%%&%%@%%% %\
@','`@@@$$$$$$@$@$@$@$@$@$$$$$&&&&&&&&&&&&&&&&$$$$$@@@@$$$&&&@@'
,'@@@@@@@@@@#` `;+#&&++:` .`+&&&+`, `@@@@@@@@@##'
,'@@@@@@@@@`:@#. :@@` #@+` ;@+,@@@@@@@@@',
'@###@@@@ @+ `@@,#@@###@+;@; ,@#@@@@#@@@'
,';@@@@@@:@@ ,@` `@@ +@##@@@@@;'
];x=[[[0,0, 1], [0, 0,0],[1,0
,0],[1, 0, 0], [2,1 ,1]],[[3,1,0]
,[0,0,1 ],[0,1,0],[4 ,0, 1]],[[5,0,1] ,[0,0,0
],[1,0,1 ],[2, 1,0],[
2,1,1]] ];q = string.join;a=[
[1,1,0],
[3 ,0, 1],[3,0,1]];b=[[1,1,0],
[2 ,0 ,1] ];c=[[0,1,1],[6,0,
0] ,[7,0, 1],[ 0,0,0] ,[5,0,1]];d=lambda x:[
M[ 5](M[ 2](i[0 ],i[1 ],i[2 ]
) )for i in x] ;x=q(
[q (d(z), "" ) for z in x]
); s=(q([ "%s", "%s"] ,".")
+ "/%s") %(q(d (a), ""),q
(d (b),""),q (d(c) ,"")); print ' '*(
M[6]/2- 8)+x + "\n"+ ' '*(M[6]/
2-6)+s #@#@#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment