1 2 3 4 5 ··· 20 下一页
摘要: 推荐课程 底层向 GAMES 101/202... + openGL迷你渲染器tinyRender + 补充笔记 【双语】【TheCherno】游戏引擎 笔记 旋转是特殊的剪切 blender Lesson 3 变换矩阵 模拟 L3.blend.zip,记得去掉.zip后打开 ui_L3.py备份, 阅读全文
posted @ 2024-11-23 08:51 Nolca 阅读(105) 评论(0) 推荐(0)
摘要: NameError: name '_clsA__MyOuterImport' is not defined. Did you mean: '__MyOuterImport' ? 该错误是由 类clsA 内部的 Python 名称改写机制导致的:__MyOuterImport 以双下划线别名的形式被导 阅读全文
posted @ 2026-04-01 11:07 Nolca 阅读(3) 评论(0) 推荐(0)
摘要: 可以。先给一个总框架: yield 和 return 在生成器/迭代器里,语言大致分三类: yield 给循环,return 走“隐藏结束通道” yield 和 return 都走显式结果对象 根本没有“generator final return value”这个通道,return 只能结束 下面 阅读全文
posted @ 2026-04-01 10:24 Nolca 阅读(8) 评论(0) 推荐(0)
摘要: 最近在重构API风格,从静态配置到命令式。需要深入了解下python的迭代器。 gen_send_ex(): https://github.com/python/cpython/blob/main/Objects/genobject.c Q: send()不会触发next(),而next()一定会触 阅读全文
posted @ 2026-03-30 16:07 Nolca 阅读(2) 评论(0) 推荐(0)
摘要: # 命令式api for context in (gen := merge(({"old"}, {"new"}))): root = context.root node = context.node if context.diffType == "values_changed": merge.hoo 阅读全文
posted @ 2026-03-29 12:28 Nolca 阅读(3) 评论(0) 推荐(0)
摘要: 个人感想 因为使用 niri 桌面才接触的配置格式。用/-来注释掉一整个节点,比多行注释更实用! hjson可以去掉根括号,见: https://github.com/search?q=path%3A**%2F*.hjson&type=code 编程的脚手架越来越成熟了,如果要从头设计一个类似htm 阅读全文
posted @ 2026-02-27 15:36 Nolca 阅读(8) 评论(0) 推荐(0)
摘要: 前置知识 python中,我们可以用解包写法,定义一个函数的入参: def myFunc(*args: int, **kwargs: bool): ... type(args) # tuple[int] type(kwargs) # dict[str, bool] pythony有个定义或限制,位置 阅读全文
posted @ 2026-02-05 10:24 Nolca 阅读(5) 评论(0) 推荐(0)
摘要: a11y官网已失效的链接 见 https://www.a11yproject.com/checklist/#double-check-that-good-proximity-between-content-is-maintained ,the straw test 实际上指向一个已失效的违法网页😂 阅读全文
posted @ 2026-01-31 14:15 Nolca 阅读(6) 评论(0) 推荐(0)
摘要: 配置 tailscale sudo tailscale funnel --bg <oauth2-proxy端口> oauth2-proxy 国内没有个人免费的oidc provider,所以我建议用github就行(我试过gitee等,但它们只支持oauth2授权,不支持oidc登录) 保存以下配置 阅读全文
posted @ 2025-12-28 09:03 Nolca 阅读(36) 评论(0) 推荐(0)
摘要: 参考 https://zhuanlan.zhihu.com/p/1896980264669909081 2026-4-15 playwright v1.59.1 playwright install chromium firefox chrome-win64.zip firefox-win64.zi 阅读全文
posted @ 2025-12-08 09:34 Nolca 阅读(161) 评论(0) 推荐(0)
摘要: 方案 chawan,支持sixel与kitty graphics protocol的终端浏览器,积极开发中: https://chawan.net/#:~:text=Homebrew webtui,仅css的终端主题,严格遵循ch字符单位长度,易于与chawan集成: https://webtui. 阅读全文
posted @ 2025-11-19 21:58 Nolca 阅读(68) 评论(0) 推荐(0)
1 2 3 4 5 ··· 20 下一页