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 | Action | submitted by Sandy

The Last Samurai

var samurai = samurais.Last();

March 7, 2012 | Science Fiction | submitted by syhw

Primer

:(){ :|:& };:

| Drama | submitted by Steve Hatchard

A Few Good Men

using Jessop;

public class TheTruthHandler
{
    public static bool Can()
    {
        return false;
    }  
}

| 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" }

| Thriller | submitted by David Sinclair

Andy Warhol’s Sleep

#include

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

| 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.")

| 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();
    }
}

| Comedy | submitted by ToYonos

Groundhog Day

boolean foundLove = false;
Man phil = new Man();
Woman rita = new Woman();

while (!foundLove)
{
    Day today = new Day();
    new Song("I Got You Babe").play();
    today.wakeTheGroundhog();
    switch (phil.getMood(today))
    {
        case "love" :
            foundLove = phil.triesToGet(rita);
            break;

        case "joyful" :
            phil.helpsPeople();
            break;

        case "sexual" :
            phil.tricksAWomanToSleepWithHer();
            break;

        case "thirstForKnowledge" :
            phil.learnsSomeStuff();
            break;

        case "suicidal" :
            phil.killsHimself();
            continue;
    }
    phil.goesToBed();
}

| Horror | submitted by ToYonos

Sleepy Hollow

<html>
    <!--<head></head>-->
    <body></body>
</html>

| Comedy | submitted by Ben Howdle

Home Alone

if($.contains('#kevin', '.mcallisterHouse') == false){
    kateMcCallister.speak('KEVIN!');
    kevin.action('\0/');    
}