Skip to content

Instantly share code, notes, and snippets.

@evanlong
Last active April 25, 2016 18:54
Show Gist options
  • Save evanlong/4013583148a6687edcf02c297a78a14c to your computer and use it in GitHub Desktop.
Save evanlong/4013583148a6687edcf02c297a78a14c to your computer and use it in GitHub Desktop.
// Compile run with:
// cc piper.c -o piper ; ./piper
// From Season 3 Episode 1 of HBO's Silicon Valley
#include <stdio.h>
#include <stdlib.h>
void _ctx_iface(__int128_t s, int i)
{
int c = (((s & ((__int128_t)0x1FULL << i * 5)) >> i * 5) + 65);
printf("%c", c);
}
int main(int argc, char* argv[])
{
for (int i = 0; i < 17; i++) {
_ctx_iface(0x79481E6BBCC01223 + ((__int128_t)0x1222DC << 64), i);
}
printf("\n");
return 0;
}
@webno
Copy link

webno commented Apr 25, 2016

haha

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