with apologies to Terry Bisson, and to whoever first typed make make
"They're made out of makes."
"Makes?"
with apologies to Terry Bisson, and to whoever first typed make make
"They're made out of makes."
"Makes?"
| #!/bin/sh | |
| # ISC License | |
| # Copyright (c) 2026 Alexandre Gomes Gaigalas <alganet@gmail.com> | |
| # Permission to use, copy, modify, and/or distribute this software for any | |
| # purpose with or without fee is hereby granted, provided that the above | |
| # copyright notice and this permission notice appear in all copies. | |
| # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
Version 3.0 is a major release that modernizes the API, improves error handling, and introduces powerful new validation features. This release contains breaking changes and requires migration efforts from v2.x.
ValidatorBuilder (global v alias available)ValidationException (validator-specific and nested exceptions removed)validate() now returns a ResultQuery object| <?php | |
| declare(strict_types=1); | |
| // ISC License | |
| // Copyright (c) 2025, Alexandre Gomes Gaigalas <alganet@gmail.com> | |
| // Permission to use, copy, modify, and/or distribute this software for any | |
| // purpose with or without fee is hereby granted, provided that the above |
| #!/bin/sh | |
| # ISC License | |
| # Copyright (c) 2025, Alexandre Gomes Gaigalas <alganet@gmail.com> | |
| # Permission to use, copy, modify, and/or distribute this software for any | |
| # purpose with or without fee is hereby granted, provided that the above | |
| # copyright notice and this permission notice appear in all copies. |
| # Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com> | |
| # SPDX-License-Identifier: ISC | |
| _repeat () { | |
| case "${2:-}" in | |
| 0|"") return;; | |
| 1) REPLY="$1"; return;; | |
| 2) REPLY="$1$1"; return;; | |
| 3) REPLY="$1$1$1"; return;; | |
| 4) REPLY="$1$1$1$1"; return;; |
Me: Pretend you are a bat. How is the feeling of echolocating walls using sonar?
ChatGPT3: As a large language model trained by OpenAI, I do not have the ability to experience sensory input like a bat. I am only able to process and generate text based on the input that I receive from a user. I do not have the ability to experience echolocation or any other sensory input.
| #!/usr/bin/env sh | |
| # Backup of a draft with support for many shells: | |
| # bash, dash, zsh, posh, yash, ksh, mksh, oksh, busybox and so on. | |
| # | |
| # I tested every single one of them. | |
| # | |
| # Boilerplate doesn't do much. It normalizes local vars, and exposes | |
| # basic functions: | |
| # |
| set -euf | |
| PATH= | |
| IFS=' ' | |
| # Shells like dash and posh don't have the substring parameter expansion | |
| # commonly found in bash and zsh. | |
| # | |
| # To make iterating over each char fast, instead of breaking each | |
| # char individually (which forces the shell to deal with the entire | |
| # string twice, due to the nature of parameter substitution), we |
| set -euf | |
| PATH= | |
| IFS= | |
| _r= | |
| _v=0 # variable counter | |
| _f=1 # scopedion namespace | |
| _x=0 # parser namespace | |
| ! command -v emulate >/dev/null 2>&1 || emulate ksh >/dev/null 2>&1 |