Skip to content

Instantly share code, notes, and snippets.

@tompng
Created December 10, 2012 15:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tompng/4251254 to your computer and use it in GitHub Desktop.
Save tompng/4251254 to your computer and use it in GitHub Desktop.
for(s='',x=y=n=40;y+n;s+='-*\n'[x+n?x*x--+y*y<900|0:(x=n,y-=2,2)]);return s
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
------------------------------*********************-----------------------------
--------------------------*****************************-------------------------
-----------------------***********************************----------------------
--------------------*****************************************-------------------
------------------*********************************************-----------------
-----------------***********************************************----------------
---------------***************************************************--------------
--------------*****************************************************-------------
-------------*******************************************************------------
------------*********************************************************-----------
------------*********************************************************-----------
-----------***********************************************************----------
-----------***********************************************************----------
-----------***********************************************************----------
-----------***********************************************************----------
-----------***********************************************************----------
-----------***********************************************************----------
-----------***********************************************************----------
------------*********************************************************-----------
------------*********************************************************-----------
-------------*******************************************************------------
--------------*****************************************************-------------
---------------***************************************************--------------
-----------------***********************************************----------------
------------------*********************************************-----------------
--------------------*****************************************-------------------
-----------------------***********************************----------------------
--------------------------*****************************-------------------------
------------------------------*********************-----------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment