Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > the darker side of ruby

Reply
Thread Tools

the darker side of ruby

 
 
Alexander Kellett
Guest
Posts: n/a
 
      02-15-2005
during a few bored moments last night i wrote some code to make this:

ruby -e "p
((((((((((((((((?A)-?L)-?E)%?X)/?A)-?N)*?D)%?E)%?R)*?K)-?E)*?L)-?L)/?
E)*?T)/?T)"

from a name;

first put in your name or whatever:
g="ALEXANDERKELLETT";c=0;loop{t=[];v=(g.unpack"c*").inject{|s,n|l=%w(+
* - / %)[rand 5];t<<l;;break if (l=="/"||l=="%")&&n==0;s.__send__
l,n};if v==666;puts "got it in #{c} tries! with
#{t.join}";break;end;c+=1}

then make l the output of above:
l="--%/-*%%*-*-/*/";t=0;
h=("ALEXANDERKELLETT".unpack"c*").map{|b|s="?"+b.c hr+")"+l[t,1];t+=1;
s}.join;"("*(l.size+1)+h

and you'll get your string
some ain't possible. i guess those people are pure or something

Alex

----
p
((((((((((((((((?A)-?L)-?E)%?X)/?A)-?N)*?D)%?E)%?R)*?K)-?E)*?L)-?L)/?
E)*?T)/?T)



 
Reply With Quote
 
 
 
 
Simon Strandgaard
Guest
Posts: n/a
 
      02-15-2005
On Wed, 16 Feb 2005 00:53:37 +0900, Alexander Kellett
<(E-Mail Removed)> wrote:
> during a few bored moments last night i wrote some code to make this:

[snip]
> some ain't possible. i guess those people are pure or something


It looks evil.. hmm nice.

--
Simon Strandgaard
'-NEON-EYE-'.unpack('C*').inject(0){|a,b|a+b} #-> 666


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ruby 1.9 side by side with 1.8 Oren Ruby 10 08-19-2009 10:08 PM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
RAW files starting out darker jerememonteau@gmail.com Digital Photography 3 03-01-2006 02:50 PM
Same network on client side and LAN side of VPN concentrator binand@gmail.com Cisco 1 12-15-2004 05:48 AM
VS.NET 2003 debugging became very slow after installing VS6 side by side Andy Chau ASP .Net 0 11-20-2003 01:19 AM



Advertisments