[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Ruby 2.0

Mills Thomas (app1tam)

12/8/2004 10:02:00 PM

I suppose no one else wanted to do this, but...

Set your terminal's font to 2px in size, maximize the window (I used a
term in nt-emacs), and run this on the command line (This used the DOS
flavor; ymmv). It tickled me pink...

ruby -le"256.times{|y|print' '*(255-y),(0..y).map{|x|~y&x>0?' .':' A'}}"

+------------------------------------------------+
| DREW MILLS | 10101 Linn Station Rd. |
| | Suite 800 |
| tamills@ups.com | Louisville, KY 40223 |
| Technical Specialist | <v> 502-394-7785 |
| United Parcel Service | <f> 502-394-7812 |
+------------------------------------------------+


> -----Original Message-----
> From: Bill Kelly [mailto:billk@cts.com]
> Sent: Saturday, December 04, 2004 11:20 PM
> To: ruby-talk ML
> Subject: Re: Ruby 2.0
>
>
> From: "Zach Dennis" <zdennis@mktec.com>
> >
> > This doesn't run on my system....
> >
> > C:\source\projects\wxruby\src>ruby -le '32.times{|y|print"
> > "*(31-y),(0..y).map{|x|~y&x>0?" .":" A"}}'
> > 'y' is not recognized as an internal or external command,
> > operable program or batch file.
>
> DOS is too dumb to understand single quotes... :(
>
> Try,
>
> ruby -le"32.times{|y|print' '*(31-y),(0..y).map{|x|~y&x>0?' .':' A'}}"
>
>
> Regards,
>
> Bill
>
>
>
>