Skip to content

Instantly share code, notes, and snippets.

View Moyf's full-sized avatar

Moy Moyf

  • HangZhou
View GitHub Profile
@Moyf
Moyf / MakeItDone
Last active December 26, 2024 05:41
TP Script: Add done and finished date into Frontmatter (Property)
<%*
/*
- Author: Moy
- Create Time: 2024-07-30
- Description: 这是一个用来修改当前文件的元数据的范例脚本
- Version: 1.0
*/
// 配置项
@Moyf
Moyf / DataviewJS.md
Last active April 24, 2025 16:29
[Obsidian] Dataviewjs code for Obsidian to query specific term in current note

最简版本:

```dataviewjs
await dv.view("queryTermInFile", { term: "💡" })
```

最多选项版本: [term::💡] [info::灵感摘录]

@Moyf
Moyf / Snippet.lua
Created May 14, 2018 11:13
测试用的 Lua Snippet
function test(){
print "test"
}
# default.custom.yaml
# save it to:
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)
patch:
schema_list:
- schema: luna_pinyin # 朙月拼音
- schema: luna_pinyin_simp # 朙月拼音 简化字模式