For The Linux Geeks....

ShockehShockeh If a packet drops on the web and nobody's near to see it... Join Date: 2002-11-19 Member: 9336NS1 Playtester, Forum Moderators, Constellation
<div class="IPBDescription">A little Xmas comedy!</div> I bring to you......... Xmas Tux cheer!


better !pout !cry
better watchout
lpr why
santa claus <north pole >town
cat /etc/passwd >list
ncheck list
ncheck list
cat list | grep naughty >nogiftlist
cat list | grep nice >giftlist
santa claus <north pole > town
who | grep sleeping
who | grep awake
who | grep bad || good
for (goodness sake) {
be good
}

- Shockeh

Comments

  • TequilaTequila Join Date: 2003-08-13 Member: 19660Members
    You got the geek part right <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    Thank God I don't get this.
  • DubersDubers Pet Shop Boy Edinburgh, UK Join Date: 2002-07-25 Member: 998Members
    <!--QuoteBegin--Tequila^+Dec 11 2003, 04:29 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Tequila^ @ Dec 11 2003, 04:29 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> You got the geek part right <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    Thank God I don't get this. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Indeed.
  • Spyder_MonkeySpyder_Monkey Vampire-Ninja-Monkey Join Date: 2002-01-24 Member: 8Members, NS1 Playtester, Contributor
    Ahh! I understand it!
  • OttoDestructOttoDestruct Join Date: 2002-11-08 Member: 7790Members
    <!--QuoteBegin--Spyder Monkey+Dec 11 2003, 11:34 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Spyder Monkey @ Dec 11 2003, 11:34 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Ahh! I understand it! <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Me too....
  • Spyder_MonkeySpyder_Monkey Vampire-Ninja-Monkey Join Date: 2002-01-24 Member: 8Members, NS1 Playtester, Contributor
    It's going to take a month of minesweeper to wash that out of my mind.
  • That_Annoying_KidThat_Annoying_Kid Sire of Titles Join Date: 2003-03-01 Member: 14175Members, Constellation
    <!--QuoteBegin--Spyder Monkey+Dec 11 2003, 08:34 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Spyder Monkey @ Dec 11 2003, 08:34 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Ahh! I understand it! <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    jeez


    me too <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->
  • ZelZel Join Date: 2003-01-27 Member: 12861Members
    im not even a linux geek and it made sense. well 90% of it. so.. its both funny and depressing <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • DY357LXDY357LX Playing since day 1. Still can&#39;t Comm. England Join Date: 2002-10-27 Member: 1651Members, Constellation
    edited December 2003
    *Shruggs and wanders back to his corner*
    (I don't get it... which is probably good)

    EDIT: Can we get some other versions of wholesome
    geeky fun like this? How about a Java or C++ version?
  • ShockehShockeh If a packet drops on the web and nobody&#39;s near to see it... Join Date: 2002-11-19 Member: 9336NS1 Playtester, Forum Moderators, Constellation
    *Chuckle* <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->
  • BlackMageBlackMage [citation needed] Join Date: 2003-06-18 Member: 17474Members, Constellation
    c++ version!
    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
    public const bool watch_out = 1;
    public const bool cry != CRY;
    string why; cout << why;
    santa.target = "town";
    apvector[99] list;
    for (x = 0; x < list.length(); x++)
    {
    kid.nice = check(list[x]);
    kid.nice = check(list[x]);
    if kid.nice == "naughty"
    naughty(kid);
    if kid.nice == "nice"
    nice (kid);

    if kid.state == (sleep || awake)
    know(kid);
    if kid.state == (bad || good)
    know(kid);
    }

    for (x = "goodness sake); x != ""; x = x)
    cout << "be good!";

    public const bool watch_out = 1;
    public const bool cry != CRY;
    string why; cout << why;
    santa.target = "town";<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    <!--emo&::nerdy::--><img src='http://www.unknownworlds.com/forums/html/emoticons/nerd.gif' border='0' style='vertical-align:middle' alt='nerd.gif'><!--endemo-->
  • JezpuhJezpuh Join Date: 2003-04-03 Member: 15157Banned
    <!--QuoteBegin--That Annoying Kid+Dec 11 2003, 05:41 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (That Annoying Kid @ Dec 11 2003, 05:41 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--Spyder Monkey+Dec 11 2003, 08:34 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Spyder Monkey @ Dec 11 2003, 08:34 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Ahh! I understand it! <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    jeez


    me too <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo--> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    OMG me too.
  • DOOManiacDOOManiac Worst. Critic. Ever. Join Date: 2002-04-17 Member: 462Members, NS1 Playtester
    I get it, and I'm not ashamed. I think I'll forward this to my linux zealot of a boss though, he'll be like "..." then i'll be like "THIS IS WHAT YOUR KIND ARE LIKE"" ;P

    Also: Black Mage, it doesn't count if your code doesn't compile. btw nice avatar :D
  • ZeroByteZeroByte Join Date: 2002-11-01 Member: 3057Members
    The twelve days of Christmas, sung in PHP, recursion style.

    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->function twelveDaysOfChristmas($day=1) {
    if ($day <= 12) {
     $dayOfChristmas[1] = "A partridge in a pear tree.";
     $dayOfChristmas[2] = "Two turtle doves";
     $dayOfChristmas[3] = "Three french hens";
     $dayOfChristmas[4] = "Four calling birds";
     $dayOfChristmas[5] = "Five golden rings";
     $dayOfChristmas[6] = "Six geese a-laying";
     $dayOfChristmas[7] = "Seven swans a-swimming";
     $dayOfChristmas[8] = "Eight maids a-milking";
     $dayOfChristmas[9] = "Nine ladies dancing";
     $dayOfChristmas[10] = "Ten lords a-leaping";
     $dayOfChristmas[11] = "ELeven pipers piping";
     $dayOfChristmas[12] = "Twelve drummers drumming";
     
     echo "On the ".$day." day of Christmas, my true love gave to me,
    ";
     for ($i = 1; $i < $day; $i++) {
       echo $dayOfChristmas[i]."
    ";
     }
     $day++;
     twelveDaysOfChristmas($day);
    }
    }

    twelveDaysOfChristmas();
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
  • GwahirGwahir Join Date: 2002-04-24 Member: 513Members, Constellation
    edited December 2003
    black mage that's almost a hybrid between C++ and C#

    C++ stack 12 days of christmas (lets just say this stack implementation has random read access but restricted write access) (In other words, poping doesn't delete the top (but will move on), but deletetop will)

    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
    const int days = 12;
    char *day[12];
    day[0] = "A partridge in a pear tree.";
    day[1] = "Two turtle doves";
    day[2] = "Three french hens";
    day[3] = "Four calling birds";
    day[4] = "Five golden rings";
    day[5] = "Six geese a-laying";
    day[6] = "Seven swans a-swimming";
    day[7] = "Eight maids a-milking";
    day[8] = "Nine ladies dancing";
    day[9] = "Ten lords a-leaping";
    day[10] = "ELeven pipers piping";
    day[11] = "Twelve drummers drumming";

    stack<char*> Christmas;

    for(int i = 0; i < days; i++){
    Christmas.Push(day[i]);
    for(int j = 0; j <= i; j++){
     printf("%s\n",Christmas.pop());
    }
    Christmas.Reset(); //resets pop iterator to the top
    }

    Christmas.Clear();
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    Gwahir
    hoos had to use C# too much recently

    edit: left the j++ out


    edit2: a second implementation, uses the stl, tested and works

    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
    int main(){
    const int days = 12;
    string day[12];
    day[0] = "A partridge in a pear tree.";
    day[1] = "Two turtle doves";
    day[2] = "Three french hens";
    day[3] = "Four calling birds";
    day[4] = "Five golden rings";
    day[5] = "Six geese a-laying";
    day[6] = "Seven swans a-swimming";
    day[7] = "Eight maids a-milking";
    day[8] = "Nine ladies dancing";
    day[9] = "Ten lords a-leaping";
    day[10] = "ELeven pipers piping";
    day[11] = "Twelve drummers drumming";

    stack<string> Christmas;
    stack<string> printout;

    for(int i = 0; i < days; i++){
     Christmas.push(day[i]);
     printout = Christmas;
     for(int j = 0; j <= i; j++){
      cout << printout.top() << '\n';
      printout.pop();
     }
    }
    return 0;
    }
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    not the best implementation, but I've got to study
  • ZeroByteZeroByte Join Date: 2002-11-01 Member: 3057Members
    Oooh.. this could be interesting, let's try to make 12 implementations of the 12 days of christmas... it will be fun and geeky!
  • GwahirGwahir Join Date: 2002-04-24 Member: 513Members, Constellation
    quiet you <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • pardzhpardzh Join Date: 2002-10-25 Member: 1601Members
    <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo-->

    Just <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo--> .
  • BlackMageBlackMage [citation needed] Join Date: 2003-06-18 Member: 17474Members, Constellation
    yeah, i'm taking java with an idiot for a teacher so mines gonna ... suck
    no void main()
    no include <stuff.h>
    and no functions
  • XodlikeXodlike Join Date: 2003-06-03 Member: 16985Members
    I understood teh Windows C++/C# code and the php but not the linux =(.
    *Goes into little corner and starts reading on unix*
  • CabooseCaboose title = name(self, handle) Join Date: 2003-02-15 Member: 13597Members, Constellation
    Q-Basic version
    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
    10 x=0
    20 x+1=x
    30 if x=1
    40 disp "A partridge in a pear tree."
    50 if x=2
    60 disp "Two turtle doves"
    70 if x=3
    80 disp "Three french hens"
    90 if x=4
    100 disp "Four calling birds";
    110 if x=5
    120 disp "Five golden rings"
    130 if x=6
    140 disp "Six geese a-laying"
    150 if x=7
    160 disp "Seven swans a-swimming"
    170 if x=8
    180 disp "Eight maids a-milking"
    190 if x=9
    200 disp "Nine ladies dancing"
    210 if x=10
    220 disp "Ten lords a-leaping"
    230 if x=11
    240 disp "ELeven pipers piping"
    250 if x=12
    260 disp "Twelve drummers drumming"
    270 if x=13
    280 end
    290 goto 20
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
  • AeaAea Join Date: 2003-10-09 Member: 21552Members
    I need to find a way to justice without puting a hole in the head of the Penguin.
Sign In or Register to comment.