> On 16 mai, 17:24, Matthew Moss <matthew.m... / gmail.com> wrote:
> > For your task this week, I ask that you make your own signature such that
> > displays your email address when run through the Ruby interpreter. The
> > signature must fit within four lines of no more than 80 characters per line.

My sig follows.
It uses a series of floating point divisions to build an enormous
number, which it
then breaks down 3 digits at a time to get ascii values.

I just realized that the float divisions may make it platform specific
- on my pc, I get:
irb(main):062:0> 1e22.to_i
=> 10000000000000000000000
irb(main):063:0> 1e23.to_i
=> 99999999999999991611392

I suppose machines with different float representations might come up
with a different value for 1e23 and above, which will cause this sig
to print garbage results.



"Adam Shelly, Purveyor of Fine Software, P.O. Box 42, Capitol,CA" ;d,i=?g,-1;"\a
\016\024\030\034 %)-159?".each_byte{|e|d+=((eval"1.0e+#{e}")/[9.562,2.688,3.374,
8.902,7.741,3.162,5.098,5.428,6.278,2.845,2.495,4.989,2.844,9.1650][i+=1]).to_i}
(d,r=d.divmod(1000);$><<r.chr)while 0<d;puts;      "It's Dot Com!" =~ /H.Runner/