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
| gs -o output.pdf -sDEVICE=pdfwrite \ | |
| -dDownsampleColorImages=false \ | |
| -dDownsampleGrayImages=false \ | |
| -dDownsampleMonoImages=false \ | |
| -dAutoFilterColorImages=false \ | |
| -dAutoFilterGrayImages=false \ | |
| -dColorImageFilter=/FlateEncode \ | |
| -dGrayImageFilter=/FlateEncode \ | |
| -dMonoImageFilter=/CCITTFaxEncode \ | |
| -dEncodeColorImages=true \ |
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
| /* Reading mode */ | |
| .markdown-rendered h2:has(.cgpt-prompt) { | |
| border-left: 4px solid #4da3ff; | |
| padding-left: 10px; | |
| margin-top: 1.4em; | |
| margin-bottom: 0.6em; | |
| } | |
| .markdown-rendered h2:has(.cgpt-response) { | |
| border-left: 4px solid #ff9d4d; |
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
| // ==UserScript== | |
| // @name Google Sheets Dark Mode Lite | |
| // @namespace Violentmonkey Scripts | |
| // @match https://docs.google.com/spreadsheets/* | |
| // @grant none | |
| // @version 1.1 | |
| // @description Adds some basic tinting to the spreadsheet interface to save our eyeballs. | |
| // ==/UserScript== | |
| (function () { |
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
| // 1. Declare the global variable at the very top of the file | |
| EXPORT MenuOpen := 0; | |
| EXPORT CUSTOM_TOOLS() | |
| BEGIN | |
| LOCAL N, L; | |
| L := {"COMB", "PERM", "!", "RANDINT", "RANDOM"}; | |
| // 2. Check the lock: if it's 1, another instance is already running | |
| IF MenuOpen == 1 THEN |
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
| # DRY RUN COPY DIFF | |
| rsync -v -a -i -n --exclude ".git/" --exclude ".gitignore" ~/Source/ ~/Destination/ | |
| # REAL RUN COPY DIFF | |
| rsync -v -a -i --exclude ".git/" --exclude ".gitignore" ~/Source/ ~/Destination/ |
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
| # HOW TO USE: | |
| # This Anki add-on will calculate the kanji (order preserved) contained in a specified | |
| # set of note fields. To set this up, you can simply place this file within a folder | |
| # named "BulkAddKanji" under the Anki add-ons folder. When you start Anki up | |
| # fresh after doing so, a new menu item will be present when in browse mode, entitled | |
| # "Bulk-Add Kanji". Take note of the "fieldToPopulate" and "fieldsToExamine" | |
| # toward the top of this file for insight into where this add-on examines / populates. | |
| # The "fieldToPopulate" is both populated on the event of adding a new card, and can | |
| # also be triggered via the menus when in the browser. |
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
| // Both of the following approaches "invert" PDF colors when viewed in the browser. | |
| // Simply execute in browser console or create bookmarklet to trigger on-demand. | |
| // Approach #1 (Slightly more complex) | |
| function togglePDFDarkMode() { | |
| var cover = document.createElement("div"); | |
| let inversion = ` | |
| position: fixed; | |
| pointer-events: none; | |
| top: 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
| # HOW TO USE: | |
| # This Anki add-on will calculate the unique set of kanji contained in a specified | |
| # set of note fields. To set this up, you can simply place this file within a folder | |
| # named "BulkAddUniqueKanji" under the Anki add-ons folder. When you start Anki up | |
| # fresh after doing so, a new menu item will be present when in browse mode, entitled | |
| # "Bulk-Add Unique Kanji". Take note of the "fieldToPopulate" and "fieldsToExamine" | |
| # toward the top of this file for insight into where this add-on examines / populates. | |
| from aqt.qt import * | |
| from aqt.utils import showInfo |
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
| # HOW TO USE: | |
| # Simply create a new sibling folder named "BulkAddReadingsEnhanced" in the same | |
| # directory as the popular "Japanese Support" "3918629684" folder. Place this file | |
| # inside said "BulkAddReadingsEnhanced" folder. Once Anki loads, a "Bulk Add Readings | |
| # Enhanced" menu option will be visible, driven by the config used for "Japanese Support". | |
| # This script requires that the srcFields and dstFields have the same number of | |
| # entries. The first srcField maps to the first dstField, etc. This allows | |
| # for unlimited reading generations within a single note type within Anki. | |
| # Should the authors of the original Japanese Support add-on see this, by | |
| # all means, feel free to re-integrate this into the base add-on. |