Show HN: Hacker Typer [joke] (duiker101.tk)

160 points by duiker101 ↗ HN
Ever wanted to type as fast as those amazing hackers in the movies? now you can! just write something.

Yes, i was really bored.

To change writing speed: javascript:writer.speed=10;

38 comments

[ 3.3 ms ] story [ 127 ms ] thread
How is the code generated? Is is scraped from publicly-accessible repositories (e.g. on github), or is it somehow generated on demand?
(comment deleted)
random code taken from github, i think it was clone of some kernel from linus.
it would be cool if you do ngram analysis that generates code based on keystrokes
wow, he exactly duplicated my sentient EMACS setup! My job is jeopardize.
Wow, my typing speed has improved lately ...
Nice! My son loves to type random gibberish in a Vim window and now he is going to type "real" code!
How does one generate random data in a computer? Put a new cs student in front of a vim screen.

(Not my joke, but can't find the original one at the moment, I guess I read it on twitter recently.)

    struct group_info init_groups = { .usage = ATOMIC_INIT(2) };
Is this legal ANSI C?

You can initialize structs using .field = value ? Or is something else going on here?

(comment deleted)
I loved this.

Could you please specify a monospaced font? It just feels so wrong otherwise.

done!
not done!

the font is still my browser's beautiful Serif (not overridden)

extreamly strange, a lot of things changed in the last 24hrs might i ask you what browser are you using?

EDIT: you were correct, my mistke, too hurry, can you check now? Thanks

Awesome. Humour! Great post in this gray serious community. I bet people will start discussing the design pattern flaws.
Great for bad-paying programming jobs while listening to podcasts. Awesome. Humour! in this so-serious community! I bet people will start discussing the design pattern flaws.
Feature request: make every "enter" key press complete the current line.
Reminds me of good old

    hexdump -C < /dev/urandom | grep "ca fe"
For awhile, I'd run

    hexdump -C < /dev/urandom | grep "c0 ff ee"
as a fake screensaver if I walked away from the computer for awhile, but it seems to eat processor cycles like crazy. :/

http://i.imgur.com/bSkoX.png

I'm not sure how, but I knew this was kernel code about halfway through the first function. It's strange, because I've never written any kernel code before. Is there any dead giveaway in the first function that says, "This is code from the kernel"?
The things that stuck out to me were a kmalloc/kfree and a goto/label (which isn't the biggest giveaway, but the only C I've seen that used gotos and wasn't terrible code is the linux kernel, the goto is also used in the same style as they are in the kernel).
Is there any reason this shouldn't work on an iOS device? It's all Javascript. I just can't get my iPad to pop up a keyboard to start triggering keypress events.
This js simply binds an "KeyDown" event listener to the document. There are no actual input fields so an iOS device.. that's why you don't get a keyboard.
This is BS.. Hackers don't write comments!