Skip to content

Instantly share code, notes, and snippets.

@jussi-kalliokoski
Created August 15, 2011 14:18
Show Gist options
  • Save jussi-kalliokoski/1146842 to your computer and use it in GitHub Desktop.
Save jussi-kalliokoski/1146842 to your computer and use it in GitHub Desktop.
the embarrassing
str = "asas";
int = (str.charCodeAt(0) << 24) + (str.charCodeAt(1) << 16) + (str.charCodeAt(2) << 8) + str.charCodeAt(3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment