public
Last active

  • Download Gist
programmer-films.md
Markdown

1

    std::set phoenix;
    phoenix.key_comp();

http://www.imdb.com/title/tt0373889

2

    class A {Ryan x; }; A a; fwrite(&a,sizeof(a), 1, handle);

http://www.imdb.com/title/tt0120815

3

/lib/modules/2.6.32/kernel/taxi

http://www.imdb.com/title/tt0075314

4

    Metres(1609.344).setColour(0x00ff00);

http://www.imdb.com/title/tt0120689/

5

    Person p;
    p.~Person();
    p.dawn();

http://www.imdb.com/title/tt0363547

6

    string arr[N];
    arr[0] = "Dusk";
    arr[N-1] = "Dawn";
    for(string str in arr);

http://www.imdb.com/title/tt0116367

7

function store(value) {
    return store(value)
}

store('e');

http://www.imdb.com/title/tt0088323/

8

<a href="#man"></a>

http://www.imdb.com/title/tt0357413/

9

for ANSI_COLOUR in {0..7};do
    M=10
    FOUND=''
    if [ "$ANSI_COLOUR" -eq 1 ];then
        FOUND=' <- Found it'
    fi
    M_NAME=`date -jnu -f '%m' +'%B' $M`
    echo -e "\033[3${ANSI_COLOUR}m $M_NAME \033[0m$FOUND"
done

http://www.imdb.com/title/tt0099810/

10

class mind:
    spots = []
    def sunshine(self):
        while True:
            pass
mind().sunshine()

http://www.imdb.com/title/tt0338013/

11

Array[Int](123, 321, 33, 33, 89, 98, 55, 123)
  .zipWithIndex
  .filter {
      case (v,i) => ((i % 2) == 0)
  }
  .map {
      case(v,i) => v
  }
  .sum

http://www.imdb.com/title/tt0416449/

12

def correct_illumination(time):
    return (time > dusk and time < sunset) or (time > sunrise and time < dawn)

http://www.imdb.com/title/tt1099212/

13

import string
print string.translate("tha      ", string.maketrans("ABCDEFGHIJKLMabcdefghijklmNOPQRSTUVWXYZnopqrstuvwxyz", "NOPQRSTUVWXYZnopqrstuvwxyzABCDEFGHIJKLMabcdefghijklm")).rstrip()

http://www.imdb.com/title/tt0095705/

14

import string
from datetime import datetime, timedelta
reduce(datetime.now(), lambda d,n: d+timedelta(days=n), range(1, len(string.ascii_letters[:-24])))

http://www.imdb.com/title/tt0289043/

15

(new Apocalypse).schedule(new Date());

http://www.imdb.com/title/tt0078788/

16

$('*')[4]

http://www.imdb.com/title/tt0119116/

17

total = 0
state = 1
for i in range(1,1000000,2):
    total+= (1.0/i ) * state
    state*=-1
print total*4

http://www.imdb.com/title/tt0138704

18

<?php

die(
    substr(min(array_filter(
        get_declared_classes(),
        function($k) { return preg_match('/Phar./', $k); }
    )), 1, 4)
);

http://www.imdb.com/title/tt0095016

var somethingWitty= new int[4, 4] { { 1, 1, 1, 1 }, { 2, 2, 2, 2 }, { 3, 3, 3, 3 }, { 4, 4, 4, 4 } };

http://www.imdb.com/title/tt0133093/?

for i in range(50):
shades[i] = Scheme.shadeOf("#666666");

int sum=0;
for(int i=0; i<fears; i++) {
sum += i;
}

http://www.imdb.com/title/tt0164184/

int sum(int a, int b) {
    return a+b;
}
int sum(int a, int b) {
    int firstToSum = a;
    int secondToSum = b;

    int result = firstToSum = a + b;

    return (int)firstToSum;
}
int sum(
    int a, 
    int b) {
    return a+b;
}

http://www.imdb.com/title/tt0060196/?ref_=chttp_tt_6

var black = {
"men": []
}

http://www.imdb.com/title/tt0119654/

// Also, ("men" in black) === true

return [
[1,3,2,2,4],
[3,8,4,0,0],
[8,5,1,0,9],
[4,1,2,1,2],
[6,8,7,7,1]
]

http://www.imdb.com/title/tt0133093/

Star a();
Star b();

a.attack(b);
b.retaliate(a);

http://www.imdb.com/title/tt0076759/

if (speed >= 88) {
  return new Date('nov 5, 1955');
}

http://www.imdb.com/title/tt0088763/

Dream levelOne = new Dream();
Dream levelTwo = new Dream();

levelOne.add(levelTwo);

http://www.imdb.com/title/tt1375666/

$logger.silence do
  ram + ewe
  ram + ewe
  ram + ewe
end

http://www.imdb.com/title/tt0102926/

function onSuccess (walker) {
   return new Sky(walker);
}

http://www.imdb.com/title/tt0086190/

if city != 'Seattle':
    time.sleep(28800)

http://www.imdb.com/title/tt0108160/

now = time.strptime("02 Feb 93 06:00 AM", "%d %b %y %I:%M %p")

http://www.imdb.com/title/tt0107048/

bool first = true;
goto P;
I: 
goto M;
P: 
E: 
goto R;
M: 
goto E;
R: 
if( first ) { first = false; goto I; }

http://www.imdb.com/title/tt0390384/

class Person {
    Idea injectedIdea

    def action() {
        render([signContract: injectedIdea.success() ? "yes" : "no"])
    }
}

http://www.imdb.com/title/tt1375666/

actor = {}
the = {"Great": actor}
#hint: type(actor)

http://www.imdb.com/title/tt0032553/

<button onclick="horizon()">Button</button>

http://www.imdb.com/title/tt0119081/

try {
  hunt();
} catch (Exception me) {
  if (!handle(me)) {
    throw me;
  }
}

http://www.imdb.com/title/tt0264464/

class Air {
    int a;

    public Air() {
        a = 1;
    }
}

http://www.imdb.com/title/tt0118571/

object John { case object End }
class John extends akka.actor.Actor {
  def receive = { case John.End => self ! akka.actor.PoisonPill }
}

http://www.imdb.com/title/tt1783732/

(more reference than pun)

p1 = Person.new
p2 = p1
p1.attack(p2, 'ear')

p2.say(RULES[0])
RULES.each do |r|
  p2.say(r)
end

http://www.imdb.com/title/tt0137523/

<html>
  <head><meta name="author" content="Ridley Scott"></head>
  <body>lies</body>
</html>

http://www.imdb.com/title/tt0758774/

len(["lust", "gluttony", "greed", "sloth", "wrath", "envy", "pride"])

http://www.imdb.com/title/tt0114369/

class Vehicle {

  bool isStolen() {
      return (now() - start_time) > interval('60s')
  }

}

http://www.imdb.com/title/tt0187078

class Wedding {
    List<Guest> guest_list;

    Wedding(List<Guest> guest_list) {
        this.guest_list = guest_list;
    }

    void addGuest(Guest guest) throws InvalidGuestException {
        if (guest_list.contains(guest)) {
            Guest g = guest_list.get(guest);

            if (!g.hasArrived()) {
                g.setArrived(true);
                return;
            }
        }

        throw new InvalidGuestException();
    }
}

http://www.imdb.com/title/tt0396269/

class Person:
     def __init__(self, age):
         self.age = age

class Country:
    def __init__(self, eldership_age):
        self.threshold = eldership_age
        self.residents = []
    def add(self, person):
        if person.age < self.threshold:
            self.residents.append(person)

http://www.imdb.com/title/tt0477348/

val keys = (0 to 11).map(_=>new SimpleDateFormat("EEEE").format(new Date(345600000L)).take(3))

http://www.imdb.com/title/tt0114746

for(;;) { new Stack<Long>().push(3L); }

http://www.imdb.com/title/tt0425379

  double tmp = balance;
  balance = (double) ((int)(balance*100)/100d);
  x.deposit(tmp - balance);

http://www.imdb.com/title/tt0151804/

Philidelphia = new City() {
   Weather getWeather() { 
      return Weather.SUNNY;
   }
 };

http://www.imdb.com/title/tt0472954

switch( (Button) benjamin )
{
   case curious:
      reverse();
      break;
}

http://www.imdb.com/title/tt0421715

class Schindler
{
   private List< People > toSave;
}

http://www.imdb.com/title/tt0108052

function finish() { alert('you win') }

$.get('/rat1', finish);
$.get('/rat2', finish);

http://www.imdb.com/title/tt0250687

if (isset(danger) && (danger.clear)) return true;

knight.setAttribute('style','color: #000000;');
knight.position.y++;

http://www.imdb.com/title/tt1345836

class Person
  def is_lost?
    true
  end
end

PEOPLE = [ Person.new, Person.new, Person.new ]

puts PEOPLE.all? { |person| person.is_lost? }

http://www.imdb.com/title/tt2017038/

function extract(dream, corporateIntel) {
    var corporateIntel = corporateIntel || [];
    corporateIntel.push(dream.data);
    dream.next && extract(dream.next, corporateIntel);
    return corporateIntel;
}

http://www.imdb.com/title/tt1375666/

class JJ extends Spielberg {
  JJ() {
    super(8);
  }
}

http://www.imdb.com/title/tt1650062/

Frequency lowEnd = new Frequency(300000000);
Frequency highEnd = new Frequency(3000000000);
bool tunableRange(Frequency frequency)
{
   return frequency >= lowEnd && frequency <= highEnd;
}

http://www.imdb.com/title/tt0098546/

How about this (pretty simple one):

while i ~= 1 do
    i = 1
end

http://www.imdb.com/title/tt1276104/

var theDay = new Date();
theDay.setTime(theDay.getTime() + (48 * 60 * 60 * 1000));

http://www.imdb.com/title/tt0319262/

#!/usr/bin/env bash
PID=$(ps ax | grep -e "Bill" | grep -v grep | awk '{print $1}')
kill $PID

http://www.imdb.com/title/tt0266697/?ref_=fn_al_tt_1

class Artifact < Nova
  def initialize()
    super
  end
end

http://www.imdb.com/title/tt0134983/

{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}

http://www.imdb.com/title/tt0450232/

apt-cache search gstreamer\[0-9.\]\+-plugins\-\([dglouy]{4}\|.{3}\)$ | sed 's/^.*-.*-\(.*\) - .*$/\1/'

http://www.imdb.com/title/tt0060196/

// not here
{
float x = 3.14;
}
// here neither

http://www.imdb.com/title/tt0454876/

int counter;

function square(int x) {
   counter++;
   return x * x;
}

http://www.imdb.com/title/tt2053463/

<%@ Master Language="C#" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

http://www.imdb.com/title/tt0110763/

Molecule el = MoleculeBuilder.add("O").add("H").add("H").build();
World.fill(el);

http://www.imdb.com/title/tt0114898/

Stopwatch orange = new Stopwatch();
orange.Start();

http://www.imdb.com/title/tt0066921/

var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
ctx.lineWidth = 1;
ctx.beginPath();
ctx.moveTo(0, 0);
ctx.lineTo(100, 0);
ctx.strokeStyle = '#ff0000';
ctx.stroke();

http://www.imdb.com/title/tt0120863/

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.