Skip to content

Instantly share code, notes, and snippets.

@st98
Last active February 9, 2016 20:42
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 st98/0f06bc0b2033adce39b1 to your computer and use it in GitHub Desktop.
Save st98/0f06bc0b2033adce39b1 to your computer and use it in GitHub Desktop.
['2 1 14 16 23 20', '2 1 15 6 4 23', '2 1 15 6 8 6'].forEach(function (s) {
console.log(parseInt(s.split(' ').map(function (n) {
return parseInt(n, 10).toString(25);
}).join(''), 25));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment