sudo !!
<Ctrl+r>
#!/bin/bash | |
# Check the latest version of NVM | |
curl https://github.com/nvm-sh/nvm/releases/latest | cut -d \/ -f 8 | cut -d \" -f 1 | |
# Run the install script | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash | |
# Paste in this scripts into your .bashrc or .bash_profile | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
# Install node and npm |
# new line + workdir + $ | |
export PS1="\n\w $ " | |
export PROMPT_DIRTRIM=2 |
package main | |
import ( | |
"strconv" | |
) | |
func solution(A []int, B []int) int { | |
n := len(A) | |
graph := make([][]int, n+1) | |
// track visited nodes when traversing the graph |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
const ( | |
NUM_WORKERS = 100 | |
NUM_JOBS = 1000 |
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
const ( | |
NUM_WORKERS = 10 | |
NUM_JOBS = 10000 |
I hereby claim:
To claim this, I am signing this object:
import { | |
CognitoJwtVerifier, | |
CognitoJwtVerifierSingleUserPool, | |
} from 'aws-jwt-verify/cognito-verifier'; | |
const verifier: CognitoJwtVerifierSingleUserPool<{ | |
userPoolId: string; | |
tokenUse: 'access' | 'id'; | |
clientId: string; | |
}> = CognitoJwtVerifier.create({ |
name: Build SPA | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened, closed] | |
branches: | |
- main | |
jobs: | |
build: |
function formatMemoryUsage(data: number) { | |
return `${Math.round((data / 1024 / 1024) * 100) / 100} MB`; | |
} | |
function getCurrentMemoryUsage(): Object { | |
const memoryData = process.memoryUsage(); | |
return { | |
rss: `${formatMemoryUsage(memoryData.rss)} -> Resident Set Size - total memory allocated for the process execution`, | |
heapTotal: `${formatMemoryUsage(memoryData.heapTotal)} -> total size of the allocated heap`, |