Skip to content

Instantly share code, notes, and snippets.

View kriserickson's full-sized avatar
💭
GitHub is not a social media site.

Kris Erickson kriserickson

💭
GitHub is not a social media site.
View GitHub Profile
info: Creating snapshot 0.0.1-17
info Uploading: [=== ] 14%error: Error running command deploy
error: write ECONNRESET
error: Error: write ECONNRESET
error: at errnoException (net.js:770:11)
error: at Object.afterWrite (net.js:594:19)
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
help: irc: <irc://chat.freenode.net/#nodejitsu>
help: email: <[email protected]>
@kriserickson
kriserickson / gist:8044290
Last active December 31, 2015 20:59
Using Ajax instead of getBase64Image to load images... See: http://jsfiddle.net/ksoncan34/DQYR2/3/
// See: http://jsfiddle.net/ksoncan34/DQYR2/3/
// Get an objectURL with an ajax object...
function getAjaxObjectUrl(url, callback, error) {
var xhr = new XMLHttpRequest(),
blob, objectURL, arrayBufferView;
xhr.open('GET', url, true);
xhr.responseType = 'arraybuffer';
xhr.addEventListener('load', function () {
set convert="C:\Program Files\ImageMagick-6.9.0-Q16\convert.exe"
mkdir icon\android
%convert% hires-icon.png -resize 36x36 icon/android/icon-36-ldpi.png
%convert% hires-icon.png -resize 48x48 icon/android/icon-48-mdpi.png
%convert% hires-icon.png -resize 72x72 icon/android/icon-72-hdpi.png
%convert% hires-icon.png -resize 96x96 icon/android/icon-96-xhdpi.png
%convert% hires-icon.png -resize 144x144 icon/android/icon-144-xxhdpi.png
%convert% hires-icon.png -resize 192x192 icon/android/icon-192-xxxhdpi.png
mkdir icon\firefox
### Keybase proof
I hereby claim:
* I am kriserickson on github.
* I am kristianerickson (https://keybase.io/kristianerickson) on keybase.
* I have a public key whose fingerprint is 66AA A3A6 A629 983B 2CB1 1BE0 28B6 0F30 7155 BAFE
To claim this, I am signing this object: