This SCAD script allows you to print mulitple numbered coin tokens meant to be drawn at random from a bag. There are lines over the top of the number to make it more difficult to feel around for a specific number. To change the number, modify the last line of code to include the desired number. Then take the code to https://ochafik.com/openscad2/ and download it as STL, then slice it with your favorite slicer. It should be able to be printed at any size required, without needing any supports.
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
| █████████████████████████████████████████████████████████████ | |
| █████████████████████████████████████████████████████████████ | |
| █████████████████████████████████████████████████████████████ | |
| █████████████████████████████████████████████████████████████ | |
| █████████ ▀██▀▐█████████████ ▀██▀▐█████████████ ▀██▀▐████████ | |
| ████████▌__/ ▒ ████████████▌__/ ▒ ████████████▌__/ ▒ ████████ | |
| ██████▀ _▀████████▀ _▀████████▀ _▀██████ | |
| █▀▀ 0 ─██▀▀ 0 ─██▀▀ 0 ─█████ | |
| █▀▄▄vv┌── _─█▀▄▄vv┌── _─█▀▄▄vv┌── _─████ | |
| █└────┘ ▄_ ▐█└────┘ ▄_ ▐█└────┘ ▄_ ▐████ |
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
| <# | |
| .SYNOPSIS | |
| Retrieves GitHub Copilot premium usage and pace details via OpenCode-authenticated APIs. | |
| .DESCRIPTION | |
| This file contains only the function definition. To use it as a command, save it to its | |
| own `.ps1` file and dot-source that file from your `$PROFILE`. | |
| This command depends on OpenCode authentication state. Install OpenCode, then run | |
| `opencode auth` and complete GitHub Copilot authentication before using this command. |
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
| #!/usr/bin/env bash | |
| ROOT_DIR="${1:-.}" | |
| ROOT_DIR="$(realpath "$ROOT_DIR")" | |
| echo "Scanning for Git repositories under: $ROOT_DIR" | |
| echo | |
| # Counters and path trackers | |
| total=0 |
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
| #!/usr/bin/env bash | |
| echo "🔍 Scanning for compromised NPM packages..." | |
| # Define compromised packages and versions | |
| declare -A compromised=( | |
| [ansi-regex]="6.2.1" | |
| [ansi-styles]="6.2.2" | |
| [backslash]="0.2.1" | |
| [chalk]="5.6.1" |
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
| /* | |
| * Based on 'distance-from' NPM package: https://github.com/rickyplouis/distance-from | |
| * refactored to: | |
| * - make the Distance object immutable | |
| * - remove superfluous distance options | |
| * - make types more succinct | |
| * - improve amount of validation for positions | |
| */ | |
| export type Position = [latitude: number, longitude: number]; |
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
| import { readFileSync, writeFileSync } from "fs"; | |
| import glob from "glob"; | |
| import { pascalCase } from "change-case"; | |
| const defaultExportPattern = /export default \{/; | |
| glob.sync("lib/**/index.js").forEach((file) => { | |
| const fileContents = readFileSync(file, "utf-8").toString(); | |
| if (!defaultExportPattern.test(fileContents)) { | |
| return; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| $thickness = 2; | |
| $outerDiameter = 20; | |
| $innerDiameter = $outerDiameter - 2 * $thickness; | |
| $center = true; | |
| module coin($text) { | |
| difference() { | |
| cylinder($thickness, d=$outerDiameter, center=$center); | |
| cylinder($thickness, d=$outerDiameter - $thickness, center=$center); | |
| } |
NewerOlder

