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
#!/usr/bin/env bash | |
# | |
# For moving between packages in an npm monorepo | |
# | |
# Installation: | |
# add `source packages-completion.sh` or the contents of this file to your .bash_profile | |
# | |
# Usage: | |
# While working in a npm monorepo | |
# - `cd_<tab><enter>` to return to the root (unless you have another alias starting with `cd_`) |
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
<html> | |
<body | |
bgcolor="black" | |
style="font-family: KAOMO, Hack, Source Code Pro; | |
color:orange; | |
font-size: 500%"> | |
<div | |
onclick="document.querySelector('#clicks').textContent = | |
Number(document.querySelector('#clicks').textContent) + 1;">+</div> | |
<div id="clicks" |
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
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 || |