My name is John. I like making web and mobile things
Getting an old rails app working again is more difficult than it should be
function zode64() {
// Euclidean distance from origin to my home village coordinates
var euc = Math.sqrt(Math.pow(53.8192, 2) + Math.pow(1.2545, 2));
// Base 64 encoded ASCII string of euclidean distance
var eucEncod = btoa(euc);
// eucEncod == 'NTMuODMzODE4OTE0MjI5'
var eucEncodSub = eucEncod.substring(7, 11).toLowerCase();
// eucEncodSub == 'zode'
return eucEncodSub + '64'; // append base encoding value
}
// zode64() == 'zode64'
console.log(zode64());
I like email - [email protected]. Feel free to ask me anything.