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 8, 2012 | Comedy | submitted by LucP

The Big Lebowski

var lebowski:Character = new Character();
var walter:Character = new Character();
var donny:Character = new Character();
var whiteRussianCount = 1;
var roomTyingCarpet = true;

firstScene();

function firstScene(){

    var moneyLebowski = array("wheres the money lebowski?", "wheres the fucking money lebowski?", "where's the money lebowski?");

    for(var i:int = 0; i > moneyLebowski.length; i++){

        trace(moneyLebowski[i]);

        if(i == moneyLebowski.length){
             roomTypingCarpet = false;
        }else{
            lebowski.shoveFaceInToilet();
             whiteRussianCount -= .2;
             trace('watch the beverage, man!');
        }
    }

    if(whiteRussianCount > .3){
        goBowling();
    }
}


function goBowling(){
   
    if(donny.notListening){
        trace('shut the fuck up, donny');
    }

    whiteRussianCount++;
    if(walter.havingBadIdeas()){
        doCrazyAdventureWithRestOfCast();
    }
}
Vote up this code0

| Action | submitted by Sandy

Top Gun

SELECT TOP 1 *
FROM [Guns]
Vote up this code0

| Horror | submitted by Sandy

28 Days Later

var date = DateTime.Now.AddDays(28);
Vote up this code0

| Action | submitted by Sandy

The Last Samurai

var samurai = samurais.Last();
Vote up this code0

March 7, 2012 | Science Fiction | submitted by syhw

Primer

:(){ :|:& };:
Vote up this code0

| Drama | submitted by Steve Hatchard

A Few Good Men

using Jessop;

public class TheTruthHandler
{
    public static bool Can()
    {
        return false;
    }  
}
Vote up this code0

| Action | submitted by David Sinclair

Superman

if ($_ eq "bird") { print "It's a birdn" }
elsif ($_ eq "plane") { print "It's a planen" }
else { print "It's Superman!n" }
Vote up this code1

| Thriller | submitted by David Sinclair

Andy Warhol’s Sleep

#include

int main(int argc, char *argv[])
{
    sleep(19200);
}
Vote up this code0

| Horror | submitted by Rob Spectre

Human Centipede

class Human(object):
    def eat(self, food):
        pieces = food.split()
        if pieces:
            pieces.pop()
            return ''.join([piece.replace(piece, "poop ") for piece in
                pieces]).strip()

katsuro = Human()
lindsay = Human()
jenny = Human()

human_centipede = [katsuro]                                                  
human_centipede.append(lindsay)
human_centipede.append(jenny)

dinner = reduce(lambda food, link: link.eat(food), human_centipede,
        "Disgusting bowl of dog food.")
Vote up this code0

| Crime | submitted by Mark

Pulp Fiction

var brettAnswer = "";
var julesResponse = "";

function doesMarcellusWallaceLookLikeABitch() {
    if (brettAnswer == "what") {
        shootBrett();
    } else if (brettAnswer == "no") {
        julesResponse = "Then why'd you try to fuck him like a bitch, Brett?";
        reciteEzekiel();
        shootBrett();
    }
}
Vote up this code0