TypeScript protocol for a JSON response object (from node.js backend for example):
interface Circle {
type: "circle";
radius: number;
}
interface Square {
type: "square";
size: number;
TypeScript protocol for a JSON response object (from node.js backend for example):
interface Circle {
type: "circle";
radius: number;
}
interface Square {
type: "square";
size: number;
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background: #000; | |
} | |
</style> | |
<body> |