hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Matrixed-Out JARHs Not To Be Missed! #

by why in bits

A little discussion worth preserving: Sam Roberts brought up ruby -rtracer -rsocket -enil, which spits out source code as binary text. He called it the “DIY Matrix Screensaver,” which must have dug into the skin of some of the sig wizards out there, because now we have a couple of bona fide scripts that both disseminate Matrix line noise into a phrase along the lines of: eh, yeah, you could say I use Ruby.

From Jannis Harder:

 puts"\e[2J\e[0;11r";$stdout.sync=true;c='/,-=<>*+.:&%$'.split'';k=[nil]*25#
 z=0x1c59f7d252f3573e0e198b8f06470cbc5.to_s(?$).tr"xqzp"," JR,";p=0;while p<
 11;i=-1;print"\eM"*7,"\e[0;0H",k.map{|q|q ?" ":c[rand(13)]},"\e[6;0H",k.###
 map{|q|l=z[i+=1,1];q ?l:"\e[C"},"\n",k.map{|q|q ?" ":"\e[C"};k[rand(25)]=##
 true;sleep 0.1;k.compact.size>24&&p+=1;end;sleep 2;puts"\e[2J\e[r"+z##JIX##

From Brian Schroder:

 z=0x585f689d4bf0636c157a335b6cfb6e3b178d.to_s(31).tr'dfgil',' JR!y';$><<####
 "\e[2J\e[0;11r";e=('!'..'/').to_a;$>.sync=a=proc{|d|k=0;(k|=(1<<rand(27));3.
 times{$><<(0..26).map{|i|d[k[i]==0,i]}<<"\n";sleep 0.03}) while k<8**9-1};b=
 proc{|t,x|t ? e[rand 13] : z[x,1]};c=proc{|t,x|b[!t,0]};a[c];a[b];puts [z]*9
 sleep 2;puts"\e[2J\e[r"+z#######http://ruby.brian-schroeder.de##############

As always, from the font of everlasting lava: Ruby-Talk.

said on 02 Mar 2005 at 14:01

Woah.

signature.any?( :spoon ) => nil
said on 02 Mar 2005 at 23:58

Truly we are not worthy. And sadly, there is no free(:yourmind) sort of func in ruby.

said on 03 Mar 2005 at 11:01

What happens when mind runs out of scope? Is it freed by the GarbageCollector machines?

said on 03 Mar 2005 at 13:16

I’m trying this in irb, without success, how am I suppose to use this ?

said on 03 Mar 2005 at 13:53

Copy it to a file and run it on the command line—it won’t work on Windows, either. Needs a Unix console.

said on 03 Mar 2005 at 22:56

The second one might work in something other than a Unix shell. The first one plays tricks with the control codes to repaint the screen. ( I think)

said on 11 Mar 2005 at 06:43

Both work on Windows. The second one is superb.

Comments are closed for this entry.