Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -0,0 +1,10 @@
def map_range (s, from, to)
a1, a2 = from.begin, from.end
b1, b2 = to.begin, to.end
b1 + ( (s - a1) * (b2 - b1) ) / (a2 - a1)
end
(0..10).each do |i|
printf " %2d -> %g\n", i, map_range(i, 0..10, -1..0)
end