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 27, 2012 | Action | submitted by RockyH

Braveheart

#include
 
void foo (char *bar)
{
   char  c[12];
 
   strcpy(c, bar);
}
 
int main (int argc, char **argv)
{
   foo(argv[1]);
}
Vote up this code1

| Science Fiction | submitted by Saxmoore

Star Trek 1 – 6

   Public Sub StarTrekMovies()

        Dim intStarTrekMovie As Integer

        For intStarTrekMovie = 1 To 6
            If intStarTrekMovie Mod 2 = 0 Then
                MsgBox("Star Trek Movie #" & intStarTrekMovie & " was great!", , "Star Trek Movies")
            Else
                MsgBox("Star Trek Movie #" & intStarTrekMovie & " stunk!")
            End If

        Next

    End Sub
Vote up this code1

| Comedy | submitted by Fransjo Leihitu

A thousand words


    $words  = 0;
    for($i = 0 ; $i < 1000 ; $i++) {
        $words += ($i+1);
    }
   
    echo "A " . $words . " words";
?>
Vote up this code0

| Crime | submitted by

12 Angry Men

int angryMen = 11;
int nonAngryMen = 1;
int moviePosition = 0;
int movieEnd =96;

public class 12AngryMen()
{
          for(moviePosition<movieLength; moviePosition + 9)
          {
             System.out.println(randArgument);
             angryMen--;
             nonAngryMen++;
          }
          if(moviePosition>=movieEnd)
          {
                 System.out.println("The End");
          {
}
Vote up this code0

| Action | submitted by automata

Last of the Mohicans

(last mohicans)
Vote up this code2

| Science Fiction | submitted by automata

Inception

def dream():
   dream()
Vote up this code5

| Science Fiction | submitted by automata

Matrix

import random as neo

if neo.choice(['red', 'blue']) is 'red':
    real_world.welcome(neo)
Vote up this code2

| Comedy | submitted by automata

Finding Nemo

find / -name 'nemo' 2>/dev/null
Vote up this code11

| Action | submitted by automata

Highlander

for bad_guy in warriors:
    queen.play()
    macleod.say('There can be only one!')
    macleod.kill(bad_guy)
Vote up this code1

| Action | submitted by automata

Batman Begins

batman = new Hero();
Vote up this code2