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 11, 2012 | Disaster | submitted by Ben Howdle

Contagion


    $rNaught = 2;
    $peopleInfected = 1;
    foreach (range(1, 365) as $day) {
        $sick = $rNaught * $peopleInfected;
        echo "Day " . $day . ", this many people infected: " . $sick . "
"
;
        $peopleInfected = $sick;
    }
?>
Vote up this code0

| Science Fiction | submitted by David Amador

E.T. the Extra-Terrestrial

int main()
{
     while(ShipHasArrived()==false)
     {
            Entity::ET->phone_home();
     }    
     return 1;
}
Vote up this code0

| Romance | submitted by David Amador

Original Sin

Movie make_original_sin_movie()
{
      return (Entity::AngelinaJolie + Entity::AntonioBanderas) - Clothes;
}
Vote up this code0

| Drama | submitted by David Amador

127 Hours

int main()
{
   int hours = 0;
   while(hours<127)
   {
       ++hours;
   }
   return 1;
}
Vote up this code0

| Fantasy | submitted by David Amador

The Lion King

#include "KimbaTheWhiteLion.h"

int main()
{
     Kimba* simba = new Kimba();
     simba.Color = Brown;
     
     Story::add_entity(Entity::Timon);
     Story::add_entity(Entity::Pumbaa);
     
     return money();  
}
Vote up this code0

| Family | submitted by P.M.

Free Willy

$willy = mysql_query("SELECT orca FROM aquarium WHERE name = 'Willy'");
mysql_free_result($willy);
Vote up this code0

| Thriller | submitted by Ricardo Sabino

The Sixth Sense

class Person
{
    bool IsSpecial(List<Person> allPersons)
    {
        foreach(var Person in allPersons)
        {
            if(person.IsDead && this.Sees(person))
            {
                Whisper("I see dead people");
                return true;
            }
        }
                return false;
    }
}
Vote up this code0

March 10, 2012 | Action | submitted by BCYG

2012

function apocalpse() {
     foreach($earth->population as $personIndex => $person) {
          if($person->gotLuck == true) {
               $ark[] = $person;
          }
          elseif($person->gotRidiculousLuck == true) {
               $earth->countries("China")->moveUnder($person);
               $ark[] = $person;
          }
          else {
               unset($earth->population[$personIndex]);
          }
     }
}

}

Vote up this code0

| Comedy | submitted by David Amador

Dude, Where’s My Car?

int main()
{
    while(Car.find()==false)
    {
           print("Dude, Where's My Car?");
    }
    return 1;
}
Vote up this code0

| Horror | submitted by David Amador

Saw

int main()
{
    int number = 1;
    do
    {
         Name = "Saw " + number;
          --plot;
          ++gore;
          ++number;
    }
    while(makes_money());
   
}
Vote up this code0