Library Management REST API Base URL: https://api.example.com/v1 All request and response bodies use application/json. Dates use ISO 8601 in UTC. Resource IDs are UUIDs. Endpoint Table Books Method Path Purpose Status Codes GET /books List and filter books 200, 400 POST /books Create a book record 201, 400, 409, 422 GET /books/{bookId} Retrieve a book 200, 404 PATCH /books/{bookId} Update book metadata or inventory 200, 400, 404, 409, 422 …Read the full sample →
Script writer
A robust automation script: argument parsing, dry-run, error handling, progress output.
Sample: input → output
- What should the script do?
- rename all photos in a folder by their EXIF date, dry-run flag, handle duplicates
#!/usr/bin/env bash set -Eeuo pipefail IFS=$'\n\t'
usage() { cat <<'EOF' Usage: rename-photos.sh [--dry-run] FOLDER rename-photos.sh --help
Rename photos using their EXIF capture date.
Options: -n, --dry-run Show planned changes without renaming files -h, --help Show this help message
Output format: YYYYMMDD_HHMMSS.ext
Duplicates: Files with the same timestamp receive a numeric suffix: YYYYMMDD_HHMMSS_001.ext
Supported extensions: jpg, jpeg, heic, heif, tif, tiff, png, webp
Requirements: exiftool EOF }
die() { printf 'Error: %s\n' "$*" >&2 exit 1 }…
Similar templates
add(a, b) Adds two values using JavaScript’s + operator. Parameters Name Type Constraints a any None. If either operand is a string, string concatenation may occur. b any None. If either operand is a string, string concatenation may occur. Returns any — The result of evaluating a + b. Errors This function does not explicitly throw errors. JavaScript may throw a TypeError for incompatible operand types, such as mixing a bigint with a number. Example const result = add(2, 3);…Read the full sample →
The Cost of Doing Nothing Assumptions Replace these inputs with internal figures as needed: 20 engineers run or wait for CI an average of 2 times per day 220 working days per year Fully loaded engineering cost: $150/hour Current suite duration: 45 minutes Estimated productive time lost per run: 15 minutes due to parallel work, context switching, and delayed feedback 5 flaky-test reruns or investigations per day, averaging 20 minutes each 2 production incidents last quarter traced to untested paths Average incident cost:…Read the full sample →
Tech debt business case
Input: our test suite takes 45 minutes, flaky tests get skipped, two incidents last quarter traced to untested paths
Use this