News for hackers. Stuff that matters.
Re:Show HN: A Stargate in 140 chars of JavaScript by gregsadetsky on Friday November 13, 2020 @08:18PM (#25089434)
What @tomxor said! To try it out, go to https://example.com and run the following setup code first:

  c = document.createElement('canvas');
  document.body.appendChild(c);
  x = c.getContext('2d');
  S = Math.sin;
  T = Math.tan;
  C = Math.cos;
  t = 0;
You will then be able to paste the tweet code `eval(unescape(...` into the console and see one frame rendered. :-)
Re:Show HN: A Stargate in 140 chars of JavaScript by girvo on Friday November 13, 2020 @11:32PM (#25090314)
You can also go to data:text/html,<body> instead of example.com (if I got the syntax right for the data URI, I’m on mobile)
Re:Show HN: A Stargate in 140 chars of JavaScript by gregsadetsky on Saturday November 14, 2020 @05:57PM (#25096467)
Just tried, that works too! Thanks
Re:Show HN: A Stargate in 140 chars of JavaScript by girvo on Sunday November 15, 2020 @05:39PM (#25105653)
You can do all sorts of next hacks with the data URI syntax :)