Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
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
| > Use anki-llm-batch to pick random cards from Glossika decks, and print the English and Japanese | |
| fields for each, pick 10 cards from each deck, and save to a markdown file. | |
| ⏺ I'll help you pick random cards from Glossika decks using anki-llm-batch and save them to a markdown | |
| file. | |
| Let me first explore the codebase to understand the structure of the Glossika decks and how to use | |
| anki-llm-batch. | |
| ⏺ Bash(anki-llm-batch --help) |
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
| let mut command = Command::new("chromedriver"); | |
| command.kill_on_drop(true); // Useful for killing the process in case of a panic | |
| command.stdout(Stdio::piped()); | |
| let mut child = command.spawn().expect("chromedriver failed to start"); | |
| // [...] read stdout etc. | |
| child.start_kill()?; | |
| child.wait().await?; |
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
| use itertools::Itertools; | |
| use std::fmt; | |
| #[derive(Debug)] | |
| struct Range { | |
| start: i32, | |
| end: i32, | |
| } | |
| impl Range { |
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
| /* | |
| * Add this custom style on the page https://escapefromtarkov.gamepedia.com/Customs_Interactive_Map | |
| * with extension like Stylus to remove all the clutter and view map in fullscreen. | |
| */ | |
| .mw-body-content { | |
| z-index: initial; | |
| } | |
| #map { | |
| visibility: visible; |
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
| function getFromEnv(prop: string): string { | |
| const val = process.env[prop] | |
| if (val) { | |
| return val | |
| } else { | |
| throw new Error(`Expected ${prop} to exist in env`) | |
| } | |
| } | |
| type Config = { |
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 | |
| set -euo pipefail | |
| murobbs() { | |
| curl -s 'https://murobbs.muropaketti.com/forums/naeytoet-tulostimet-ja-muut-lisaelaitteet.207/index.rss?prefix_id=8' |\ | |
| xml2json |\ | |
| ramda '.rss.channel.item' 'project [\title, \pubDate, \link]' 'map assoc \source \murobbs' | |
| } |
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 | |
| set -euo pipefail | |
| murobbs() { | |
| curl -s 'https://murobbs.muropaketti.com/forums/naeytoet-tulostimet-ja-muut-lisaelaitteet.207/index.rss?prefix_id=8' |\ | |
| xml2json |\ | |
| ramda '.rss.channel.item' 'project [\title, \pubDate, \link]' 'map assoc \source \murobbs' | |
| } |
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 | |
| curl -s https://restcountries.eu/rest/v2/all | \ | |
| html-table -o \ | |
| --cols flag,code,name,population,area,capital,tld,languages \ | |
| --col.flag.cell '<div style="text-align: center"><img src="${flag}" height="20" /></div>' \ | |
| --col.flag.header '' \ | |
| --col.flag.width 50 \ | |
| --col.code.width 40 \ | |
| --col.code.cell '${alpha2Code}' \ |
NewerOlder