Created
May 14, 2014 20:28
-
-
Save usirin/a2d2bc3fc1018b7b0a61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| base64ToBinary = (uri) -> | |
| raw = window.atob(uri) | |
| rawLength = raw.length | |
| array = new Uint8Array(new ArrayBuffer(rawLength)) | |
| for i in [0...rawLength] | |
| array[i] = raw.charCodeAt i | |
| return array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment