This file contains hidden or 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
| umbrella: | |
| https://github.com/thi-ng/umbrella/blob/develop/packages/math/src/fit.ts | |
| arduino: | |
| https://github.com/arduino/ArduinoCore-avr/blob/master/cores/arduino/WMath.cpp#L52 | |
| p5: | |
| https://github.com/processing/p5.js/blob/main/src/math/calculation.js#L448 | |
| openframework: |
This file contains hidden or 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
| // fail silently | |
| type Age = "6" | "12" | "24" | "54" | "72" | "84" | |
| type AgeOld = Extract<Age, "72" | "84" | "62"> | |
| // fail kabum | |
| type Age = "6" | "12" | "24" | "54" | "72" | "84" | |
| type ExtractOrFail<T, U extends T> = U | |
| type AgeOld = ExtractOrFail<Age, "72" | "84" | "62"> |
This file contains hidden or 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 { KdTreeSet } from "@thi.ng/geom-accel"; | |
| import { samplePoisson } from "@thi.ng/poisson"; | |
| import { randMinMax2 } from "@thi.ng/vectors"; | |
| import PoissonDiskSampling from "poisson-disk-sampling"; | |
| import FastPoissonDiskSampling from "fast-2d-poisson-disk-sampling"; | |
| import { DVMesh } from "@thi.ng/geom-voronoi"; | |
| import Delaunator from "delaunator"; |
This file contains hidden or 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
| /** | |
| * Debug hook showing which props updated between two renders | |
| * @example | |
| * | |
| * const MyComponent = React.memo(props => { | |
| * useWhyDidYouUpdate('MyComponent', props); | |
| * return <div...; | |
| * }); | |
| * | |
| * @link https://usehooks.com/useWhyDidYouUpdate/ |
OlderNewer