这篇文档由AI生成,具体细节可能有问题,遇到问题可以继续沟通。 This document is generated by AI, and there may be issues with the specific details. If you encounter any problems, please continue to communicate.
- Version: 1.0
- Date: 2025-01-XX
| <!DOCTYPE html> | |
| <html lang="zh-CN"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>批量XTH文件生成器</title> | |
| <style> | |
| * { | |
| box-sizing: border-box; | |
| margin: 0; |
| let when = args.widgetParameter || 'today' | |
| let now = new Date() | |
| if (when == 'tomorrow') { | |
| now.setDate(now.getDate() + 1); | |
| } | |
| let formatter = new DateFormatter() | |
| formatter.dateFormat = 'yyyyMMdd' | |
| let today = formatter.string(now) |
| %!PS-Adobe-2.0 | |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| % % | |
| % Mandelbrot set via PostScript code. Not optimized % | |
| % in any way. Centered in A4 paper. Escape time, B&W % | |
| % % | |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| /fun { |
| echo "" > commands | |
| ID=$(echo "$1" | sed 's/.*dg_\([0-9]*\).*/\1/g') | |
| echo "set sound enable off" >> commands | |
| echo "set analysis chequerplay evaluation plies 3" >> commands | |
| echo "import mat \"$1\"" >> commands | |
| echo "analyse match" >> commands | |
| echo "export match pdf \"reviews/$ID.pdf\"" >> commands | |
| echo "quit" >> commands | |
| /Users/ruben/fromsource/bg/gnubg-1.07.001/gnubg -c commands | |
| rm commands |
| blink1-tool --hsb 13,80,92 --setpattline 1 -m 754 | |
| blink1-tool --hsb 27,90,96 --setpattline 2 -m 802 | |
| blink1-tool --hsb 12,95,98 --setpattline 3 -m 982 | |
| blink1-tool --hsb 20,100,101 --setpattline 4 -m 959 | |
| blink1-tool --hsb 15,85,81 --setpattline 5 -m 782 | |
| blink1-tool --hsb 12,93,101 --setpattline 6 -m 758 | |
| blink1-tool --hsb 14,81,83 --setpattline 7 -m 992 | |
| blink1-tool --hsb 18,100,104 --setpattline 8 -m 627 | |
| blink1-tool --hsb 23,95,120 --setpattline 9 -m 992 | |
| blink1-tool --hsb 20,90,102 --setpattline 10 -m 897 |
| ---- | |
| -- A tab chooser for Safari written with AppleScript (yikes) and HammerSpoon | |
| ---- | |
| ---- | |
| -- Known issues: | |
| -- If a tab has double quotes, unsure about what will happen, the tab | |
| -- list creation is brittle. Single quote is fixed though |
| javascript: (() => {const toggles = tip => ({ key }) => key === '' && document.querySelectorAll('[data-tooltip]').forEach(el => el.dataset.tooltip === tip && el.click());document.body.onkeyup = toggles('Turn off microphone (⌘ + D)');document.body.onkeydown = toggles('Turn on microphone (⌘ + D)');})(); |
| javascript: (() => {const toggles = tip => ({ key }) => key === '' && document.querySelectorAll('[data-tooltip]').forEach(el => el.dataset.tooltip === tip && el.click());document.body.onkeyup = toggles('Turn off microphone (⌘ + D)');document.body.onkeydown = toggles('Turn on microphone (⌘ + D)');})(); |