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 | Documentary | submitted by Hugo Leisink

March of the Penguins

  $animals = array();

  while (true) {
    $animal = new penguin();
    $animal->march();

    array_push($animals, $animal);
  }
?>
Vote up this code2

| Drama | submitted by sedthh

Gone

ERROR 410
Vote up this code6

| Action | submitted by Hugo Leisink

The NeverEnding Story

#include
#include

int main(void) {
  human_t *human;

  while (1) {
    if ((human = (human_t*)malloc(sizeof(human_t))) != NULL) {
      human->create_fantasy_world();
    }
  }

  return 0;
}
Vote up this code2

| Mystery | submitted by Hugo Leisink

The Number 23

#include

int combine_numbers(number_collection_t *collection) {
  return 23;
}
Vote up this code6

| Adventure | submitted by sedthh

The Lion King


$son = new Lion('cub');
$son->owner('Mufasa');

if ($son->awake()){
 if (time()   $son->owner('Sarabi');
 }
}

?>
Vote up this code1

| Action | submitted by Hugo Leisink

A-team episodes

  function play_ateam_episode($number) {
    unset($number);

    bad_guys_harass_victim();
    victim_calls_ateam();
    ateam_pays_bad_guys_a_visit();
    bad_guys_harass_victim();
    ateam_pays_bad_guys_a_visit();
    bad_guys_capture_ateam();
    ateam_finds_blowtorch_and_other_stuff();
    ateam_builds_something_cool();
    ateam_kicks_bad_guys_butt();
  }

  for ($i = 1; $i <= 98; $i++) {
    play_ateam_episode($i);
  }
?>
Vote up this code2

| Comedy | submitted by sedthh

Malcolm in the middle

.malcolm {
   vertical-align: middle;
}
Vote up this code9

| Action | submitted by Hugo Leisink

MacGyver

using PocketKnife;
Vote up this code5

| Adventure | submitted by Chichilatte

A Bug’s Life

   
        $lifespan = 80;
        for ($years_left = $lifespan; $years_left--; $years_left >= 0) {
            $mid_life_crisis = ($lifespan/2) / $years_left;
        }
    ?>
Vote up this code0

| Comedy | submitted by sedthh

Austin Powers: The Spy Who Shagged Me

function Him() {  
  Evil.call(this, "Mini-Me");  
}  
Him.prototype = new Evil();
Vote up this code2