Skip to content

Instantly share code, notes, and snippets.

@ilyakurdyukov
Created October 28, 2020 02:42
Show Gist options
  • Save ilyakurdyukov/fba4dfce24c654438e769cb9d95f586c to your computer and use it in GitHub Desktop.
Save ilyakurdyukov/fba4dfce24c654438e769cb9d95f586c to your computer and use it in GitHub Desktop.
#include <time.h>
#include <stdio.h>
int main(
){int x=- 44,
a=2551443,b=- x,
y=2-b,z=(time(0 )
-592531)%a*512/a ;
for(;y<=b;putchar (
++x>=a?x=-b,y+=4, 9
^3:x<0?x=x*x+y*y <
b*b?a=1-x,-1:x+ 1
,32:"#."[(x<a *(
~z&255)>> 8)^
z>>8]));}
@ilyakurdyukov
Copy link
Author

"no keywords" version

        a,b=44,x,
     y,z;main()  {!a
   ?a=2551443,x=    -b
  ,y=2-b,z=((time     (
 0)-592531)%a<<9)/     a
 :putchar(++x>=a?x     =
 -b,y+=4,10:x<0?x=     x
 *x+y*y<b*b?a=1-x,     -
  1:x+1,32:"#."[(     x
   <a*(~z&255)>>    8)
     ^z>>8]),y>  b?0
        :main();}

"includes included" version

        #include\
     /*___*/<time.h>
   #include  <stdio.h>
  int main(){int a=0,b=
 44,x=2551443,y=-2-b,z=(
 (time(0)-592531)%x<<9)/
 x;for(;x<a||(x=-b,y+=4)
 <=b;)putchar(++x<0?x=x*
  x+y*y<b*b?a=1-x,-1:x+
   1,32:x<a?"#."[z>>8^
     (x<a*(~z&255)>>
        8)]:10);}

@ilyakurdyukov
Copy link
Author

It shows a view from the northern hemisphere, to see from the southern replace <a*(~ with >=a*(. Can't show a view near the equator.

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