This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am pmav on github. | |
* I am pmav (https://keybase.io/pmav) on keybase. | |
* I have a public key whose fingerprint is 4CD3 65BD A558 6C15 4258 2322 5442 2E83 2517 AC59 | |
To claim this, I am signing this object: |
This file contains 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
function upload() { | |
var img = document.getElementById("avatar").toDataURL("image/png").split(',')[1]; | |
$.ajax({ | |
url: 'https://api.imgur.com/3/image', | |
type: 'POST', | |
headers: { "Authorization": "Client-ID ***YOUR CLIENT ID***" }, | |
dataType: 'json', | |
data: { | |
image: img |
This file contains 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
/** | |
* Firefox Web Workers Example v1.3.1 | |
* | |
* http://pmav.eu/stuff/javascript-webworkers | |
* | |
* This example uses N Web Workers for generating LCG pseudorandom numbers, each Worker starts a new stream. | |
* | |
* pmav, 2009-2010 | |
*/ | |
(function () { |