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
| #!/bin/bash | |
| if [ $# -ne 2 ]; then | |
| echo "Usage: trackpoint <sensitivity> <speed>" | |
| echo "" | |
| echo "Sensitivity is the amount of pressure needed to make the cursor reach its max speed. Speed is the max speed." | |
| echo "Note: Both values must be 0-250 with 250 being the most sensitive/fast." | |
| exit 1 | |
| fi |
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 type { Policy } from 'https://gitlab.com/soapbox-pub/strfry-policies/-/blob/develop/mod.ts'; | |
| /** Only American English is allowed. */ | |
| const americanPolicy: Policy<void> = (msg) => { | |
| const { content } = msg.event; | |
| const words = [ | |
| 'armour', | |
| 'behaviour', | |
| 'colour', |
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 lmdb from 'npm:lmdb'; | |
| const kv = await Deno.openKv(); | |
| const db = lmdb.open({ path: './bench.db' }); | |
| await kv.set(['hello'], 'world'); | |
| await db.put(['hello'], 'world'); | |
| Deno.bench('DenoKv.get', async () => { | |
| await kv.get(['hello']); |
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 { Buffer } from 'node:buffer'; | |
| // @deno-types="npm:@types/pg@^8.11.6" | |
| import pg from 'npm:pg@^8.12.0'; | |
| interface TestQuery { | |
| text: string | |
| values?: unknown[] | |
| } | |
| const params: TestQuery = { |
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 { BlobReader, BlobWriter, ZipReader } from "@zip.js/zip.js"; | |
| /** | |
| * Configuration options for safe zip extraction | |
| */ | |
| export interface SafeZipOptions { | |
| /** Maximum zip file size in bytes (default: 100MB) */ | |
| maxZipSize?: number; | |
| /** Maximum number of entries in zip (default: 10,000) */ | |
| maxEntries?: number; |
OlderNewer