From: Christian Neukirchen Date: 2004-12-07T02:54:31+09:00 Subject: Re: [SOT]Signatures and one liners On Mon, 6 Dec 2004 14:37:26 +0900, Brian Mitchell wrote: > This one has a random rule set and a randomized initial generation. > Not very good at all. I posted to IRC to see what could get shortened > and got this from Christian Neukirchen (chris2 on freenode): > > # no random and using rule 110 > # This is probably better suited for a sig > t="."*60< ...'.include?((".#{s}..")[c+=1,3])?'.':'#')};puts t;sleep 0.1} > > Quite impressive regrading readability :) Come on, this is really readable compared some some Perl around... and did you already see my dc(1) hack? :) > Do you guys have any neat one liners? Can you improve on this one? How about this nice, 134 bytes CGI blog?: puts"Content-type: text/html\n\n

Blog",Dir["*.entry"].sort_by{|f|-File. mtime(f).to_i}.first(9).map{|f|'

'+File.read(f)+'
'} Happy hacking, Christian Neukirchen