I feel compelled to express my sheer amazement. Thank you, Glen, you have made my holiday! - Josh On Dec 20, 2008, at 2:33 AM, Glen F. Pankow wrote: > Matthew Moss wrote: >> ## Dreaming of a Ruby Christmas (#187) >> It's six more days of Advent, and then... Christmas! Your task is >> to create a Ruby script that celebrates Christmas. Create a >> virtual, ASCII Christmas tree completely with blinking lights. Or a >> countdown calendar 'til December 25th. Or a script that generates >> the lyrics to _The Twelve Days of Christmas_. Or whatever you like: >> some Christmas creativity. >> And... Merry Christmas and a Happy New Year!!! > > Whenever I wrap Matzmas presents the wrapping turns out extremely > lumpy, crinkly, and stuck with gobs of tape everywhere, and the > contents are always disappointing. This script is no exception. > > Take the stuff between the '----- cut here -----' lines and save it in > a file, e.g. 'matzmas.rb'. Feed it to ruby, e.g., 'ruby matzmas.rb'. > > Please don't try to learn anything from this code! > > - Glen > > ----- cut here ----- > > ### M E R R Y M A T Z M A S ### > > "/|"\ > "/wl)e";eval(\ > "A | A"\ > "A | A"\ > \ > "InHhL"\ > ",Z,%w{-"\ > ",Y&/LH,L*"\ > "cCnd,Hh&/d,"\ > "YCB/Hh,Y&YHh,"\ > "L&xHh,L*v*nHh,*"\ > "&ghHh,n&nHh,H*nHh"\ > ",*q*v*nHh,Hw*qv*Hh}"\ > "Iq&n*L,Z,[,n&qK,n&qK,"\ > "@TwC,LH/&ng,gLBbL@K,@Th"\ > "/**,YC/k*d,Hh/*QdL@K,@FCB"\ > "/,cQqq&ng,=/CcL@K,@F&v*,RBb"\ > "y,g*mL!@K,@S&x,mQ/LhQqL,dBm=&"\ > "ng@K,@S*v*n,dBckL,Q-Hy=&ng@K,@E"\ > "&ghH,d&/L,Q-gqCbb&ng@K,@N&n*,/Qng"\ > "*L,LH*==&ng@K,@T*n,H/yL,Q-cQHch&ng@"\ > "K,@Eq*v*n,&CL,=&=&ng@K,@Tw*qv*,mCnk*y"\ > "L,=QHch&ng@,]IDAJJA2)J*Qch,dC,U&UI=/&nH"\ > ",@\nOn,Hh*,\#{nHhL[&]},dQy,CY,MQHzmQL,my,"\ > "H/B*,qCv*,gQv*,HC,m*:\n@I&JdCwnHCD2),dC,UjU"\ > "I=/&nH,@,,,\#{q&n*L[j]}\n@I*ndI=/&nHDD&,ZZ,A)"\ > "?,@,,"\ > ",G@,:"\ > ",@,,,"\ > "Gnd,Q"\ > "@)I=/"\ > "&nH,@,n*w,v*/L&Cn,CY,RBby!\n@I*nd"\ > "I".tr(' ID/VHLYGBqCA&|*UQJ=Z@K,', > '+;(r/tsfAulo1i8e|a.p=", ')) > > ----- cut here ----- >