Skip to content

Instantly share code, notes, and snippets.

@pi314
Created December 24, 2018 18:04
Show Gist options
  • Save pi314/c66e1c30f0c48443c78fa1ba79d9f9bc to your computer and use it in GitHub Desktop.
Save pi314/c66e1c30f0c48443c78fa1ba79d9f9bc to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string.h>
#ifdef ofst
for i in range(12):
MID, ofst, _ = 12, lambda o, i: int(o[i], 16), """
#else
#define ofst(o, i) 0
int main () { int t; char *s, *_; for (int i = 0; i < 12; i++) {
s = " """;
t = (int)(9+(i%3+(int)(i/3))*2-(i>8)*(2*(i-8)+2)) + ofst("466975754C32", i);
#define MID 9
#define print(s) printf("%s\n", s) //\
s, memset, _ = '', lambda s,c,t: c*int(t)+s[int(t):], """
char b[t+1]; s = b; s[t] = 0;
_ = " """;
s = memset(s, '*', t);
s = memset(s, ' ', t-(1+2*(t-MID)));
print(s);
_ = """";
} return 0; _ = " """;
#endif //\
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment