Argument passing 指的是方法传参,对象是如何被传送到方法作为输入的。
下面是传参的几个要点:
Arguments are passed by automatically assigning objects to local variable names.
参数被传递后自动将赋值给局部变量名
Assigning to argument names inside a function does not affect the caller
在方法内部对参数进行赋值,不会影响调用者
Read more ...
不同预设 USING THE DIFFERENT PRESETS
不同的预设命名都是不同的,开头除了N,之外还有C,F之类,上面演示中N代表的是 Nikon。其他不同字母代表意义如下:
C - Canon
F - Fuji
L - Leica
N - Nikon
O - Olympus
S - Standard
SO - Sony
相同预设不同版本 FILM PRESET VERSIONS
每一种预设都包含多种版本,用来适应曝光,光照等等因素的影响。每一种胶片模拟都有一个”Normal”的版本,以他的名字命名,不包
Read more ...
曾经收藏过的一篇文章 How to write a Git commit message,今天无意中点开却发现网站无法访问,故而使用 Google Cache 恢复该文。后来发现作者网站虽然无法访问,但是作者将网站开源 了。
Introduction: Why good commit messages matter
If you browse the log of any random git repository you will probably find its commit messages are more or less a me
Read more ...
Sometimes you need more accounts than one for access to Github or Gitlab and similar tools. For example you can have one account for your projects at home/github and second account for your company/gitlab.
Generate first key
ssh-keygen -t rsa -C "[email protected]"
When y
Read more ...
用 New API 打造个人 AI 网关:统一管理所有大语言模型接口
这段时间我同时用着好几个大语言模型服务:日常写作和代码靠 [[Claude]],轻量任务交给 [[Codex]],搜索增强用 [[Antigravity]],还有几个本地跑着 [[Ollama]] 的小模型供离线场景使用。每个平台各自的 API Key 散落在项目环境变量里,月底要去好几个后台分别对账,想横向对比两个模型的输出还得打开不同的网页或客户端来回切换,很费事。