This file contains 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
/** | |
* This module provides a block letter rendering utility for text, | |
* capable of rendering arbitrary strings into multiple styles of | |
* block letters using either ASCII characters or Unicode blocks. | |
* | |
* It's perfect for creating stylized text in console applications! | |
* | |
* | |
* @license MIT (https://nick.mit-license.org) | |
* @author Nicholas Berlette <https://github.com/nberlette> |
This file contains 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
The MIT License (MIT) | |
Copyright (c) 2025+ Nicholas Berlette (https://github.com/nberlette) | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
This file contains 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
The MIT License (MIT) | |
Copyright (c) 2023-2025+ Nicholas Berlette (https://github.com/nberlette) | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
This file contains 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
import type { | |
Closer, | |
Reader, | |
ReaderSync, | |
Seeker, | |
SeekerSync, | |
Writer, | |
WriterSync, | |
} from "jsr:@std/[email protected]/types"; |
This file contains 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
//! # `braces` | |
//! | |
//! This module implements Bash-like brace expansion. It supports | |
//! comma-separated options (e.g. `"a{b,c}d"` expands to `["abd", "acd"]`), | |
//! numeric sequences (e.g. `"file{1..3}.txt"`), alpha sequences, and even | |
//! nested brace expressions. It also supports stepped sequences (e.g. to | |
//! generate 10, 20, 30, etc. use `"file{10..30..10}.txt"`). | |
//! | |
//! The overall algorithm is similar to the TypeScript version: first the | |
//! string is “escaped” by swapping literal chars for tokens, balanced brace |
This file contains 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
// deno-lint-ignore-file no-explicit-any no-namespace | |
import { inspect, type InspectOptions } from "node:util"; | |
// #region Validation Types | |
export type Err<T = never> = { | |
success: false; | |
error: string | ValidationError<T>; | |
}; |
This file contains 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
export interface EasingMethods { | |
in(t: number): number; | |
out(t: number): number; | |
inOut(t: number): number; | |
} | |
interface EasingDef<K extends string = string> extends EasingMethods { | |
readonly name: K; | |
} |
This file contains 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
(module | |
;; Memory: 1 page = 64 KiB | |
(memory $memory 1) | |
;; Exported error flag (0 = no error, 1 = error) | |
(global $error_flag (mut i32) (i32.const 0)) | |
;; Base64 encoding table | |
(data (i32.const 0) "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/") |
This file contains 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
const _tag: unique symbol = Symbol("Option.#tag"); | |
type _tag = typeof _tag; | |
export interface Some<T> extends Option<T> { | |
readonly [_tag]: "Some"; | |
readonly value: T; | |
} | |
export interface None extends Option<never> { |
This file contains 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
The MIT License (MIT) | |
Copyright (c) 2025+ Nicholas Berlette (https://github.com/nberlette) | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
NewerOlder