Skip to content

Instantly share code, notes, and snippets.

@0atman
Last active June 20, 2020 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0atman/dc2d8a973ee0ba97f5ac4bace483b2d9 to your computer and use it in GitHub Desktop.
Save 0atman/dc2d8a973ee0ba97f5ac4bace483b2d9 to your computer and use it in GitHub Desktop.
The code for my video cover of Jonathan Coulton's "Want You Gone" here https://youtu.be/k6giW_6_bFY
import strutils
import terminal
import autotyperpkg/typer
const lyrics = """
1#
0#Forms FORM-29827201#
0#Test Assessment Report
This was a triumph.
I'm making a note here:
HUGE SUCCESS.
It's hard to overstate my satisfaction.
Aperture Science.
We do what we must because we can.
For the good of all of us
Except the ones who are dead.
But there's no sense crying over every mistake.
You just keep on trying till you run out of cake.
And the science gets done and you make a neat gun.
For the people who are still alive.
1#
0#
0#Forms FORM-55551-5:
0#Personnel File Addendum:
0#
0#Dear <<Subject Name Here>>,
I'm not even angry.
I'm being so sincere right now.
Even though you broke my heart and killed me.
And tore me to pieces.
And threw every piece into a fire.
As they burned it hurt because
I was so happy for you!
Now these points of data make a beautiful line.
And we're out of beta, we're releasing on time.
So I'm GLaD I got burned.
Think of all the things we learned
For the people who are still alive.
0#
1#
0#
0#Forms FORM-55551-5:
0#Personnel File Addendum Addendum:
0#
0#One last thing:
0#Go ahead and leave me.
I think I prefer to stay inside.
Maybe you'll find someone else to help you.
Maybe Black Mesa...
THAT WAS A JOKE. Haha. FAT CHANCE.
Anyway, this cake is great.
It's so delicious and moist.
Look at me still talking when there's science to do.
When I look out there it makes me GLaD I'm not you.
I've experiments to run there is research to be done
On the people who are still alive
1#
PS: And believe me I am still alive.
PPS: I'm doing science and I'm still alive.
0#PPPS: I feel FANTASTIC and I'm still alive.
0#
0#
0#FINAL THOUGHT:
0#While you're dying I'll be still alive.
0#
0#
0#FINAL THOUGHT PS:
0#And when you're dead I will be still alive.
Still alive
Still alive
0#
0#
0#
0#THANK YOU FOR PARTICIPATING
0#IN THIS
0#ENRICHMENT CENTER ACTIVITY!!
"""
for line in lyrics.split("\n"):
var printable_line: string
if "0#" in line:
printable_line = line.split("#")[1] & "\n"
elif "1#" in line:
stdout.eraseScreen()
stdout.setCursorPos(0,0)
continue
else:
printable_line = line
discard readLine(stdin)
var t = newTyper(
lowWpm=175,
topWpm=175,
mistypeRate=0,
repetitionRate=0,
skipRate=0,
)
t.typeItOut(printable_line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment