Skip to content

Instantly share code, notes, and snippets.

@jgrahamc
Created June 26, 2017 19:51
Show Gist options
  • Save jgrahamc/4174885c1e443dc2cf89a7fc1200f8b5 to your computer and use it in GitHub Desktop.
Save jgrahamc/4174885c1e443dc2cf89a7fc1200f8b5 to your computer and use it in GitHub Desktop.
Code from Silicon Valley S03E01
#include <stdio.h>
#include <stdlib.h>
typedef unsigned long u64;
typedef void enc_cfg_t;
typedef int enc_cfg2_t;
typedef __int128_t dcf_t;
enc_cfg_t _ctx_iface(dcf_t s, enc_cfg2_t i) {
int c = (((s & ((dcf_t)0x1FULL << i * 5)) >> i * 5) + 65);
printf("%c", c); }
enc_cfg2_t main() {
for (int i=0;i<17; i++) {
_ctx_iface(0x79481E6BBCC01223 + ((dcf_t)0x1222DC << 64), i);
}
}
Copy link

ghost commented May 26, 2020

I love this show!

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