Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

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

@armw4
Copy link

armw4 commented Jan 26, 2014

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/

@PaulWagener
Copy link

PaulWagener commented Jan 27, 2014

try {
    throw new Truth();
} finally {
}

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

@chilts
Copy link

chilts commented Jan 27, 2014

var a = new Bug()
a.life()

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

@JasonMRoos
Copy link

JasonMRoos commented Jan 27, 2014

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/

@dnkoutso
Copy link

dnkoutso commented Jan 27, 2014

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

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

@daniel-white
Copy link

daniel-white commented Jan 28, 2014

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/

@NathanFlurry
Copy link

NathanFlurry commented Jan 29, 2014

How about this (pretty simple one):

while i ~= 1 do
    i = 1
end

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

@marcelod
Copy link

marcelod commented Jan 29, 2014

@citizen428
Copy link

citizen428 commented Jan 30, 2014

@michaelsanford
Copy link

michaelsanford commented Jan 30, 2014

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

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

@michaelsanford
Copy link

michaelsanford commented Jan 30, 2014

#!/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

@michaelsanford
Copy link

michaelsanford commented Jan 30, 2014

Prelude> let v = "Vendetta"

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

@michaelsanford
Copy link

michaelsanford commented Jan 30, 2014

class Artifact < Nova
  def initialize()
    super
  end
end

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

@hoehermann
Copy link

hoehermann commented Jan 30, 2014

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

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

@hoehermann
Copy link

hoehermann commented Jan 30, 2014

@hoehermann
Copy link

hoehermann commented Jan 30, 2014

ralph(It it) {
it.~It();
}

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

@hoehermann
Copy link

hoehermann commented Jan 30, 2014

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

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

@hoehermann
Copy link

hoehermann commented Jan 30, 2014

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

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

@hoehermann
Copy link

hoehermann commented Jan 30, 2014

time.strftime("Rush %H")

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

@configurator
Copy link

configurator commented Feb 2, 2014

stands[stands.length - 1]

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

@configurator
Copy link

configurator commented Feb 2, 2014

int counter;

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

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

@configurator
Copy link

configurator commented Feb 2, 2014

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

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

@kosi2801
Copy link

kosi2801 commented Feb 3, 2014

Flower f = new Rose();
f.getName();

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

@kosi2801
Copy link

kosi2801 commented Feb 3, 2014

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

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

@ddanius
Copy link

ddanius commented Feb 13, 2014

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

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

@borysf
Copy link

borysf commented Feb 14, 2014

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/

@hoehermann
Copy link

hoehermann commented Apr 10, 2014

@85pando
Copy link

85pando commented Aug 6, 2014

if (day.morning().toDie == true)
    day.().toDie = false;

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


sky.setMaterial(iron)

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


loc = randInt();
return mexico[loc];

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


Soldier fett = new Soldier("Fett");
Soldier[] army = new Soldier[32*100000];
for (int i=0; i<army.length; i++)
    army[i] = fett.deepCopy();
for (int i=0; i<army.length; i++)
    army[i].attack();

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

@BlueHatbRit
Copy link

BlueHatbRit commented Oct 21, 2014

Dream level1 = new Dream();
stage.addChild(level1);

Dream level2 = new Dream();
level1.addChild(level2);

(AS3 does this one nicely)
http://www.imdb.com/title/tt1375666/

@Ben-Kaniobi
Copy link

Ben-Kaniobi commented Oct 24, 2014

try {
    theObject.heatUp(value);
}
catch (PassedIgnitionPointErrorClass &e) {
    theObject.extinguish();
}

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


friend string You::getMovieTitle(Movie *mc);

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


git add adams.c
git commit -m "Fixed #7"
git push

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment