I hereby claim:
- I am ghiden on github.
- I am hidenari (https://keybase.io/hidenari) on keybase.
- I have a public key whose fingerprint is 8A2E 98CD BB28 C287 B43E 8104 2C1A 5D84 CC80 8F5D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /* | |
| Promise.all(arr.map(reflect)).then(function(results){ | |
| var success = results.filter(x => x.status === "resolved"); | |
| }); | |
| */ | |
| module.exports = function reflect(promise){ | |
| return promise.then(v => ({v:v, status: "resolved"}), e => ({e:e, status: "rejected"})) | |
| } |
| getUrl = [[ | |
| tell application "System Events" | |
| tell application "Firefox" to activate | |
| delay .5 | |
| tell application "System Events" | |
| keystroke "l" using command down | |
| keystroke "c" using command down | |
| end tell | |
| delay .5 | |
| set u to the clipboard |
| // To run: node job-completion-estimate | |
| function sleep() { | |
| return new Promise((resolve) => { | |
| // add a random jitter of +-0.5 seconds | |
| setTimeout(() => resolve(), 1000 - (Math.random() - 0.5) * 1000); | |
| }); | |
| } | |
| function humanReadableTime(duration) { |
| #/bin/bash | |
| # Given a directory: | |
| # - fuzzy matches against filenames (fzf/sk/...) | |
| # - exact matches against contents (rg) | |
| # Key bindings: | |
| # enter: open the selected file | |
| # ctrl-n: open new file with QUERY_STRING.txt | |
| # config |