ggorlen

Results 57 comments of ggorlen

You can use three backticks before and after the code on their own lines to make the code block work.

I'm not sure I understand the problem. The code looks OK here, and `ground` is never used, so where is the undefined issue occurring? Does this answer on SO help?...

Thanks for clarifying. The problem in your vertices array appears to be that the final Y coordinate is higher than at least one of the other Y coordinates. Changing the...

> Matter.js doesn't support 'true' circles. Even the circles you see in the examples are just made from polygons with lots of points, arranged in an arc. So, I'd suggest...

[Here's another script](https://stackoverflow.com/questions/73140190/puppeteer-error-unknown-key-when-trying-to-press-space-key) that reproduces the error consistently at the time of writing. In this case, the site (https://www.speedtypingonline.com/typing-test) uses Google ads and analytics involving iframes in a way that...

> Try using > > ```js > var Test = Array(10).fill(Array(10).fill(color('hex-value'))); > ``` This is the right idea, but be careful because the `.fill()` value is 10 references to a...

Putting the code into a function should be done in CPython as well, and possibly all languages. See [Why does Python code run faster in a function?](https://stackoverflow.com/questions/11241523/why-does-python-code-run-faster-in-a-function).

I took a crack at adding this but didn't manage to finish in my time box. I'll try to come back to the feature when I have time, because I...

Are you using your own runner or the built-in MJS runner? A minimal example would be useful.

What do you mean by "recreate"? The code is already given to you in the demo. Are you trying to use it in your own application and somehow running into...