Skip to content

Instantly share code, notes, and snippets.

@ptitfred ptitfred/gist:5353908
Last active Dec 16, 2015

Embed
What would you like to do?
One line banner-style clock
# http://stackoverflow.com/questions/15393441/obfuscated-c-code-contest-2006-please-explain-sykes2-c
cd $(mktemp -d /tmp/clock.XXXX)
cat > clock.c <<C
main(_){_^448&&main(-~_);putchar(--_%64?32|-~7[__TIME__-_/8%8][">'txiZ^(~z?"-48]>>";;;====~$::199"[_*2&8|_/64]/(_&2?1:8)%8&1:10);}
C
gcc -o clock clock.c
./clock
!! !!!!!! !!!!!! !!!!!! !! !!!!
!! !! !! !! !! !! !!
!! !! !! !! !! !! !!
!! !!!! !! !!!! !!!!!! !! !! !!!!
!! !! !! !! !! !! !!
!! !! !! !! !! !! !!
!! !!!!!! !!!!!! !!!!!! !! !!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.