Sawyer Zheng's Blog
  • Home
  • Archives
  • Tags
  • Categories
Sawyer Zheng's Blog
  • Home
  • Archives
  • Tags
  • Categories

Meow Edit

2024-03-01 约 711 字 预计阅读 2 分钟

批量编辑

参考:

  • https://github.com/meow-edit/meow/blob/master/EXPLANATION.org
  • becon state

流程简要介绍:

  1. 选择区域(first selection)
  2. grab

    • 为 multiple cursor, second selection 做准备
  3. 激活多个 cursor

    • 可用的操作

      1. b: 激活多个单词的 cursor
      2. x: 多行时,激活每行作为一个 cursor 使用
      3. f 和 - f : 通过搜索字符,创建 cursor
  4. 每个 cursor 的行为

阅读更多

Autogen

2024-02-28 约 145 字 预计阅读 1 分钟

参考资料

  • autogen 使用非 openai 模型:

    • Local LLMs and Autogen: An Uprising of Local-Powered Agents | by Baby Command…
    • microsoft/autogen#46 Integrate opensource LLMs into autogen

      • 一个关于如何让 autogen 接入 local models 的 issue

设置 key 和 参数等, llm_config

参考:

  • LLM Configuration | AutoGen

eg:

阅读更多

metagpt

2024-02-28 约 45 字 预计阅读 1 分钟

参考

  • 原理说明:

    • AI Agent框架——MetaGPT技术详解-CSDN博客
  • 官方教程

    • 概念简述 | MetaGPT
阅读更多

Functional Programming in Python

2024-02-19 约 2232 字 预计阅读 5 分钟

工具

工具列表

  • itertools
  • 其他内置函数

    • any, all
    • zip
    • callable :: 判断是否可作为函数使用
  • more_itertools
  • funcy

    • GitHub - Suor/funcy: A fancy and practical functional tools
    • funcy-pipe · PyPI
  • pipe

    • GitHub - JulienPalard/Pipe: A Python library to use infix notation in Python
    • 使用 Pipe(your_fun) 装换成可以通过 | 调用的函数
  • whatever

阅读更多

CentOS

2024-02-05 约 108 字 预计阅读 1 分钟

离线安装 docker 方法

参考:

  • Install Docker in offline scenarios on Centos/RHEL 7 to run Kubernetes for NGINX Controller
  • Offline install for docker on Centos 7 · GitHub
  • 官方:Install Docker Engine on CentOS | Docker Docs

步骤:

  1. 在有网络的机器上,安装 docker
  2. 安装 yum-utils

    • 提供 yumdownloader 命令
  3. 打包 docker 安装包和依赖

阅读更多
上一页 下一页
由 Hugo 强力驱动 | 主题 - Even © 2016 - 2025