Skip to content

Instantly share code, notes, and snippets.

View abbasali's full-sized avatar

Abbas Ali abbasali

View GitHub Profile
@abbasali
abbasali / keybase.md
Created June 20, 2020 15:21
Keybase identity

Keybase proof

I hereby claim:

  • I am abbasali on github.
  • I am abbas80 (https://keybase.io/abbas80) on keybase.
  • I have a public key ASCDtO0T9uR4kLweCyP-leZ75wD4FVH1Y4gVFu3iaF2H8wo

To claim this, I am signing this object:

@abbasali
abbasali / base64-to-decimal.js
Created March 27, 2019 05:12
A simple Javascript function to convert a base64 encoded string to decimal
/**
* Function to convert a base 64 encoded string to decimal
*
* @param {string} encodedString Base 64 encoded string
* @return {number} Decode (in decimal) string
*/
function base64ToDecimal(encodedString) {
// Convert base 64 encoded string to text
var text = atob(encodedString);
var decimalArray = [];