Skip to content

Instantly share code, notes, and snippets.

@orls
Last active November 23, 2022 14:47
Show Gist options
  • Save orls/8596094 to your computer and use it in GitHub Desktop.
Save orls/8596094 to your computer and use it in GitHub Desktop.

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

@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

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

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