Ryan

Results 72 issues of Ryan

# 解决 `oh-my-zsh` `git` 进入目录卡顿问题 ## 问题描述 使用`oh-my-zsh`进入一个大型`git`仓库的时候会非常的慢,并且执行命令也会非常的卡 ## 问题原因 是因为在进入目录的时候,`oh-my-zsh`会去获取`git`的更新信息,当仓库很大的时候就会非常慢了 ## 解决方案 设置 oh-my-zsh 不读取文件变化信息(在 git 项目目录执行下列命令) ```sh $ git config --add oh-my-zsh.hide-dirty 1 ``` 如果你还觉得慢,可以再设置 oh-my-zsh 不读取任何 git...

git
macos
problem
oh-my-zsh
cmd

# 使用 Python 合并多个 PDF 帮朋友将多个pdf合并成一个,在线工具要么收费,要么不好用,于是自己动手用 python 写一个合并的脚本 人生苦短,我用 python ----- ## 开发环境 - macOS 10.14.6 - python 3.7.7 ## 安装 pypdf2 ```sh pip3 install pypdf2 ``` ## 编写脚本 脚本内容如下,非常好理解了...

python

# Windows 下多版本管理 官网上安装多个版本,比如 ![image](https://user-images.githubusercontent.com/7806458/223152569-d1f485af-80cd-4ece-85ad-ba2a33508492.png) 使用`py`命令代替`python` 使用 3.10: ```cmd py -3.10 Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or...

python

# Machine Learning 学习资料 ## 书籍 - [MIT Deep Learning Book](https://github.com/janishar/mit-deep-learning-book-pdf) ## 视频 - [(强推|双字)2022吴恩达机器学习Deeplearning.ai课程](https://www.bilibili.com/video/BV1Pa411X76s?p=1) ## 文章 ### RNN & LSTM & GRU - [Illustrated Guide to Recurrent Neural Networks](https://medium.com/towards-data-science/illustrated-guide-to-recurrent-neural-networks-79e5eb8049c9)...

ML

- ref: https://developer.apple.com/metal/tensorflow-plugin/

macos
ML

# 如何将 Submodule 更新为 https 协议 1. 将`.gitmodules`文件中的 url 改为 https,如: ``` [submodule "vendor/engines/fat_free_crm"] path = vendor/engines/fat_free_crm url = https://github.com/fatfreecrm/fat_free_crm.git ``` 2. 执行`git submodule sync`更新 .git 配置 再初始化 submodule 就ok了...

git

# NumPy 学习笔记 ## 相关资源 - NumPy Documentation including a basic introduction: [NumPy.org](https://numpy.org/doc/stable/) - A challenging feature topic: [NumPy Broadcasting](https://numpy.org/doc/stable/user/basics.broadcasting.html) ## 创建 Vector ### 使用长度创建 Vector ```py # NumPy routines...

python
ML

# 使用不同账号将本地内容推送到 Github ## 问题描述 我有2个 Github 账号,在提交不同的库时,想使用不同的 Github 账号 ## 解决方案 ### 方式一 ssh 方式使用 config 如果仓库使用的是 ssh,切对应 Github 账号都配置了密钥,那么可以使用如下命令,对不同的仓库设置不同的用户名和邮箱地址 ``` git config user.name her_username git config user.email her_email...

git
github

最近计划抽空余时间重读一下经典书籍《SICP》,看到习题 2.6 尝试解答记录一下 题目如下: > **练习2.6** 如果觉得将序对表示为过程还不足以令人如雷灌顶,那么请考虑,在一个可以对过程做各种操作的语言里,我们完全可以没有数(至少在只考虑非负整数的情况下),可以将0和加一操作实现为: > ```scheme > (define zero (lambda (f) (lambda (x) x))) > > (define (add-1 n) > (lambda (f) (lambda (x) (f ((n f)...

sicp

# macOS 如何设置触控板追踪速度超过系统设置上限 ## 问题描述 macOS 触控板体验非常好,但是追踪速度即使设置到最大个人还是觉得慢了一些 ## 解决方案 该配置存放于`~/Library/Preferences/.GlobalPreferences.plist` 但是不用手动去修改文件的内容,使用如下命令进行修改: ```sh defaults write -g com.apple.trackpad.scaling -float 5.0 ``` 系统设置里的最大值的是3,可以参考这个值进行调整,也可以使用`defaults read -g com.apple.trackpad.scaling`来读取当前设置的值 同样的,可以使用如下命令修改鼠标追踪速度: ```sh defaults write -g com.apple.mouse.scaling -float...

macos