Prereq:
apt-get install zsh
apt-get install git-coreInstall oh-my-zsh.
| app.filter( 'bytes', function bytesFilter () { | |
| 'use strict'; | |
| return function bytesReturn ( bytes, precision ) { | |
| if ( bytes === 0 ) { | |
| return '0 bytes'; | |
| } | |
| if ( isNaN( parseFloat( bytes ) ) || !isFinite( bytes ) ) { | |
| return '-'; |
| #!/bin/bash | |
| if [[ $# -lt 2 ]]; then | |
| echo " | |
| Usage: compare-branches baseBranch compareBranch | |
| Shows what commits exist in the second branch that are not in the first" | |
| exit | |
| fi |
Prereq:
apt-get install zsh
apt-get install git-coreInstall oh-my-zsh.
I hereby claim:
To claim this, I am signing this object:
| // Types for the result object with discriminated union | |
| type Success<T> = [T, null] | |
| type Failure<E> = [null, E] | |
| type Result<T, E = Error> = Success<T> | Failure<E>; | |
| // Main wrapper function | |
| export async function tryCatch<T, E = Error>( | |
| promise: Promise<T>, | |
| ): Promise<Result<T, E>> { | |
| try { |