I hereby claim:
- I am mahdif on github.
- I am mahdif (https://keybase.io/mahdif) on keybase.
- I have a public key whose fingerprint is 0687 40BB D5BA 004F 4E09 B249 CF2F F958 40A5 E6AB
To claim this, I am signing this object:
checkShit = function(url) { | |
var request = new XMLHttpRequest(); | |
request.open('HEAD', url, true); | |
request.onload = function() { | |
if (request.status >= 200 && request.status < 400) { | |
console.log('it\'s there'); | |
} else { | |
console.log('it\'s not there'); | |
} |
checkAudioSupport = function() { | |
return !!document.createElement('audio').canPlayType; | |
} | |
if (checkAudioSupport()){ | |
console.log('Audio is supported'); | |
} |
I hereby claim:
To claim this, I am signing this object:
// install | |
// npm i gulp-cache gulp-imagemin imagemin-pngquant imagemin-zopfli imagemin-mozjpeg imagemin-giflossy -f | |
// node node_modules/jpegtran-bin/lib/install.js | |
// node node_modules/gifsicle/lib/install.js | |
// node node_modules/zopflipng-bin/lib/install.js | |
// node node_modules/mozjpeg/lib/install.js | |
// node node_modules/giflossy/lib/install.js | |
// node node_modules/pngquant-bin/lib/install.js | |