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 29, 2012 | Action | submitted by bld

James Bond

list name = ["James","Bond"];

default
{
    state_entry()
    {
        llSay(0, llList2String(name,1) + ", " +  llList2String(name,0) + " " +  llList2String(name,1));
    }
}
Vote up this code3

| Action | submitted by Frederic

Die Hard

  $terrorists = 12;
  while ($terrorists > 0) echo strval(--$terrorists / 0);
?>
Vote up this code5

| Thriller | submitted by Hugo Leisink

The Ghost Writer

document.write('Ghost');
Vote up this code7

| Action | submitted by Mike

The Hunger Games

int main()
{
    int end_kids=1;
    for (int kids=24; kids > end_kids; kids--)
    {
        if (kids == 6)  { end_kids = 2; }
        else if (kids == 2) { end_kids = 1; }
    }
}
Vote up this code4

| Drama | submitted by David Amador

Breaking Bad

int main()
{
       Walter.Alias = "Heisenberg";

        while(Walter.Alive)
        {
                 Cook(Meth);
                 Walter.Evilness++;
                 Walter.Badass++;
                 keep_out_trouble(Jesse);
        }
}
Vote up this code10

| Action | submitted by Hugo Leisink

Girl Interrupted

#include
#include

int main(void) {
  girl();
  if (errno != EINTR) {
    fprintf(stderr, "Plot error!n");
  }

  return 0;
}
Vote up this code1

| Action | submitted by Muhammad Ghazali

The Raid: Redemption

function(aFilmTitle, anImdbReview) {
    console.info("Hey, I'm watching " + aFilmTitle + " now!. " + anImdbReview);
}

if(mood === 'really bored!') {
    if(favoriteGenre === 'Action') {
        // then you should watch a great movie
        var filmTitle = 'The Raid: Redemption';
        var imdbReview = 'http://www.imdb.com/title/tt1899353/'
        while(notTheEnd) {
            watchMovie(filmTitle, imdbReview);
        }
    }
}
Vote up this code0

| Drama | submitted by Andros

Requiem for a dream

function requiem_for_a_dream():void{
    var seasons:Array =    [{name:"spring",     happiness:"good"},
                            {name:"summer",     happiness:"very good"},
                            {name:"fall",       happiness:"bad"},
                            {name:"winter",     happiness:"very bad"}];
   
    var characters:Array = [{name:"Harry"},
                            {name:"Ellen"},
                            {name:"Marion"},
                            {name:"Tyrone"}];
   
    for(var i:int=0; i         for(var j:int=0; j             characters[j].happiness = seasons[i].happiness;
           
            if(seasons[i] == "winter" && characters[j] == "Harry"){
                cut_off_arm(characters[j]);
            }
        }
    }
}
requiem_for_a_dream();
Vote up this code1

| Action | submitted by Jeremy Holland

Every Michael Bay Movie Ever

while (1) {
  blow_some_shit_up();
  // plot() ;
  // character_development();
  blow_some_shit_up();
}
Vote up this code23

| Drama | submitted by givitumee

Lost, episodes of

public class LostEpisode { 
    boolean addicted;
   
    LostEpisode (boolean addicted) {
      this.addicted = addicted;  
    }  

    public void watch() {
        hurley();
        smokeMonster();
        ending();
    }

    private void hurley() {
        System.out.println("duuude");
    }
   
    private void smokeMonster() {
        System.out.println("ticka ticka");
    }
   
    private void ending() {
        System.out.println("wtf!");
       
        if (addicted != true) {
            addicted = true;
        }
       
        new LostEpisode(addicted).watch();
    }  
   
    public static void main (String[] args) {
        new LostEpisode(false).watch();
    }
   
}
Vote up this code13