Skip to content

Instantly share code, notes, and snippets.

View MonsterDruide1's full-sized avatar

MonsterDruide1

View GitHub Profile
const p = n => x => Math.pow(x, n);
const v = [66, 39.71666667, -20.83611111, 21.33333333, -11.48611111, 2.45, -0.17777778];
const b = v.reduce((acc, cur, idx) => x => p(idx)(x) * cur + acc(x), _ => 0);
const bm = Array(7).fill(0).map((_, i) => i).map(b).map(c => String.fromCodePoint(Math.round(c)));
const batman = bm.join("");
console.log(batman);