Movies as code - Free your coding mind...

"Unfortunately, no one can be told what the Matrix is. You have to see it for yourself."

Morpheus, The Matrix

March 29, 2012 | Action | submitted by kiri

Avatar

man tail
Vote up this code7

| Horror | submitted by radmen

Wrong Turn

$ pwd
/crossroad
$ ls
home certain_death
$ cd certain_death
$ ./run && ./die
Vote up this code2

| Comedy | submitted by sedthh

Groundhog Day

202 CLS
203 GOTO 202
END
Vote up this code2

| Comedy | submitted by Philip Hayes

The Jerk

$carnivalpersonnel = array("Frosty","Eddy","Patty");
if (!in_array("Navin",$carnivalpersonnel)) {
    echo"He's not carnival personnel";
}
if (!in_array("Shithead",$carnivalpersonnel)) {
    echo"He's not carnival personnel";
}
?>
Vote up this code0

| Action | submitted by Hugo leisink

Jarhead

#include
#include

int main(void) {
  war_t desert_storm;
  soldier_t anthony;
  int days;

  desert_storm.days_till_start = 175;

  while (desert_storm.days_till_start > 0) {
    if (anthony.shots_fired == 0) {
      anthony.frustration++;
    }
    if (anthony.girlfriends == 0) {
      anthony.frustration++;
    }
    if (desert_storm.area_temperature.celcius > 40) {
      anthony.frustration++;
    }
    anthony.frustration += anthony.boredom;

    desert_storm.days_till_start--;
  }

  desert_storm.start();
  for (days = 0; days < 5; days++) {
    // anthony.shoot_rifle();
  }
  desert_storm.end();

  return 0;
}
Vote up this code0

| Family | submitted by Hugo Leisink

Annie

  while (time() != strtotime("tomorrow")) {
    $annie->bully($hannigan);
    $hannigan->punish($annie);
    $annie->sing("Tomorrow, you're always a day away!");
  }
?>
Vote up this code0

| Action | submitted by Hugo Leisink

Karate Kid

  while ($daniel->arm_hurts() == false) {
    $daniel->wax_on($car);
    $daniel->wax_off($car);
  }
?>
Vote up this code1

| Action | submitted by Hugo Leisink

Die Hard

hans@gruber:~$ slay john mcclain
slay: Illegal operation.
Vote up this code4

| Comedy | submitted by

Airplane!

int main () {

    bool SteveMcCroskeyIsInFilm = true;
    int vicesToResume = 4;
    string vice;
   
    while (SteveMcCroskeyIsInFilm) {

        switch (vicesToResume) {
            case 4:
                vice = "smoking";
                break;
            case 3:
                vice = "drinking";
                break;
            case 2:
                vice = "amphetamines";
                break;
            case 1:
                vice = "sniffing glue";
                break;
            default:
                break;
        }

        if (impendingCatastophe) {
            if (vicesToResume > 0) {
                cout << "Looks like I picked the wrong week to quit " << vice << "\n";
                resumeVice ();
                vicesToResume--;
            } else {
                defenestrateImmediately ();
                SteveMcCroskeyIsInFilm = false;
            }
            resetCatastropheDueToTedStriker ();
        }
    }
}
Vote up this code1

| Comedy | submitted by

Y tu mamá también


if ($novia && $mama)
{
echo 'también'; // Charolastras
}
?>
Vote up this code0