Updated: 2025.07.17
Following a consistent style is crucial for database readability, maintainability, and portability.
These conventions apply to all database objects, including tables, columns, views, and functions.
| #!/usr/bin/env bash | |
| # Usage: ./describe_diagrams.sh /path/to/folder | |
| # Exit on error, treat unset variables as an error | |
| set -euo pipefail | |
| # Ensure folder argument is provided | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 /path/to/folder" |
| Color | RGB | Item | RGB |
|---|---|---|---|
| Black |
|
Foreground |
|
| Red |
|
Background |
|
| Green |
|
Cursor color |
|
| Yellow |
|
Selection background |
|
By default, Windows 11 shows a simplified right-click context menu, and you have to click "Show more options" (or press Shift + F10) to access the full legacy menu. You can make Windows 11 always show the full context menu by following these steps:
reg add "HKEY_CURRENT_USER\Software\Classes\CLSID\{86CA1AA0-34AA-4E8B-A509-50C905BAE2A2}\InprocServer32" /f /ve
| #!/bin/bash | |
| # Log and data files | |
| LOG_FILE="distro_checker.log" | |
| DATA_FILE="distro_versions.txt" | |
| # Source the external distro configuration file | |
| source "./distro_checker_config.sh" | |
| # Function to fetch and extract version information |
Huffman coding is a lossless data compression algorithm that assigns shorter binary codes to more frequent characters and longer codes to less frequent characters. This minimizes the overall size of encoded data while ensuring perfect decompression.
| # Define the target directory | |
| $targetDirectory = "C:\Path\To\Your\Directory" | |
| # Initialize counters for each file type | |
| $counterPDF = 0 | |
| $counterTXT = 0 | |
| # Process both "booklist.pdf" and "booklist.txt" | |
| foreach ($fileType in @("booklist.pdf", "booklist.txt")) { | |
| Get-ChildItem -Path $targetDirectory -Recurse -Filter $fileType | ForEach-Object { |
| @echo off | |
| C:\Users\jing\anaconda3\python.exe "C:\Users\jing\AppData\Local\Microsoft\WindowsApps\rename_photos.py" %* | |
| pause |
| @echo off | |
| :: Script to rename files: lowercase and replace spaces with underscores | |
| setlocal enabledelayedexpansion | |
| :: Check if any files were passed | |
| if "%~1"=="" ( | |
| echo Usage: Drag and drop files onto this script to rename them. | |
| echo The script will rename files to lowercase and replace spaces with underscores. | |
| pause | |
| exit /b |
flowchart TD
A[Locate Both Cars] --> B[Position Cars Close]
B --> C[Turn Off Both Cars]
C --> D[Connect Red Jumper Cable to Dead Battery's Positive Terminal]
D --> E[Connect Red Jumper Cable to Good Battery's Positive Terminal]
E --> F[Connect Black Jumper Cable to Good Battery's Negative Terminal]
F --> G[Connect Black Jumper Cable to Metal Surface on Dead Car]
G --> H[Start Good Car]