Skip to content

Instantly share code, notes, and snippets.

View arnaud's full-sized avatar

Arnaud Leymet arnaud

View GitHub Profile
@arnaud
arnaud / sequence.js
Created November 13, 2022 00:15
Thue-Morse sequence in JavaScript
[...Array(8)].reduce(a=>[...a,...a.map(i=>+!i)],[0])
// => 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 1 0 0…

Keybase proof

I hereby claim:

  • I am arnaud on github.
  • I am arnley (https://keybase.io/arnley) on keybase.
  • I have a public key whose fingerprint is FDE9 E89E A087 1854 1D88 C203 6C15 2553 94FD 0F97

To claim this, I am signing this object: