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 9, 2012 | Adventure | submitted by

The Lord of the Rings : The Return of the King

namespace LOTR {

struct King { string name, nationality; };

King returnTheKing() {
    return King k = { "Aragorn", "Middle-Earth" };
    return k;
}

};
Vote up this code0

| Drama | submitted by

The Godfather

jQuery(function(){
    var godfather = $('#god').parent();
});
Vote up this code0

| Adventure | submitted by -NEGI-

Finding Nemo

public void findNemo()
{
    foreach(Fish fish in Fishes)
    {
        if(fish.name == "Nemo")
        {
            return true;
        }

       return false;
    }
}
Vote up this code0

March 8, 2012 | Action | submitted by Niek de Gooijer

Cube

public class Cube
{
    public Cube(x, y, z)
    {
        if(!isPrime(x) && !isPrime(y) && !isPrime(z))
            this.add(Trap.random())
    }
}
Vote up this code0

| Comedy | submitted by ToYonos

Catch Me If You Can

public class AbagnaleJr extends Exception {}

public boolean CathMeIfYouCan()
{
    try
    {
        launchMovie();
        return false;
    }
    catch (AbagnaleJr Franck)
    {
        System.out.println("Caught !");
        return true;
    }
}
Vote up this code0

| Drama | submitted by ToYonos

Pi

public double Pi()
{
    return Math.PI;
}
Vote up this code0

| Mystery | submitted by Monkeystation

The Third Man

var men = ["man", "man", "man"];
return men[2];
Vote up this code0

| Adventure | submitted by Sandy

The Neverending Story

        public string Story()
        {
            return Story();
        }
Vote up this code0

| Action | submitted by Matt

Jaws

Public Function IsBoatBigEnough() as Boolean
    If Shark.Length => (Boat.Length / 2)
        Print("We're gonna need a bigger boat.")
        Return False
    Else
        Return True
    End If
End If
Vote up this code0

| Adventure | submitted by Ben Howdle

Back To The Future


    $speed = 0;
    function doc($great_scott){
        echo $great_scott;
    }
    while($speed <= 88){
        if($speed == 88){
            doc("We're sending you back, to the future");
        }
        $speed++;
    }
?>
Vote up this code0