Skip to content

Instantly share code, notes, and snippets.

View emisjerry's full-sized avatar

emisjerry emisjerry

View GitHub Profile
@emisjerry
emisjerry / obsidian-callout.lua
Created January 9, 2025 02:05
obsidian-callout.lua filter for Pandoc to convert Obsidian callout into pandoc fenced divs
local stringify = (require "pandoc.utils").stringify
function BlockQuote (el)
start = el.content[1]
if (start.t == "Para" and start.content[1].t == "Str" and
start.content[1].text:match("^%[!%w+%][-+]?$")) then
_, _, ctype = start.content[1].text:find("%[!(%w+)%]")
el.content:remove(1)
start.content:remove(1)
div = pandoc.Div(el.content, {class = "callout"})
@emisjerry
emisjerry / Cmd-WonderBox.md.js
Last active January 9, 2025 02:03
Cmd-WonderBox.md for Obsidian plugin: WonderBox
<%*
let lstWonderBoxes = {
"🔥 tip" : "tip,技巧",
"ℹ️ info" : "info,資訊",
"✏️ note" : "note,筆記",
"⚠️ Warning" : "warning,警告",
"⚡ Danger" : "danger,危險",
"✅ Success" : "success,成功",
"❌ Error" : "error,錯誤",
"⛔ Critical" : "critical,嚴重錯誤",
@emisjerry
emisjerry / cj_jerry.txt
Created October 6, 2024 11:05
小小輸入法使用的倉頡碼表檔 cj_jerry.txt
This file has been truncated, but you can view the full file.
name=倉頡
key=abcdefghijklmnopqrstuvwxyz
len=5
push=SPACE
wildcard=z
# disable wildcard at first的缩写,设为1在第一码不应用万能键。
dwf=1
auto_clear=1
#commit 上屏设置,格式是 commit=全码不自动上屏 空码自动上屏码长 空码时上屏的码长
commit=1 5 0
@emisjerry
emisjerry / Anki-front-template.html
Created August 24, 2024 12:00
Anki正面板板腳本範例
{{Front}}
<br>
{{#Extra}}
<div id="EXTRA">
{{tts en_US voices=Microsoft_Mark:Extra}}
</div>
{{/Extra}}
{{^Extra}}
@emisjerry
emisjerry / From-Template-Book2.md
Created August 24, 2024 11:33
Obsidian Note From Template for new book

aliases: obsidianUIMode:

  • source category: "{{總類:choice:文學:流行:文化:生活:經管:科技}}" tags-sample: "{{文學分類:choice:小說:隨筆:日本文學:散文:詩歌:名著:港台}} {{流行分類:choice:漫畫:推理:繪本:青春:科幻:言情:奇幻:武俠}}" AutoNoteMover:
  • disable disabled rules:
  • all
@emisjerry
emisjerry / From-Template-Note.md
Created August 24, 2024 11:31
Obsidian Note From Template for new note

number headings: auto, first-level 1, max 6, contents ^toc, _.1.1. aliases: obsidianUIMode:

  • source tags:
  • "{{tags:multi:#resources:#areas:#blog:#yt-videos:#obsidian:#obsidian-plugins:#autohotkey:#windows:#tool:#dev:簡報}}" type: "{{type:choice:專案筆記:彙總筆記:閱讀筆記:原子筆記:Index}}" AutoNoteMover:
  • disabled
@emisjerry
emisjerry / yanki1.ahk
Created August 10, 2024 01:45
AutoHotkey v2 script. Generating .md file for Obsidian-Yanki plugin.
#Requires AutoHotkey v2.0
#SingleInstance Force
/*
1. 分號(;)或井號(#)開頭表示是註解行。
2. 斜線(/)開頭表示輸出資料夾
3. 單字
一行一個單字,自動到Yahoo!奇摩網站取回解釋、音標與詞類
park
@emisjerry
emisjerry / style-settings.json
Created April 25, 2024 01:16
Obsidian AnuPpuccin theme style settings
{
"CodeMirror Options@@cm-theme-selection": "cm-theme-solarized-light",
"CodeMirror Options@@cm-variable-2@@dark": "#6BDA5B",
"anuppuccin-theme-settings@@anuppuccin-theme-dark": "ctp-mocha",
"anuppuccin-theme-settings@@anuppuccin-accent-toggle": true,
"anuppuccin-theme-settings@@anuppuccin-theme-accents": "ctp-accent-sapphire",
"anuppuccin-theme-settings@@anp-header-color-toggle": true,
"anuppuccin-theme-settings@@anp-header-margin-toggle": true,
"anuppuccin-theme-settings@@anp-header-margin-value": 18,
"anuppuccin-theme-settings@@anp-layout-select": "anp-default-layout",
@emisjerry
emisjerry / my_test.lua
Created April 20, 2024 01:02
A Lua script for testing 'cfonts'
-- test for cfonts
--[[
--font, -f
Use to define the font face
$ cfonts --font block [ console, block, simpleBlock, simple, 3d, simple3d, chrome, huge, shade, slick, grid, pallet, tiny ]
--colors, -c
Use to define the font color
$ cfonts --colors red,blue [ system, black, red, green, yellow, blue, magenta, cyan, white, gray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, candy, Any hex color starting with #, e.g.: #ff8800 or #f80 ]
@emisjerry
emisjerry / Cmd-open-settings-by-uri.md
Created February 28, 2024 06:01
Cmd-open-settings-by-uri.md Open specified setting window by Advanced URI plugin

<%* /**