A quick and clean guide to set up your Raspberry Pi Zero 2 W headlessly with Wi-Fi, SSH, and a static IP – perfect for IoT and embedded projects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Represents the result of an operation, which can be either a success or a failure. | |
| * This pattern is useful for explicit error handling and chaining operations. | |
| * @template T The type of the value on success. | |
| * @template E The type of the error on failure (default: string). | |
| */ | |
| export class Result<T, E = string> { | |
| /** | |
| * Indicates if the result is a success. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Implementation of Rust-like Option type in TypeScript | |
| */ | |
| export abstract class Option<T> { | |
| /** | |
| * Returns true if the option is a Some value | |
| */ | |
| abstract isSome(): boolean; | |
| /** |
type NodeReactLike = {
tag: string;
attrs: Record<string, string>;
children: NodeReactLike[];
text: string | null;
};
const El = (
tag: string,