Skip to content

Instantly share code, notes, and snippets.

{
"description": "Dvorak 完整按键映射",
"manipulators": [
{
"from": {
"key_code": "q",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "quote" }],
"type": "basic"
@wallleap
wallleap / README.md
Last active July 21, 2026 13:27
编程工具主题字体等
@wallleap
wallleap / .zshrc
Created April 28, 2026 11:41
git alias
alias g="git"
alias gb="git branch"
alias ga="git add"
alias gaa="git add ."
alias gap="git add -p"
alias gs="git status"
alias gst="git status -sb"
alias gco="git checkout"
alias gcp="git cherry-pick"
alias gc="git commit"
@wallleap
wallleap / get_ip.md
Created April 28, 2026 06:41
获取 IP

fish

修改配置 ~/.config/fish/config.fish

# 获取 IP
# 获取本机局域网 IP
function myip
    ip -4 addr show scope global | grep inet | awk '{print $2}' | cut -d/ -f1 | head -n1
end
@wallleap
wallleap / README.md
Last active April 28, 2026 11:40
代理配置

WSL 代理配置

fish

编辑配置文件 vim ~/.config/fish/config.fish

# 获取 Windows 宿主机 IP
set -x hostip (cat /etc/resolv.conf | grep nameserver | awk '{print $2}')
@wallleap
wallleap / Fonts.css
Last active January 27, 2026 03:00
Fonts.css 跨平台 CSS 中文字体解决方案
/*
* https://github.com/zenozeng/fonts.css
* 跨平台 CSS 中文字体解决方案
*/
.font-hei {
font-family: -apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;
}
.font-kai {
font-family: Baskerville, Georgia, "Liberation Serif", "Kaiti SC", STKaiti, "AR PL UKai CN", "AR PL UKai HK", "AR PL UKai TW", "AR PL UKai TW MBE", "AR PL KaitiM GB", KaiTi, KaiTi_GB2312, DFKai-SB, "TW\-Kai", serif;
}
启用 Import maps
我们可以使用导入映射表 (Import Maps) 来告诉浏览器如何定位到导入的 vue:
```html
<script type="importmap">
{
"imports": {
"vue": "https://unpkg.com/vue@3/dist/vue.esm-browser.js"
}
<!-- Copy-paste in your Readme.md file -->
<a href = "https://github.com/Tanu-N-Prabhu/Python/graphs/contributors">
<img src = "https://contrib.rocks/image?repo = GitHub_username/repository_name"/>
</a>
Made with [contributors-img](https://contrib.rocks).
@wallleap
wallleap / 003-ESLint 代码检查.md
Created August 1, 2023 14:23
003-ESLint 代码检查.md

ESLint 是什么

ESLint 是一个代码检查工具,用来检查你的代码是否符合指定的规范

  • 例如: = 的前后必须有一个空格
  • 例如: 函数名后面必须有空格
  • 例如: await 必须用用在 async 修饰的函数内
  • 例如: ==必须转换成 3 个等
  • ........
According to the reference manual* you can use the DEFAULT CURRENT_TIMESTAMP and ON UPDATE CURRENT_TIMESTAMP clauses in column definitions:
With both DEFAULT CURRENT_TIMESTAMP and ON UPDATE CURRENT_TIMESTAMP, the column has the current timestamp for its default value and is automatically updated to the current timestamp.
whereas:
With a DEFAULT clause but no ON UPDATE CURRENT_TIMESTAMP clause, the column has the given default value and is not automatically updated to the current timestamp.
So, for example, you could use: