[nycbug-talk] nifty(1)

George Rosamond george at ceetonetechnology.com
Thu Dec 15 10:22:52 EST 2011


On 12/15/11 09:21, Isaac Levy wrote:
>> On Dec 15, 2011, at 1:00 AM, Eitan Adler wrote:
>>
>>> This is a fun one:
>>>
>>> % function try_this_in_zsh {
>>> local lines columns colour a b p q i pnew
>>> ((columns=COLUMNS-1, lines=LINES-1, colour=0))
>>> for ((b=-1.5; b<=1.5; b+=3.0/lines)) do
>>> for ((a=-2.0; a<=1; a+=3.0/columns)) do
>>> for ((p=0.0, q=0.0, i=0; p*p+q*q<  4&&  i<  32; i++)) do
>>> ((pnew=p*p-q*q+a, q=2*p*q+b, p=pnew))
>>> done
>>> ((colour=(i/4)%8))
>>> echo -n "\\e[4${colour}m "
>>> done
>>> echo
>>> done
>>> }
>>> --
>>> Eitan Adler
>>>
>>
>
> On Dec 15, 2011, at 9:17 AM, Matthew Story wrote:
>
>> ... you just made my morning sir ... that is awesome …
>
> I just spit coffee all over my desk- that's RAD.
>
> Rocket-
> .ike

I'm loosely following this thread. . . a bit swamped right now.

Not to divert it, but. . .

Is this a "Shell from Hell" meeting?

g




More information about the talk mailing list