year | population (M) | time | pop.avg (M) | years lived (B) | total years lived (B) | % years lived |
---|---|---|---|---|---|---|
-190000 | 0 | |||||
-50000 | 2 | 140000 | 1 | 140 | 140 | 6.45 |
-8000 | 5 | 42000 | 3.5 | 147 | 287 | 13.21 |
-7000 | 7 | 1000 | 6 | 6 | 293 | 13.49 |
-6000 | 14 | 1000 | 10.5 | 11 | 304 | 14 |
-5000 | 27 | 1000 | 20.5 | 21 | 325 | 14.96 |
-4000 | 50 | 1000 | 38.5 | 39 | 364 | 16.76 |
-3000 | 100 | 1000 | 75 | 75 | 439 | 20.21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello world! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on https://github.com/PaulStoffregen/Encoder/blob/master/Encoder.h | |
class Encoder { | |
state: number | |
position: number | |
onChange: (n: number) => void | |
constructor(public pinA: DigitalInOutPin, public pinB: DigitalInOutPin) { | |
this.state = 0 | |
this.position = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { writeFileSync } from "node:fs" | |
// data from https://en.wikipedia.org/wiki/Estimates_of_historical_world_population PRB column | |
// and https://www.prb.org/articles/how-many-people-have-ever-lived-on-earth | |
const data = ` | |
-190000 0 | |
-50000 2M | |
-8000 5M | |
0 300M | |
1200 450M |