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 16, 2012 | Comedy | submitted by Akkuch

Yes Man

$.prototype.say = function(answer) {
   alert(answer);
}
$('man').bind('answer', function() {
   $(this).say("Yes");
});
Vote up this code1

| Documentary | submitted by Davros

Blue

body{
    background-color:blue;
}
Vote up this code0

| Thriller | submitted by IvanDonat

The Sum of all Fears

int sum = 0;
for(Fear f: fears){
       sum+=fear;
}
System.out.println("The Sum of All Fears: " + sum);
Vote up this code2

| Thriller | submitted by Barbasa

Misery

if(0) { die('Misery') }
Vote up this code0

| Action | submitted by Fransjo Leihitu

Cowboys and aliens

   
        include("movie.php");
        include("cowboys.php");
        include("aliens.php");
       
        startMovie();
    ?>
Vote up this code2

| Comedy | submitted by Fransjo Leihitu

Dude, where’s my car?

SELECT car FROM dude
Vote up this code3

| Action | submitted by Gustavo Fernandes

The Sum of All Fears

SELECT SUM(Fears) FROM World;
Vote up this code3

| Action | submitted by Ricardo Sabino

Die Hard

#include

int main()
{
    char die[1];
    strcpy(die, "hard");
}
Vote up this code1

| Science Fiction | submitted by Gustavo Fernandes

I, Robot

class Robot {

    private boolean firstLaw;
    private boolean secondLaw;
    private boolean thirdLaw;
   
    Robot() {
        firstLaw = true;
        secondLaw = true;
        thirdLaw = true;
    }
   
    public boolean getFirstLaw() {
        return this.firstLaw;
    }
    public boolean getSecondLaw() {
        return this.secondLaw;
    }
    public boolean getThirdLaw() {
        return this.thirdLaw;
    }
   
    public void speakThreeLaws() {
        if(getThirdLaw() && !getSecondLaw() && getFirstLaw()) {
            System.out.println("I can not injure a human being or, through inaction, " +
                "allow a human to come to harm.n" +
                "I must obey orders given by human beings, except where " +
                "such orders would conflict with the First Law.n" +
                "I must protect my own existence as long as such protection does " +
                "not conflict with the First and/or Second Laws.");
        }
        else System.out.println("NO!");
    }
}

public class GetLifeRobot {

    public static void main(String[] args) {
        Robot sonny = new Robot();
        sonny.speakThreeLaws();
    }
}
Vote up this code1

| Thriller | submitted by Mike Keesey

Fight Club

var rules = [];
rules[0] = "You do not talk about Fight Club";
rules[1] = rules[0];
Vote up this code2