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
function overlayEl(rect) { | |
const el = document.createElement('div'); | |
el.style.backgroundColor = 'rgba(255, 0, 0, 0.5)'; | |
el.style.position = 'absolute'; | |
el.style.transform = `translate(${rect.left}px, ${rect.top}px)`; | |
el.style.left = `${window.pageXOffset}px`; | |
el.style.top = `${window.pageYOffset}px`; | |
el.style.width = `${rect.width}px`; | |
el.style.height = `${rect.height}px`; | |
return el; |
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
import * as readline from 'readline' | |
import { performance } from 'perf_hooks'; | |
const delay = <T>(ms: number, returnValue: T = undefined): Promise<T> => | |
new Promise(resolve => setTimeout(() => resolve(returnValue), ms)); | |
const showPercentage = (percentage: string) => { | |
readline.cursorTo(process.stdout, 0, null); | |
let text = `working ... ${percentage}%` |
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
अइउण् | |
ऋऌक् | |
एओङ् | |
ऐऔच् | |
हयवरट् | |
लण् | |
ञमङणनम् | |
झभञ् | |
घढधष् | |
जबगडदश् |
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
OS=`echo \`uname\` | tr '[:upper:]' '[:lower:]'` | |
AURL="https://gist.githubusercontent.com/hightemp/5071909/raw/" | |
ANAME=".bash_aliases" | |
TMPAPATH="/tmp/$ANAME" | |
HOMEAPATH="~/$ANAME" | |
[ "$OS" = "windowsnt" ] && OS_WIN="yes" | |
[ "$OS" = "darwin" ] && OS_MAC="yes" | |
[ "$OS" = "linux" ] && OS_LIN="yes" |
OlderNewer