Google Groups Home
Help | Sign in
Christmas "gift"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Jannis Harder  
View profile
 More options Dec 24 2004, 8:23 am
Newsgroups: comp.lang.ruby
From: Jannis Harder <jan...@harderweb.de>
Date: Fri, 24 Dec 2004 22:23:14 +0900
Local: Fri, Dec 24 2004 8:23 am
Subject: Christmas "gift"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A ruby christmas "gift":

loop{7.times{|i|puts"\e[2J\e[0;3H_...\n / _  '.\n|.'(@@@@@)\n(*)/ %s \\
    | .o. |\n   (  %s  ) %s"%[i==5?"- -":"e e",(i+3)%7<4?"=":"o",i>0?"-"+
(" Ho"*i)[0,9]+"!":""];puts"   (     )\n"*2,"    (   )\n"*3,'     "-"';
sleep([5,3,3,4,5,1,4][i]/6.0)}}

248 bytes 7 frames

Jannis Harder

"jp6iSZmkLp5ISZlEiW5C".unpack("m")[0].unpack("C*").map{|x|x.chr}.join.
unpack("B*")[0].scan(/.{24}/){i=7;$&.scan(/..../){print\
"\e[3#{i-=1};1;40m  ";$&.each_byte{|z|print" #"[z-?0,1]*2}};puts"\e[0m"}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (Darwin)

iD8DBQFBzBg95YRWfc27RzQRApdYAJ9bPmIMiI+E2BwnOJn8iI4+BvhP/wCgpPx3
W/hslYE/65yy/t2xs0U6WE0=
=0zJv
-----END PGP SIGNATURE-----


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sea&Gull  
View profile
 More options Dec 25 2004, 5:22 am
Newsgroups: comp.lang.ruby
From: Sea&Gull <v...@vsu.ru>
Date: Sat, 25 Dec 2004 13:22:39 +0300
Local: Sat, Dec 25 2004 5:22 am
Subject: Re: Christmas "gift"

Jannis Harder wrote:
> A ruby christmas "gift":

> loop{7.times{|i|puts"\e[2J\e[0;3H_...\n / _  '.\n|.'(@@@@@)\n(*)/ %s \\
>    | .o. |\n   (  %s  ) %s"%[i==5?"- -":"e e",(i+3)%7<4?"=":"o",i>0?"-"+
> (" Ho"*i)[0,9]+"!":""];puts"   (     )\n"*2,"    (   )\n"*3,'     "-"';
> sleep([5,3,3,4,5,1,4][i]/6.0)}}

> 248 bytes 7 frames

Looks nice! :o))))

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google