For The Linux Geeks....
Shockeh
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

in Off-Topic
<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
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
Thank God I don't get this.
Thank God I don't get this. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
Indeed.
Me too....
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-->
(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?
<!--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-->
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.
Also: Black Mage, it doesn't count if your code doesn't compile. btw nice avatar :D
<!--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-->
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
Just <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo--> .
no void main()
no include <stuff.h>
and no functions
*Goes into little corner and starts reading on unix*
<!--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-->