Skip to content

Instantly share code, notes, and snippets.

View dplarina's full-sized avatar

Daniel Plarina dplarina

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dplarina on github.
  • I am dplarina (https://keybase.io/dplarina) on keybase.
  • I have a public key ASC76mYD1PRXgIhL-4Fg22V55AXnphX1qzuGpNgFWts8cgo

To claim this, I am signing this object:

@dplarina
dplarina / detectanimation.js
Created May 23, 2018 20:11 — forked from lakenen/detectanimation.js
JavaScript animated GIF detection!
function isAnimatedGif(src, cb) {
var request = new XMLHttpRequest();
request.open('GET', src, true);
request.responseType = 'arraybuffer';
request.addEventListener('load', function () {
var arr = new Uint8Array(request.response),
i, len, length = arr.length, frames = 0;
// make sure it's a gif (GIF8)
if (arr[0] !== 0x47 || arr[1] !== 0x49 ||
@dplarina
dplarina / CleanVSCache.cmd
Created August 17, 2017 17:58
Script to clean cache for Visual Studio 2017 and ReSharper
REM clean vs cache
DEL /S /Q "%LOCALAPPDATA%\Temp\VWDWebCache"
DEL /S /Q "%LOCALAPPDATA%\Microsoft\WebsiteCache"
DEL /S /Q "%LOCALAPPDATA%\Microsoft\Microsoft\VisualStudio\14.0\ComponentModelCache"
DEL /S /Q "%LOCALAPPDATA%\Microsoft\Microsoft\VisualStudio\15.0\ComponentModelCache"
DEL /S /Q "%LOCALAPPDATA%\Microsoft\Microsoft\VisualStudio\15.0_2e8d5045\ComponentModelCache"
REM clean ReSharper cache
DEL /S /Q "%LOCALAPPDATA%\JetBrains\Transient\*"