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 | |
| # Usage: echo '$$E = mc^2$$' | tex2svg > einstein.svg | |
| # 遇到错误立即退出 | |
| set -e | |
| # 检查依赖工具 | |
| command -v xelatex >/dev/null 2>&1 || { echo >&2 "Error: xelatex not found."; exit 1; } | |
| command -v pdf2svg >/dev/null 2>&1 || { echo >&2 "Error: pdf2svg not found."; exit 1; } |
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
| sticky yes | |
| gap 40 5 5 5 | |
| autogroup 0 "stalonetray" | |
| unbind-key all | |
| unbind-mouse all | |
| bind-key CMS-q quit | |
| bind-key CMS-r restart |
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 "/template.typ": doc-template | |
| #doc-template( | |
| title: "标题", | |
| date: "2025-09-27", | |
| body: [ | |
| = 章节 |
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 imaplib | |
| import smtplib | |
| import time | |
| import os | |
| import email | |
| from email.header import decode_header | |
| from email.utils import parseaddr | |
| from email.mime.text import MIMEText | |
| from email.header import Header | |
| import json |
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
| /*************************************************************************** | |
| * _ _ ____ _ | |
| * Project ___| | | | _ \| | | |
| * / __| | | | |_) | | | |
| * | (__| |_| | _ <| |___ | |
| * \___|\___/|_| \_\_____| | |
| * | |
| * Copyright (C) Daniel Stenberg, <[email protected]>, et al. | |
| * | |
| * This software is licensed as described in the file COPYING, which |
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
| # pip install boto3 Pillow pyperclip | |
| # --- 默认配置(可以为空,用户将在 GUI 中输入) --- | |
| BUCKET = '' | |
| REGION = '' | |
| ACCESS_KEY = '' | |
| SECRET_KEY = '' | |
| ENDPOINT = '' | |
| PREFIX = 'myuploads/' | |
| VISIT_ENDPOINT = '' |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <event2/event.h> | |
| #include <event2/http.h> | |
| #include <event2/buffer.h> | |
| #include <event2/util.h> | |
| #define SERVER_PORT 8080 |
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
| qemu-system-x86_64 \ | |
| -machine q35,accel=kvm \ | |
| -enable-kvm \ | |
| -cpu host \ | |
| -smp 2 \ | |
| -m 4096 \ | |
| -drive id=mydrive0,if=none,file="./hdd.qcow2",format=qcow2 \ | |
| -device ide-hd,drive=mydrive0 \ | |
| -netdev user,id=mynet0 \ | |
| -device e1000-82545em,netdev=mynet0,mac=52:79:a0:d2:15:02 \ |
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
| {-# LANGUAGE ForeignFunctionInterface #-} | |
| {-# LANGUAGE LinearTypes #-} | |
| {-# LANGUAGE QualifiedDo #-} | |
| import Data.Type.Bool | |
| import Foreign.Ptr (Ptr) | |
| import Foreign.C.Types (CDouble) | |
| import Foreign.Marshal.Alloc (free) |
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
| #lang racket | |
| (define-syntax define-macro | |
| (lambda (x) | |
| (syntax-case x () | |
| ((_ (macro . args) body ...) | |
| #'(define-macro macro (lambda args body ...))) | |
| ((_ macro transformer) | |
| #'(define-syntax macro | |
| (lambda (y) |
NewerOlder