f=lambda g,r,n,s:s if n==0 else'\n'.join([s,'='*50
,g(g,r,n-1,r(s))]);l=lambda q:'\n'.join([''.join([
'*'if x in(5,6,7) else' 'for x in a])for a in [map
(sum,zip(*b))for b in zip(*[[z[x:]+z[:x]for z in [
[(2-(1-abs(x))*(1-abs(y)))*w for w in r]for c in[[
[1 if s == '*' else 0 for s in p] for p in q.split
('\n')]]for r in c[y:]+c[:y]]] for x in(-1,0,1)for
y in(-1,0,1)])]]); iters=65 ;print(f(f,l,iters,"""
**************************************************
* *
* *** ** ** *** ** *
* * * * * * * ** *
* *** * * ** ** *
* * * * * * *
* *** * *** ** *
* *
**************************************************
""".strip())) # LIFE # 2013/3/7 # Stephen Hicks #
You can fill in any initial position you want (but make sure it is a rectangle (i.e. the same number of characters on every line) and that the first and last characters are not spaces (any non-asterisk will do to signify an empty cell)).
Showing posts with label obfuscation. Show all posts
Showing posts with label obfuscation. Show all posts
Thursday, March 07, 2013
Obfuscated Life
Sunday, March 14, 2010
Happy Pi Day!
\let~\catcodeThere's even an Easter egg (try running with
~`z0~`'1~`,2~`q13~`z#
14~`46zdefq41'~`4113zgdef,q
QQ41'~`4113zlet,qBB415425'41-P#
7427,QPPzexpandafterqAA414243'H#H
42434341542415,qCC41742743'41i-D42#
434343,qww',zedefw'PPPCPBAyap!,qEE',q
6641'~`4113zcountdef,QNNzifnum6RR1R20E6
YY2QAAzadvanceY-RAY1QMMzmultiply6XX3EqS
S'Ezhskip0.5em,EQJJzjobnameEQmmwE6TT5qj
j4142x'41zgdefm'42,,EQ!!zglobalE6CC7Eqr
r41'T41MT41ACT,qHH'C0rXrYC-CrR,qOO'zifx
mEPjwxEzelsePjmxzfi,qcc'NX<RHNC<0Szelse
OEzfiAX1PczelseE!AY2zfi,EzedefzJ'J,qv
v'@,zifxzJvQOO*zfiEqll'NY<RX-Rzhbox
'c,Plzfi,zttl~`z612qii41h',~`zx0i
3.14159265358979323846264338327
950288419716939937510582097
494459230781640628620
899...kthxbye
-jobname @).For those who can't run TeX, the outputs are here and here.
Wednesday, October 11, 2006
Obfuscated TeX
I just came accross the following TeX program:
You'd never guess by looking at it that it prints the entire song of the 12 Days of Christmas. Amazing.
\let~\catcode~`76~`A13~`F1~`j00~`P2jdefA71F~`7113jdefPALLF
PA''FwPA;;FPAZZFLaLPA//71F71iPAHHFLPAzzFenPASSFthP;A$$FevP
A@@FfPARR717273F737271P;ADDFRgniPAWW71FPATTFvePA**FstRsamP
AGGFRruoPAqq71.72.F717271PAYY7172F727171PA??Fi*LmPA&&71jfi
Fjfi71PAVVFjbigskipRPWGAUU71727374 75,76Fjpar71727375Djifx
:76jelse&U76jfiPLAKK7172F71l7271PAXX71FVLnOSeL71SLRyadR@oL
RrhC?yLRurtKFeLPFovPgaTLtReRomL;PABB71 72,73:Fjif.73.jelse
B73:jfiXF71PU71 72,73:PWs;AMM71F71diPAJJFRdriPAQQFRsreLPAI
I71Fo71dPA!!FRgiePBt'el@ lTLqdrYmu.Q.,Ke;vz vzLqpip.Q.,tz;
;Lql.IrsZ.eap,qn.i. i.eLlMaesLdRcna,;!;h htLqm.MRasZ.ilk,%
s$;z zLqs'.ansZ.Ymi,/sx ;LYegseZRyal,@i;@ TLRlogdLrDsW,@;G
LcYlaDLbJsW,SWXJW ree @rzchLhzsW,;WERcesInW qt.'oL.Rtrul;e
doTsW,Wk;Rri@stW aHAHHFndZPqpa.rtMRrgeLinZ.irLtYer.W,:jbye
You'd never guess by looking at it that it prints the entire song of the 12 Days of Christmas. Amazing.
Subscribe to:
Posts (Atom)
