https://www.youtube.com/watch?v=on-MniMwdxM
To generate the key use this command
| PS1="\[\033[01;37m\]\$? \$(if [[ \$? == 0 ]]; then echo \"\[\033[01;32m\]\342\234\223\"; else echo \"\[\033[01;31m\]\342\234\227\"; fi) $(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;32m\]\u@\h'; fi)\[\033[01;34m\] \w \$\[\033[00m\] " |
| dexec() { docker exec -ti "$1" bash; } | |
| dfind () { docker ps | grep "$1" | cut -d " " -f1; } | |
| dafind () { docker ps -a | grep "$1" | cut -d " " -f1; } |
https://www.youtube.com/watch?v=on-MniMwdxM
To generate the key use this command
Start Hackjam of Build Hackflix with ReactREADME.md in the project:| netstat -vanp tcp | grep -E "pid|3000" |
| function findElement(text: string, searchStart: Node = document.body): HTMLElement { | |
| return document | |
| .evaluate( | |
| "//*[text()='" + text + "']", | |
| searchStart, | |
| null, | |
| XPathResult.ANY_TYPE, | |
| null | |
| ) | |
| .iterateNext() as HTMLElement; |
| tag = "Some value"; | |
| replacetag = '<span class="hightlighttag">' + tag + '</span>'; | |
| console.log(textarea.value.split(tag).join(replacetag)) |
| // Example type | |
| type UserInfo = { | |
| username: string, | |
| email: string | |
| }; | |
| type Present<T> = { exists: true, value: T }; | |
| type Absent = {exists: false}; | |
| type Optional<T> = Present<T> | Absent; |
| // Example type | |
| type UserInfo = { | |
| username: string, | |
| email: string | |
| }; | |
| type Present<T> = { | |
| exists: true, | |
| value: T | |
| }; |
| // Sources: https://gist.github.com/florianpasteur/118d0e29313c3fb052f944bc001cde88 | |
| function findElementByText(text, searchStart = document.body, _document = document, ignoreSpace = false) { | |
| return _document | |
| .evaluate( | |
| `//*[${ignoreSpace ? 'normalize-space' : 'text'}()="${text}"]`, | |
| searchStart, | |
| null, | |
| XPathResult.ANY_TYPE, | |
| null |