Skip to content

Instantly share code, notes, and snippets.

@neopunisher
Created February 10, 2023 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neopunisher/c7c0258b89df3369c8a5d9a2b293e888 to your computer and use it in GitHub Desktop.
Save neopunisher/c7c0258b89df3369c8a5d9a2b293e888 to your computer and use it in GitHub Desktop.
[...Array(256).keys()].map((idx)=>{idx=Number(idx);return{char:String.fromCharCode(idx), hex: idx.toString(16), dec: idx, bin: (idx >>> 0).toString(2).padStart(8,'0')}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment