Movie titles and lines in JavaScript

[2011-12-08] dev, javascript, humor
(Ad, please don’t block)
Tweets marked with the hashtag #MovieLinesInCode express a movie line or title in programming language code. This post gives some examples in JavaScript; most of them are paraphrased from the blog post “Best of #MovieLinesInCode” by Arialdo Martini [link via Michael Haszprunar].

@johnnypixel, paraphrased:

    var apocalypse = Date.now();
@adomas_s:
    <html>
        <head><meta name="Author" content="Schindler"></head>
        <body>
            <ol>
                <li>...</li>
            </ol>
        </body>
    </html>
@adomas_s, paraphrased:
    setTimeout(wakeUpInHospital, 60*60*24*28)
@andybolton, paraphrased:
    do {
        var today = new Date("Feb 2, 06:00");
    } while (true);
@einarwh, paraphrased:
    var gigawatts = 1.21;
@chrismdp, paraphrased:
    to(1/0 && 1/0 + 1)
@rauschma, inspired by an idea of @tomsulston’s:
    "use theforce";
@stupler:
    deadPeople.visible = true;
@arialdomartini:
    dumb && ++dumb
@rodrigoy:
    new Dream(new Dream(new Dream(new Dream())));
@rauschma, inspired by an idea of @qwghlm’s:
    var name = { first: "James", last: "Bond" };
    "last, first last".replace(/[a-z]+/g, function (x) {
        return name[x];
    })
@lawrencedo99
    while (false) {
        say("never again");
    }
@rauschma:
    while(you.sleeping()) { }
@rauschma:
    grosse.blank