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
/** | |
pseudodo v0.3 Polyfill for animatable content properties on psuedo elements | |
in non-supporting browsers (eg. Safari) | |
Automatically detects psuedo elements with animations attached. | |
Load after StyleSheets have been computed. | |
Written by Eric D'Addio March 2019 https://twitter.com/oldnewstandard | |
*/ |
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
Array.prototype.sleepSort = function(){ | |
const timeout = (ms) => { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
const spush = async (n) => { | |
await timeout(n); | |
this.shift(); | |
this.push(n); |
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
# opens nth most recent file in current working directory | |
# use: nthrecent 5 | |
function nthrecent() { | |
( open "`ls -t . | head -n$1 | tail -n1`" ) | |
} |