Live data from Hacker News

World

aem1k.com

11–20 of 102 posts

Re: World

#11
If you look closely you'll see that there's a parallax effect, where the lines near the equator move faster than the lines at the top, giving it a sense of depth and motion that you wouldn't expect from any ASCII art animation.

This was brilliant, just absolutely fantastic.

Re: World

#12
post #10

Inspired by "The Qlobe", written in Ruby http://mamememo.blogspot.de/2010/09/qlobe.html

Hmm, that one says, "Copyright(C).Yusuke Endoh, 2010" The author of this one apparently forgot to give credit.

Doesn't look like the code is that similar. Doesn't look like copyright has anything to do with it. Does Endoh have a patent? That would of course be a different matter.

Re: World

#13
Here this is, formatted so it is more readable.

  p = "";
  for (y in n = "zw24l6k\
  4e3t4jn`t4qj24xh2 x42kty24wrt413n243n\
  9h243pdxt41csb yz43iyb6k43pk7243nm\
  r24".split(4)) {
    for (a in t = parseInt(n[y], 36) + (e = x = r = []))
      for (r = !r, i = 0; t[a] > i; i += .05) 
        with(Math) x -= .05, 0 > cos(o = new Date / 1e3 + x / PI) && (e[~~(32 * sin(o) * sin(.5 + y / 7)) + 60] = -~r);
    for (x = 0; 122 > x;)
      p += "   *#" [e[x++] + e[x++]] || (S = ("eval" + "(z=\'" + z.split(B = "\\\\").join(B + B).split(Q = "\'").join(B + Q ) + Q + ")//m1k")[x / 2 + 61 * y - 1]).fontcolor /\\w/.test(S) && "#03B");
    document.body.innerHTML = p += B + "\\n"
  }
  setTimeout(z)
* Edited for formatting

Re: World

#14
post #10

Inspired by "The Qlobe", written in Ruby http://mamememo.blogspot.de/2010/09/qlobe.html

Hmm, that one says, "Copyright(C).Yusuke Endoh, 2010" The author of this one apparently forgot to give credit.

I saw something similar in perl years ago. I can't seem to locate it now though so maybe I'm imagining things.

Re: World

#15
post #13

Here this is, formatted so it is more readable. p = " "; for (y in n = "zw24l6k\ 4e3t4jn`t4qj24xh2 x42kty24wrt413n243n\ 9h243pdxt41csb yz43iyb6k43pk7243nm\ r24".split(4)) { for (a in t = parseInt(n[y], 36) + (e = x = r = [])) for (r = !r, i = 0; t[a] > i; i += .05) with(Math) x -= .05, 0 > cos(o = new Date / 1e3 + x / PI) && (e[~~(32 * sin(o) * sin(.5 + y / 7)) + 60] = -~r); for (x = 0; 122 > x;) p += " *#" [e[x++] +…

Personally, I find your comment less readable than TFA.

Re: World

#16
post #9
post #7

Inspecting the elements in chrome wont let me open the any of the code. Once you get past the body tags the tags just keep on flashing.

Go to the Sources tab and click the || button to pause javascript. If you're wondering where the code is, just curl the URL :) (or, with Web Inspector open, refresh the page, go to the Network tab and select the only request.

You can just look at the source (Ctrl+Alt+U in Chrome). It's an HTML document with a single script tag in it.

Re: World

#18
Reminds me of the old 1992 winner of the IOCCC by Brian Westley (who consistently entered some of the most impressive programs in that contest). It doesn't spin, but it prints a map of the provided lat/long.

http://www.ioccc.org/1992/westley.hint

               main(l
          ,a,n,d)char**a;{
      for(d=atoi(a[1])/10*80-
     atoi(a[2])/5-596;n="@NKA\
    CLCCGZAAQBEAADAFaISADJABBA^\
    SNLGAQABDAXIMBAACTBATAHDBAN\
    ZcEMMCCCCAAhEIJFAEAAABAfHJE\
    TBdFLDAANEfDNBPHdBcBBBEA_AL\
     H E L L O,    W O R L D! "
       [l++-3];)for(;n-->64;)
          putchar(!d+++33^
               l&1);}

Re: World

#19
post #15
post #13

Here this is, formatted so it is more readable. p = " "; for (y in n = "zw24l6k\ 4e3t4jn`t4qj24xh2 x42kty24wrt413n243n\ 9h243pdxt41csb yz43iyb6k43pk7243nm\ r24".split(4)) { for (a in t = parseInt(n[y], 36) + (e = x = r = [])) for (r = !r, i = 0; t[a] > i; i += .05) with(Math) x -= .05, 0 > cos(o = new Date / 1e3 + x / PI) && (e[~~(32 * sin(o) * sin(.5 + y / 7)) + 60] = -~r); for (x = 0; 122 > x;) p += " *#" [e[x++] +…

Personally, I find your comment less readable than TFA.

[deleted]

Re: World

#20
post #15
post #13

Here this is, formatted so it is more readable. p = " "; for (y in n = "zw24l6k\ 4e3t4jn`t4qj24xh2 x42kty24wrt413n243n\ 9h243pdxt41csb yz43iyb6k43pk7243nm\ r24".split(4)) { for (a in t = parseInt(n[y], 36) + (e = x = r = [])) for (r = !r, i = 0; t[a] > i; i += .05) with(Math) x -= .05, 0 > cos(o = new Date / 1e3 + x / PI) && (e[~~(32 * sin(o) * sin(.5 + y / 7)) + 60] = -~r); for (x = 0; 122 > x;) p += " *#" [e[x++] +…

Personally, I find your comment less readable than TFA.

http://pastebin.com/P3eXCg07
Post reply on HN