| name | grill-me |
|---|---|
| description | 对用户的方案或设计进行毫不留情、永不停止的深度盘问(grill),不断地找出新问题来提问用户。当用户希望对方案进行压力测试、接受设计评审,或提到“grill me”时使用。 |
规则:
- 对用户进行深入、连续的追问,覆盖用户所提内容的各个方面。沿着设计决策树逐步展开,逐一解决各项决策之间的依赖关系。
- 对于每个问题,都给出推荐答案。
- 一次只问一个问题,但用户回答这个问题之后继续问下一个问题。
| name | grill-me |
|---|---|
| description | 对用户的方案或设计进行毫不留情、永不停止的深度盘问(grill),不断地找出新问题来提问用户。当用户希望对方案进行压力测试、接受设计评审,或提到“grill me”时使用。 |
规则:
| /* eslint-disable @typescript-eslint/no-unsafe-return */ | |
| /* eslint-disable @typescript-eslint/no-unsafe-member-access */ | |
| /* eslint-disable @typescript-eslint/no-explicit-any */ | |
| import * as fs from 'fs' | |
| import { Buffer } from 'buffer' | |
| // ========== 命令行参数解析 ========== | |
| const [tokenizerFilePath] = process.argv.slice(2) |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>CSS Hard Problems - height: auto & Scroll items</title> | |
| <meta charset="UTF-8" /> | |
| <meta | |
| name="viewport" | |
| content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0, user-scalable=no" | |
| /> | |
| <style> |
| script_name = '还原卡拉 OK 特效' | |
| script_description = '将字幕恢复到应用卡拉 OK 模板前的状态。' | |
| script_author = 'ipid君 <https://github.com/ipid>' | |
| script_version = '1.0' | |
| --[[ 判断 text 是否以 suffix 为结尾 ]] | |
| local function endsWith(text, suffix) | |
| return text:sub(-#suffix) == suffix | |
| end |
| from pathlib import Path | |
| import argparse | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('--root', type=Path, default='.') | |
| parser.add_argument('--ext', type=str, default='.ts') | |
| parser.add_argument('--record', '--archive', '--recording', action='store_true', default=False) | |
| parser.add_argument('--out-m3u8', type=Path, default=Path('./list.m3u8')) | |
| args = parser.parse_args() |
| /* | |
| 使用如下的 aria2 命令行来下载 list.txt 即可: | |
| aria2c --all-proxy http://127.0.0.1:7890 --header="cookie: CloudFront-Key-Pair-Id=OVUEIDT7LTF98UIWPOEZ; CloudFront-Policy=A3JTdGF0TcxffroJKiuiuhoyJnbvT9BYU90juitdfjNibVCf5t678ominh89X19XX9; CloudFront-Signature=Uvoe9cjwf9vn00239n8c83398rfn89w8vne048hgn0revm09e4thg8nvmrp0_; MEMBER_ID=2efce3471928379323r2cew3rfdz; TODOFUKEN_CODE=114514" --input-file=list.txt --max-concurrent-downloads=16 --max-connection-per-server=16 --keep-unfinished-download-result=false --auto-file-renaming=false | |
| 然后使用如下的 ffmpeg 命令行来合并 .ts 分片: | |
| ffmpeg -i list.m3u8 -c copy -movflags +faststart out.mp4 |
| import asyncio | |
| from asyncio import Future | |
| from collections import deque, namedtuple | |
| QueueGetResult = namedtuple('QueueGetResult', ['item', 'isOpening']) | |
| class CloseableQueue: | |
| def __init__(self): | |
| # 当前正在等待结果的协程的 Future |
| #!/bin/bash | |
| export CGO_ENABLED=0 | |
| if [[ -n "$1" ]]; then | |
| LDFLAGS="-X main.Commit=-$(git rev-parse --short HEAD)" | |
| else | |
| LDFLAGS="" | |
| fi | |
| go mod download & rm -f build/*.zip & readarray -t goSupported <<< "$(go tool dist list)" |
| import sys | |
| from pathlib import Path | |
| from argparse import ArgumentParser | |
| from dataclasses import dataclass | |
| @dataclass | |
| class Arguments: | |
| upper: bool | |
| separator: str |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <cstdint> | |
| #include <iostream> | |
| #include <memory> | |
| #include <gmssl/oid.h> | |
| #include <gmssl/sm2.h> |