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
| <!-- AIGC: Generated by Gemini --> | |
| <!DOCTYPE html> | |
| <html lang="zh"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>音符计算练习</title> | |
| <!-- A4 双页打印,每页上下布局,行高调整,sci行浅蓝背景;自动生成Helmholtz题目与完整答案 --> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <!-- 更新:引入 EB Garamond (正文) 和 Noto Music (音乐符号) 字体 --> |
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
| docker compose run --entrypoint bash tex | |
| pdfjam --no-tidy --nup 2x1 --b4paper --landscape --frame true --trim '6.5mm 25mm 6.5mm 10mm' --outfile o.pdf nst.pdf '6-' |
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
| FROM codercom/code-server:bookworm | |
| # Use root to install tools | |
| USER 0 | |
| # Install C++ | |
| RUN --mount=type=tmpfs,target=/dev/shm bash <<EOF | |
| set -euxo pipefail | |
| cd /dev/shm |
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
| $('li.search_result_img_box_inner').each((i, e) => { | |
| $(e).css('background', '') | |
| $(e).css('opacity', '') | |
| v = $(e).find('span.strike').text().replace(/[,円]/g, '') | |
| p = Number(v) | |
| cx = Math.min(Math.max(0, Math.floor(p / 500)), 16).toString(16) | |
| $(e).css('background', `#f${cx}4`) | |
| b = $(e).find('ul[data-is_bought=true]') | |
| if (b.length > 0) { | |
| $(e).css('opacity', '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
| # wav to opus with pic -> mp4 | |
| find -name '*.wav' -print0 | xargs -0 -i -P0 sh -c 'ffmpeg -y -loop 1 -r 1/50 -i 'EXデータ/高画質パッケージ.jpg' -i "$1" -shortest -vf scale=-1:720,fps=1,format=yuv420p -c:a libopus -b:a 192k -c:v libx264 "${1%.wav}.mp4"' -- {} |
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
| Mozilla/5.0 BiliDroid/5.15.0 ([email protected]) |
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 <string.h> | |
| #include <stdio.h> | |
| #include <errno.h> | |
| #include <sys/mman.h> | |
| int main() | |
| { | |
| #if 0 | |
| const size_t addr = 0x00000100f0000000; |
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 python3 | |
| from captcha.image import ImageCaptcha | |
| cap = ImageCaptcha(width=400, height=100, fonts=['/usr/share/fonts/opentype/source-code-pro/SourceCodePro-Regular.otf']) | |
| img = cap.generate_image('13800138000') | |
| img.show() |
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
| #define WIN32_LEAN_AND_MEAN | |
| #include <Windows.h> | |
| #ifdef MB_DEBUG | |
| #define INTERVAL (500) | |
| #else | |
| #define INTERVAL (30 * 1000) | |
| #endif | |
| #ifdef MB_DEBUG |
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
| fn = '/dev/shm/one-line.ogg' | |
| import speech_bot | |
| bot = speech_bot.speech('google-conf.json') | |
| import sys | |
| t = ''.join(sys.argv[1:]) | |
| bot.save('ja', t, fn) | |
| #import os |
NewerOlder