Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited


This user doesn't have any awards

1 Follower

About shadow_ray

  • Title

Profile Information

  • Location

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Can you elaborate? Am I right in assuming that the compiler can recognize a tail recursive function and instead of pushing a new frame to the stack it will reuse the previous one because it's no longer in use?
  2. Is there anything that interests you in particular? Let's say making games or building robots or something?
  3. I'm not sure that's how it works. What does that even mean? Typescript is a nice extension of JS. Makes it manageable.
  4. Another option is puppeteer const puppeteer = require('puppeteer') (async () => { const browser = await puppeteer.launch({ headless: true }); const page = await browser.newPage(); await page.goto('https://google.com', {waitUntil: 'networkidle0'}); const pdf = await page.pdf({path: 'path/to/save/pdf', format: 'A4' }); await browser.close(); })(); npm i puppeteer and you ready to go, it downloads chromium for you, no config required
  5. @Eigenvektor Thanks! I was wondering what the distribution looks like. There is a 1/100 chance that the first try gonna be a hit hence 100k results. For the 100 it needs 99 miss and 1 hit which is (1 - 0.01)^99 * 0.01 = 0.003697... this times 10 mill is around 37k. It checks out. Geometric distribution
  6. Ohh ok, got it. Python is probably the easiest to learn and it's commonly used in pi projects.
  7. PI4 with 8gb ram as a toaster controller? I would use a 1$ ESP8266 chip for that.
  8. Geany is just a code/text editor, if you want to run python code then you need python. Based on this comment I assume you've got python already installed.
  9. I've thrown together a simple example for you: In the define block i described what the make sound block should do (meow n times). Then I've used that construction multiple times. I hope this clears it up, if not then take a look at the wiki: https://en.scratch-wiki.info/wiki/My_Blocks
  10. @Mr.wut Click the "Make a block" button and give it a name, it will create a "define <name>" block and you can add instructions to it. When the <name> block is used, it will run all the instructions added to the "define <name>" block. This is a feature to make your life easier because duplicating stuff is much simpler this way.
  11. This is the way! A zero is missing from the end, otherwise it's perfect.
  12. Apple just released a new video: They focus on carbon neutrality and to be honest it's a nice goal. Is this a response?
  13. Recursive code tend to be smaller and cleaner thus i can be more efficient using it.