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 | |
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = ["google-genai>=1.70"] | |
| # /// | |
| """GEMINI_API_KEY=xxx uv run batch_tts.py book.txt output/ [--voice Kore] [--model gemini-3.1-flash-tts-preview] [--chunk-size 4000] | |
| Submits TTS chunks to Gemini Batch API (50% cheaper), polls until done, saves WAV files. | |
| """ | |
| import argparse |
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 | |
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = ["google-genai>=1.70"] | |
| # /// | |
| """GEMINI_API_KEY=xxx uv run batch_tts.py book.txt output/ [--voice Kore] [--model gemini-3.1-flash-tts-preview] [--chunk-size 4000] | |
| Submits TTS chunks to Gemini Batch API (50% cheaper), polls until done, saves WAV files. | |
| """ | |
| import argparse |
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
| TypeScript 22 mins █████████████████▍░░░ 82.8% | |
| JSON 4 mins ███▌░░░░░░░░░░░░░░░░░ 17.2% |
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/python3 | |
| # for a list as expected in https://gist.github.com/drewbitt/43cab7b6c0792b30a46d65c226a741db | |
| import base64 | |
| import argparse | |
| import urllib.parse | |
| import httplib2 | |
| from pathlib import Path | |
| parser = argparse.ArgumentParser() |
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
| const express = require('express') | |
| const fileUpload = require('express-fileupload') | |
| const createTorrent = require('create-torrent') | |
| const parseTorrentFile = require('parse-torrent-file') | |
| var parsed | |
| const app = express() | |
| app.use(fileUpload()) | |
| app.post('/upload', function(req, res) { |
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/python3 | |
| import httplib2 | |
| import base64 | |
| import re | |
| import argparse | |
| from bs4 import BeautifulSoup | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("madokami_url",nargs=1) | |
| parser.add_argument("-group", "--group") |