Partial Interfaces Example
type NestedProperty = {
foo: string;
bar: string;
};
interface ComponentOptions {
from typing import Optional | |
def generate_bit_binaries(size: Optional[int] = 8) -> None: | |
namespace = 2 ** size | |
for i in range(namespace): # 256 because 2^8 = 256 | |
# Format the number as a binary with leading zeros | |
binary_format = f"{i:08b}" |
Partial Interfaces Example
type NestedProperty = {
foo: string;
bar: string;
};
interface ComponentOptions {
find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \; |
|
{ | |
"PX1": "no_script", | |
"PX2": "js_bootstrap", | |
"PX3": "domready", | |
"PX4": "fingerprint", | |
"PX6": "nav_timing", | |
"PX7": "incognito", | |
"PX8": "score_session", | |
"PX9": "score_impression", | |
"PX10": "ui_interaction", |
const recursionExample = () => | |
new Promise((resolve, reject) => { | |
const maxCycles = 10 | |
let cycle = 0 | |
const run = () => { | |
try { | |
if (cycle > maxCycles) { | |
throw new MaxTriesError(`Max of ${maxCycles} reached`) | |
} |
sudo yum update -y | |
sudo yum install epel-release -y | |
sudo yum install git -y | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | |
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash - |
sudo yum update -y | |
sudo amazon-linux-extras install epel -y | |
sudo yum install git -y | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |