Skip to content

Instantly share code, notes, and snippets.

@Raphy42
Created July 18, 2017 17:07
Show Gist options
  • Save Raphy42/da701c0f47b68aefd451672339fbcb74 to your computer and use it in GitHub Desktop.
Save Raphy42/da701c0f47b68aefd451672339fbcb74 to your computer and use it in GitHub Desktop.
Base 10 to shadok converter
const shadok = n => parseInt(n)
.toString(4)
.split('')
.map(e => ['ga', 'bu', 'zo', 'meu'][e])
.join(' ')
@ubarbaxor
Copy link

Wonderful example of the expressivity of Javascript. Starred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment