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 28, 2012 | Fantasy | submitted by Frantique

Lord of the Rings

#include
int ring_exists;
int Gollam_is_alive;
int episode;
main()
{
for (episode=1; episode <=3; episode++)
    {
    if (episode == 3)
    {
    ring_exists = 0; Gollam_is_alive = 0;  
    }
    else
    {
    ring_exists = 1; Gollam_is_alive = 1;
    }
    printf("Episode: %i Ring: %i Gollam: %i n",episode,ring_exists,Gollam_is_alive);
       
    }

}
Vote up this code0

| Comedy | submitted by Ben Howdle

Blues Brothers

$('.blues#jake').siblings('#elwood').css('color', 'blue');
Vote up this code1

| Drama | submitted by Rich Gubby

The Curious Case of Benjamin Button

<button data-case="curious">Benjamin</button>
Vote up this code11

| Action | submitted by Phil

Fight Club

var Fight_Club = { 
    Tyler_Durdon: {  
        make_money: function() {
            var steps = [5, 6, 4, 4, 6, 6];
            for(var k=0, thoughts = 'it soap make sell waste steal liposuction'.split(' '); k<steps.length; k++) {                 
                var tmp = thoughts[k];                 
                thoughts[k] = thoughts[steps[k]];                  
                thoughts[steps[k]] = tmp;
            }          
            document.write(thoughts.join(' '));                            
        }
    }      
};

Fight_Club.Tyler_Durdon.make_money();
Vote up this code11

| Family | submitted by Ben Howdle

Willy Wonka

var oompaLoompa = $('.oompaLoompa');
oompaLoompa.siblings().css({'color':'orange', 'background-color':'green'});
oompaLoompa.parent().animate({'height':'100px', 'color':'purple'}).text('Willy Wonka');
Vote up this code0

| Science Fiction | submitted by Philip Hayes

Flash Gordon





    Time left to save the earth: 00:00:30

show / hide countdown
Ming the merciless
Vote up this code0

March 27, 2012 | Action | submitted by Mike Keesey

Dark Knight Rises

void Bane()
{
    try
    {
        setTrap();
    }
    catch(Batman)
    {
        break;
    }
    finally
    {
        endSeries();
    }
}
Vote up this code1

| Disaster | submitted by TK

Titanic

           // it works: http://jsfiddle.net/6guWk/

            $(function() {

                $('body')
                    .prepend('
'
)
                    .prepend('
'
)
                    .prepend('
'
);

                $('#titanic')
                    .animate({
                        right: '+=5000'
                    }, 5000);

                    var collision_detect = window.setInterval(collision_detect, 0);

                    function collision_detect() {
                        if($('#titanic').offset().left <= $('#iceberg').offset().left) {
                            $('#titanic')
                                .stop()
                                .css({
                                    '-moz-transform': 'translate(100px) rotate(20deg)',
                                    '-moz-transform-origin': '60% 100%',
                                    '-webkit-transform': 'translate(100px) rotate(20deg)',
                                    '-webkit-transform-origin': '60% 100%',
                                    '-o-transform': 'translate(100px) rotate(20deg)',
                                    '-o-transform-origin': '60% 100%',
                                    '-ms-transform': 'translate(100px) rotate(20deg)',
                                    '-ms-transform-origin': '60% 100%',
                                    'transform': 'translate(100px) rotate(20deg)',
                                    'transform-origin': '60% 100%'
                                })
                                .animate({
                                    top: '+=1000'
                                }, 3000, function() {
                                    alert('My heart will go on and on');
                                });
                        }
                    }

            });
Vote up this code5

| Family | submitted by Vian Esterhuizen

Beauty and the Beast

Error 418
Vote up this code3

| Comedy | submitted by ZhuKoV

Bad Santa

//var santa = 0;
//No! This is a bad idea
var santa = 1;
Vote up this code0