Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: For this Valentine's day...

by trizen (Hermit)
on Feb 04, 2012 at 21:58 UTC ( #951863=note: print w/replies, xml ) Need Help??

in reply to For this Valentine's day...

Nice one!
Here is a modified version with a better heart :)
perl -E 'map{$y=$_/12;say map{("@",$")[-38>$_||$_>-36&&($_**2/1024+$y**2-.8)**3>$_**2*$y**3/1024&&.2*($_-48)**2-15>15*$y||13*$y>($_-48)**2-8]}-60..60}reverse-13..15'

Replies are listed 'Best First'.
Re^2: For this Valentine's day...
by sandeepsasi (Initiate) on Feb 05, 2012 at 02:02 UTC
    Thanks :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951863]
[Eily]: I just wrote a oneliner to solve a (non perl) colleague's problem, and it worked on the first try
[Eily]: and he wasn't impressed
1nickt adds gingersnaps to the platter on the sideboard.
[Eily]: sure it was a pretty standard one liner (of the $h{$1} = $2 if /regex/; END { pp \%h; } variety), but he's not supposed to know that!
[Eily]: what's the point of writing perl if people aren't impressed :P
[sierpinski]: Haha
[Discipulus]: i'm with you!

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2017-04-26 15:04 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (482 votes). Check out past polls.