9b63424740
- src/: HyperFrames 封装 CLI(hv)、组件、品牌样式、音频(TTS/混音)工具 - projects/: 各项目 project.yaml 与文案 - interactive/: 井字棋演示页 - .gitignore: 忽略 node_modules、构建产物与 HyperFrames 运行期缓存
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
title: 三个 Cursor 实用技巧
|
|
aspect: 横屏
|
|
fps: 60
|
|
lang: zh-CN
|
|
|
|
scenes:
|
|
- component: intro
|
|
duration: 3.5
|
|
props:
|
|
kicker: 技巧合集
|
|
title: 三个 Cursor 实用技巧
|
|
subtitle: 让你写代码少一半时间
|
|
|
|
- component: codedemo
|
|
duration: 8
|
|
props:
|
|
filename: fib.py
|
|
language: python
|
|
dimOthers: "true"
|
|
highlight: "3,4,5"
|
|
code: |
|
|
def fib(n):
|
|
"""斐波那契数列"""
|
|
if n < 2:
|
|
return n
|
|
return fib(n - 1) + fib(n - 2)
|
|
|
|
for i in range(10):
|
|
print(f"fib({i}) = {fib(i)}")
|
|
|
|
- component: terminal
|
|
duration: 6
|
|
props:
|
|
title: zsh
|
|
prompt: "$ "
|
|
script: |
|
|
[
|
|
{ "text": "python fib.py", "kind": "cmd" },
|
|
{ "text": "fib(0) = 0", "kind": "out" },
|
|
{ "text": "fib(1) = 1", "kind": "out" },
|
|
{ "text": "fib(8) = 21", "kind": "ok" },
|
|
{ "text": "9 行代码,递归一次跑通。", "kind": "dim" }
|
|
]
|
|
|
|
- component: lowerthird
|
|
duration: 3
|
|
props:
|
|
text: 技巧一:先描述意图,再让它动手
|
|
sub: 上下文质量决定了产出质量
|
|
|
|
- component: outro
|
|
duration: 4
|
|
props:
|
|
cta: 觉得有用就点个关注
|
|
handle: "@你的频道"
|
|
foot: 每周三更新一期 |