Sandwiches.

June 3, 2007 at 4:55 pm 4 comments

XKCD owns.


#include <stdio.h>
#include <unistd.h>


int main (int argc, const char * argv[]) {
if(getuid() != 0) {
printf("What? Make it yourself.\n");
return 1;
} else {
printf("Okay.\n");
return 0;
}
}

Entry filed under: code. Tags: .

Whither High School Computer Science? Map, Filter and Reduce in Cocoa

4 Comments

  • 1. Michael James  |  June 14, 2007 at 12:30 am

    LOL. That’s hilarious. If only life were that easy!

    On that note, if I could fork a copy of myself and have it go to work for me (in the background, of course), that’d be great.

  • 2. Eelco Hillenius  |  June 19, 2007 at 10:18 pm

    My girlfriend says her name is not sudo.

  • 3. atma  |  July 15, 2007 at 11:10 am

    Funny!

  • 4. Mackenzie  |  October 9, 2007 at 11:56 pm

    Incidentally, I’m attempting to muddle my way through make’s source code to add this as an Easter Egg. Mine would print out an ASCII-Art sandwich though. Make’s source is zomgwtfux0r insane though.


About Me



I'm Patrick Thomson. This was a blog about computer programming and computer science that I wrote in high school and college. I have since disavowed many of the views expressed on this site, but I'm keeping it around out of fondness.

If you like this, you might want to check out my Twitter or Tumblr, both of which are occasionally about code.

Blog Stats

  • 551,680 hits

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: