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
| \documentclass{article} | |
| \usepackage{fontspec} % Select OpenType/TrueType system fonts | |
| \usepackage{microtype} % Improve spacing, protrusion, and overall typography | |
| \usepackage[british]{babel} % Language-specific hyphenation and document strings | |
| \usepackage{csquotes} % Context-sensitive quotation marks | |
| \usepackage{mathtools} % Extensions and fixes for amsmath | |
| \usepackage{amssymb} % Additional mathematical symbols |
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
| %!TEX program = lualatex | |
| % Compile twice to settle the table of contents and cross-references. | |
| \documentclass[11pt]{article} | |
| \usepackage{fontspec} % Select OpenType/TrueType system fonts | |
| \usepackage{microtype} % Improve spacing, protrusion, and overall typography | |
| \usepackage[british]{babel} % Language-specific hyphenation and document strings | |
| \usepackage{csquotes} % Context-sensitive quotation marks |
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
| # Open the current directory in a Docker container | |
| function container() { | |
| IMAGE=${1:-ubuntu:questing} | |
| echo "Opening $PWD in $IMAGE" | |
| docker run --rm -it -v "$PWD":/workspace -w /workspace "$IMAGE" bash | |
| } |
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
| # Open the current directory in a Docker container | |
| function container() { | |
| IMAGE=${1:-ubuntu:questing} | |
| echo "Opening $PWD in $IMAGE" | |
| docker run --rm -it -v "$PWD":/workspace -w /workspace "$IMAGE" bash | |
| } | |
| # Open the current directory in a Docker container (amd64) | |
| function containeramd() { | |
| IMAGE=${1:-ubuntu:questing} |
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
| # install Free Pascal | |
| brew install fpc | |
| wget --no-verbose http://mirrors.ctan.org/systems/knuth/dist.zip | |
| wget --no-verbose http://mirrors.ctan.org/systems/knuth/local.zip | |
| wget --no-verbose http://mirrors.ctan.org/systems/unix/tex-fpc.zip | |
| unzip '*.zip' | |
| cd tex-fpc/ |
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
| { | |
| "manifest_version": 3, | |
| "name": "Customise Google", | |
| "version": "0.0.1", | |
| "content_scripts": [ | |
| { | |
| "matches": ["https://www.google.com/search?*"], | |
| "css": ["styles.css"] | |
| } | |
| ] |
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 * as bencode from 'https://deno.land/x/[email protected]/mod.ts' | |
| import { gtin } from 'npm:cdigit' | |
| import ISBN from 'npm:isbn3' | |
| // zstd -d data/aa_isbn13_codes_20241204T185335Z.benc.zst | |
| const data = await Deno.readFile('data/aa_isbn13_codes_20241204T185335Z.benc').then(bencode.decode) | |
| for (const [key, value] of Object.entries(data as Record<string, Uint8Array>)) { | |
| console.log(key) |
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
| const media = await navigator.mediaDevices.getDisplayMedia({ | |
| audio: { | |
| echoCancellation: false, | |
| autoGainControl: false, | |
| noiseSuppression: false, | |
| }, | |
| }) | |
| const recorder = new MediaRecorder(media, { | |
| mimeType: 'video/webm', |
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
| [50, 100, 3].toSorted(Intl.Collator('en', { numeric: true }).compare) |
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 RSSParser from 'npm:rss-parser' | |
| await Deno.mkdir('audio', { recursive: true }) | |
| const feedURL = 'https://anchor.fm/s/1252b450/podcast/rss' | |
| const feed = await new RSSParser().parseURL(feedURL) | |
| for (const item of feed.items) { | |
| const { url } = item.enclosure | |
| console.log(url) |
NewerOlder