This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 用户收藏系统 设计笔记 | |
| ## 技术方案 | |
| 把用户收藏、取消收藏的行为数据存到 CeresDB , CeresDB 建表的时候注意设置 [enable_ttl=false](https://docs.ceresdb.io/cn/sql/engine_options.html) 避免自动删除数据 。 | |
| 表结构设计: | |
| ``` | |
| CREATE TABLE fav ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 用户收藏系统 设计笔记 | |
| ## 技术方案 | |
| 把用户收藏、取消收藏的行为数据存到 CeresDB , CeresDB 建表的时候注意设置 [enable_ttl=false](https://docs.ceresdb.io/cn/sql/engine_options.html) 避免自动删除数据 。 | |
| 表结构设计: | |
| ``` | |
| CREATE TABLE fav ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env coffee | |
| > @w5/redis/KV | |
| @w5/uintbin/binUint | |
| R_NAME_EMBED = 'nameEmbed' | |
| R_NAME_LORA = 'nameLora' | |
| kvGet = (key, set)=> | |
| _li = Array.from set |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source "$HOME/.zinit/bin/zinit.zsh" | |
| run(){ | |
| [[ ! -f $1 ]] || source $1 | |
| } | |
| run ~/.p10k.zsh | |
| #run $ZINIT_HOME/../plugins/tj---git-extras/etc/git-extras-completion.zsh | |
| if [[ -r "~/.cache/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . ~/.bash_aliases | |
| eval $(rtx env) | |
| [ -z "$PS1" ] && return | |
| source ~/.zinit.zsh | |
| eval "$(rtx activate --quiet zsh)" | |
| autoload -Uz compinit && compinit -u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local wezterm = require 'wezterm' | |
| return { | |
| font = wezterm.font_with_fallback { | |
| { | |
| family='FiraCode Nerd Font Mono', | |
| weight="Bold" | |
| }, | |
| { | |
| family='Noto Sans CJK SC', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_name_or_path": "openai/clip-vit-large-patch14", | |
| "architectures": [ | |
| "ChineseCLIP" | |
| ], | |
| "direct_kd": false, | |
| "initializer_factor": 1.0, | |
| "logit_scale_init_value": 2.6592, | |
| "model_type": "clip", | |
| "num_layers": 3, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " 安装 vi +PlugInstall +qall | |
| " 升级 vi +PlugUpdate +qall | |
| " function! BitoCommand() | |
| " " 获取选中的文本 | |
| " let selected_text = getline("'<", "'>") | |
| " | |
| " " 复制到寄存器 | |
| " call setreg("+", selected_text) | |
| " | |
| " execute "normal! '[m`]+1put! =\"\"" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env coffee | |
| ### | |
| # 使用 chatgpt gpt4 编码 | |
| https://chat.openai.com/chat/9ba1710a-0ecd-4af2-991a-2fa9edf7f359 | |
| 请用 CoffeeScript 编写代码: | |
| 定义函数 merge(li),其参数 li 是一个由文本行组成的数组。函数需将位于两个 ``` 符号之间的行合并为一个元素(使用 '\n' 连接),同时将位于 <-- 和 --> 符号之间的行以相同方式合并。同时,需将分隔符号也拼接到合并后的行中。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Host dyy | |
| HostName bot.waimaimaster.com | |
| IdentityFile ~/.ssh/id_rsa4 | |
| User bot | |
| Host win | |
| IdentityFile ~/.ssh/id_rsa | |
| HostName win.xvc.com | |
| User administrator |