Dev
搜索

Dev

python开发环境多版本管理
发表于2026-08-18
pyenv-win安装1Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1" 查看版本1pyenv install --list 安装1pyenv install 3.12 设置1pyenv global 3.12 临时使用1pyenv shell 3.10.14
opencode自定义模型
发表于2026-06-18
修改配置 ~\.config\opencode\opencode.jsonc 123456789101112131415161718192021222324{ "$schema": "https://opencode.ai/config.json", "model": "Agnes/agnes-2.0-flash", "provider": { "Agnes": { "npm": "@ai-sdk/openai-compatible", "name": "Agnes", "options": { "baseURL": "http...
pdf操作
发表于2026-06-04
pdf按页码截取1gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dFirstPage=1 -dLastPage=19 -sOutputFile=out.pdf source.pdf
pdf按章节拆分到文件
发表于2026-05-03
将pdf按照标题内容等进行切分 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155import fitz # PyMuPDFimport osimport redef sanitize_filename(name): """去除文件名中不允许的字符""" ...
svg转png
发表于2026-04-09
1convert -background none home.svg home.png
taro+tailwind开发记录
发表于2026-04-07
版本 taro 4 tailwind 3 (当前节点我发现ai对3更熟悉) 安装 先安装taro https://docs.taro.zone/docs/GETTING-STARTED 配置tailwind https://tw.icebreaker.top/docs/quick-start/install#taro 注意 当前scss版本不建议使用@import,而应该使用@use引入tailwind的样式
hono js 使用记录
发表于2026-03-31|ts
OpenAPIHono遇到的问题1234567891011121314151617181920const getChatRoute = createRoute({ method: 'get', path: '/chat', request: { query: z.object({ question: z.string().min(1, 'Question is required'), }), }, responses: { 200: { description: '成功返回AI回答', content: { 'application/json': { schema: ChatResponseSchema, }, }, }, },...
cmder使用记录
发表于2026-03-08|cmder
中文字体重叠默认条件下我发现cmder有时候会中文字体重叠 设置-通用-字体取消勾选Compress long strings to fit space
flutter getx使用记录
发表于2026-03-01|flutter
全局注册1234567void main() async { await GetStorage.init(); await Get.put(DeviceController(), permanent: true).ensureInitialized(); Get.lazyPut(() => AuthController()); Get.lazyPut(() => LoginDialogController(), fenix: true); runApp(const MainApp());} fenix参数是让这个控制器销毁后恢复之前的状态,取了一个很好的名字:凤凰 页面注入通过binding可以注入,这样的好处是在页面打开时候他会自动创建,等页面退出他会自动销毁 12345678GetPage( name: AppRoutes.talentApply, page: () => const TalentApplyScreen(), binding: BindingsBuilder(() { ...
统计代码行数
发表于2026-02-27|git
1git ls-files "lib/*.dart" | xargs wc -l 还有专用工具 12sudo apt install cloccloc application/
12…103
avatar
developer
AI相伴的开发者博客
文章
1025
标签
727
分类
35
Follow Me
公告
This is my Blog
最新文章
python开发环境多版本管理2026-08-18
opencode自定义模型2026-06-18
pdf操作2026-06-04
pdf按章节拆分到文件2026-05-03
svg转png2026-04-09
分类
  • apicloud3
  • bootstrap8
  • cmder1
  • cocos2d-js5
  • createjs17
  • day45
  • docker16
  • egret14
标签
注意要点 th 配置 判断一个 git rc.local 对象 常见问题 问题 引用传递 require_once() centos 区别 animate动画 hset命令 trim 每隔一段时间 要点 pgsql 图片 golang swoft goaccess getx 显示 微信开发 设计模式 Filter 高度可自定义 开放平台 发红包 to grep 测试代码 require() call 控制器 ioc array_column 时间复杂度
归档
  • 八月 2026 1
  • 六月 2026 2
  • 五月 2026 1
  • 四月 2026 2
  • 三月 2026 3
  • 二月 2026 5
  • 一月 2026 3
  • 十二月 2025 5
网站信息
文章数目 :
1025
最后更新时间 :
© 2025 - 2026 By developer框架 Hexo 8.1.1|主题 Butterfly 5.5.4
搜索
数据加载中