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
April 7, 2012 | Action | submitted by Ben Howdle
$seconds = 60;
while($seconds >= 0){
if($seconds > 0){
echo 'here';
} else {
echo 'gone';
}
$seconds--;
}
?>
Vote up this code4
April 6, 2012 | Action | submitted by mab
procedure brokback_mountain(cowboys out cowboy)
as
begin
open cowboys as
select * from wyoming.people where sex='M' and name='Jack Twist'
union
select * from wyoming.people where sex='M' and name='Ennis del Mar';
exception
when DRINKING then
open cowboys as
select * from wyoming.people where name='Jack Twist'
union
select * from wyoming.people where name='Ennis del Mar';
end;
Vote up this code2
| Action | submitted by mab
cp xman.default daredevil && set display=none && sudo ./daredevil &
Vote up this code5
| Science Fiction | submitted by mab
cd planet_with_aliens && install -D -t /Nostromo/Kane alien && sudo ./Nostromo/Kane/alien
Vote up this code11
| Comedy | submitted by mab
unzip jungle.zip -d house/
Vote up this code7
| Action | submitted by mab
From Paris With Love
ssh -love charlie@paris 'rm -r *'
Vote up this code0
| Science Fiction | submitted by Wildeng
Blade Runner
'''
Created on 06/apr/2012
@author: alain
'''
replicants = ["Zhora", "Leon","Pris","Roy"]
bladerunner = "Deckard"
def finalSpeech():
finalSpeech = "Roy's speaking: rn"+
"I've seen things you people wouldn't believe,rn"+
"attack ships on fire off the shoulder of Orion,rn"+
"I watched the c-beams glitter in the dark near the Tannhauser Gates.rn"+
"All those moments will be lost in time,rn"+
"like tears in rain.rn"+
"Time to die.rn"
print finalSpeech
def deckardAction(counter):
if(counter==1):
print "Rachel kills " + replicants[counter] + " to save " + bladerunner + "rn"
else:
print bladerunner + " retires " + replicants[counter] + "rn"
def final():
print "Directed by Ridley Scottrn"+
"The End"
counter = 0
while(counter<len(replicants)):
if(counter == 3):
finalSpeech()
deckardAction(counter)
counter = counter +1
final()
Vote up this code2
| Comedy | submitted by mab
meets the parents
Vote up this code1
| Action | submitted by Speedy
class Bus {
static $speed = 0.0;
static $bomb_is_armed = false;
static $bomb_is_exploded = false;
public static function drive() {
while(!self::$bomb_is_exploded) {
if(self::$speed < 50.0) {
self::$speed += rand(10, 20);
}
elseif(!self::$bomb_is_armed) {
self::$bomb_is_armed = true;
}
elseif(self::$bomb_is_armed) {
self::$speed -= rand(1, 2);
if(self::$speed < 50.0) {
self::$bomb_is_exploded = true;
}
}
}
echo 'Sorry, Denis Hopper has WON!';
}
}
Bus::drive();
?>
Vote up this code3