Skip to content

Instantly share code, notes, and snippets.

View Moyf's full-sized avatar

Moy Moyf

  • HangZhou
View GitHub Profile
@Moyf
Moyf / Moy-推特剪藏.css
Last active December 22, 2025 07:19
Obsidian Clipper template - Twitter(X)
/* ! Twitter 剪藏块 */
/* * 结合了 Callout 和 Cssclasses 所以放到一起 */
/* Callout */
/* 处理链接标签 */
.cm-embed-block.cm-callout:has(.callout[data-callout="twitter"]) {
pointer-events: fill;
@Moyf
Moyf / README.md
Last active December 20, 2025 03:12
An interactive nyan can progress

How to use

Enable datacore plugin.
Put the jsx and css files together in your vault.

Then put this codeblock in your note. Remember to replace the scriptPath path.

```datacorejsx
const scriptPath = "PATH/TO/dc-nyanCatProgress-draggable.jsx";  // ⬅️ replace it with your jsx file path!
const target = dc.fileLink(scriptPath);
@Moyf
Moyf / Moy-PaperTextureBackground.css
Last active November 19, 2025 06:51
Obsidian CSS Share: Paper texture background
/* Paper texture image */
:root {
--paper-texture: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iNTA4bW0iCiAgIGhlaWdodD0iMjg1Ljc1bW0iCiAgIHZpZXdCb3g9IjAgMCA1MDggMjg1Ljc1IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmcxIgogICB4bWw6c3BhY2U9InByZXNlcnZlIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzCiAgICAgaWQ9ImRlZnMxIj48ZmlsdGVyCiAgICAgICBzdHlsZT0iY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzOnNSR0IiCiAgICAgICBpZD0iZmlsdGVyMTAxIgogICAgICAgeD0iMCIKICAgICAgIHk9IjAiCiAgICAgICB3aWR0aD0iMSIKICAgICAgIGhlaWdodD0iMSI+PGZlVHVyYnVsZW5jZQogICAgICAgICBpZD0iZmVUdXJidWxlbmNlMTAxIgogICAgICAgICBiYXNlRnJlcXVlbmN5PSIwLjAyMDAwMDAwMDAwMDAwMDAxMSIKICAgICAgICAgbnVtT2N0YXZlcz0iOSIKICAgICAgICAgc2VlZD0iMTAiCiAgICAgICAgIHR5cGU9ImZyYWN0YWxOb2lzZSIgLz48ZmVEaWZmdXNlTGlnaHRpbmcKICAgICAgICAgaWQ9ImZlRGlmZnVzZUxpZ2h0aW5nMTAxIgogICAgICA
@Moyf
Moyf / Dataview example.js
Created October 11, 2025 11:47
DV Button Examples
// put me inside ```dataviewjs``` code block
let content = ""
const baseFolder = "PeriodicNote/晨间日记/"
const dateFormat = "M月/M月d日"
const yesterday = baseFolder+dv.func.dateformat(dv.date('yesterday'), dateFormat)
const today = baseFolder+dv.func.dateformat(dv.date('today'), dateFormat)
content += `<a class="internal-link prev-daily elegant-btn ready" href="${yesterday}">🌙昨天</a>`;
@Moyf
Moyf / DaVinci Resolve Scripting Doc.txt
Created September 16, 2025 16:57 — forked from X-Raym/DaVinci Resolve Scripting Doc.txt
DaVinci Resolve Scripting API Doc v20.2
Last Updated: 18 Aug 2025
-------------------------
In this package, you will find a brief introduction to the Scripting API for DaVinci Resolve Studio. Apart from this README.txt file, this package contains folders containing the basic import
modules for scripting access (DaVinciResolve.py) and some representative examples.
From v16.2.0 onwards, the nodeIndex parameters accepted by SetLUT() and SetCDL() are 1-based instead of 0-based, i.e. 1 <= nodeIndex <= total number of nodes.
Overview
--------
As with Blackmagic Fusion scripts, user scripts written in Lua and Python programming languages are supported. By default, scripts can be invoked from the Console window in the Fusion page,
@Moyf
Moyf / Moy-bases-as-list-en.css
Last active August 27, 2025 17:21
Bases - View notes created and modified on the day
/* Bases list style and element hiding */
/* Original idea and most code from: https://discord.com/channels/686053708261228577/716028884885307432/1405933574149898402 */
/* Moy made some adjustments */
.workspace-split.mod-sidedock.mod-right-split .workspace-tabs:not(.mod-top) .bases-view,
.bases-ordered-list,
.bases-embed[alt~="ordered-list"] {
.query-toolbar-item:not(.mod-views) { display: none; }
@Moyf
Moyf / base-Projects-Template.base
Last active December 10, 2025 20:39
A Bases Template for Project Tracking or Task Management
filters:
and:
- "!status.isEmpty()"
formulas:
prog_percent: progress / 100
prog_text: if(formula.prog_percent > 0, (formula.prog_percent * 100).round(), "0") + "%"
prog_bar: if(formula.prog_percent * 10 > 0, "▰".repeat (number(formula.prog_percent * 10))) + if((formula.prog_percent * 10).floor() < 10, "▱▱▱▱▱▱▱▱▱▱".slice( 0, 10 - (formula.prog_percent * 10).floor()), "").toString()
lucide-icon: if(status=="In Progress", "arrow-right".icon(), if(status=="Focus", "flame".icon(), if(status=="On Hold", "pause".icon(), "")))
prog: formula.prog_bar
sortByStatus: |-
/* ! Moy-属性区调整.css */
/* created: 2025-07-31 */
/* v1.0 */
/* ! 加宽 &双栏 */
/* scope 确保只影响中间区域 */
@scope (.workspace-split.mod-root) {
/* 增加宽度 */
@Moyf
Moyf / ConsolideCommandsRunner.js
Last active July 28, 2025 09:15
CCR 多重命令执行者 - 用于整合和管理多个 Obsidian 插件的工具和模板
/**
* @file CCR 多重命令执行者 - 用于整合和管理多个 Obsidian 插件的工具和模板
* (All in One / Consolidate Commands Runner)
*
* @description
* 这个脚本用于集中管理和访问以下 Obsidian 插件的资源:
* - Components:基础组件和脚本
* - Form Flow:表单文件
* - Templater:模板文件
* - QuickAdd:快速添加模板
@Moyf
Moyf / TP-Insert Heading.js
Last active July 9, 2025 05:10
搜索并插入标题链接
<%*
// 这是个用于 Templater 插件的脚本模板吗,请保存到自己的库里,将后缀名修改为 md
const headings = [];
const headingDict = {};
const files = app.vault.getMarkdownFiles();
files.forEach(file => {
let headingsInNote = app.metadataCache.getFileCache(file).headings;
if (headingsInNote) {