Skip to content

Instantly share code, notes, and snippets.

View Moyf's full-sized avatar

Moy Moyf

  • HangZhou
View GitHub Profile
# CLA — 贡献者许可协议(个人版)
感谢你为 **moys-asr-workflow (MAW)** 贡献代码!在合并你的 PR 之前,请阅读并同意本协议。
## 这是什么
简单说:**你的贡献的版权仍属于你**,但你授予项目所有者(Moy,即 GitHub 用户 [Moyf](https://github.com/Moyf))一份宽泛的许可,使项目可以采用「AGPL-3.0 开源 + 商业许可」的双重许可模式持续运营。没有这份授权,项目所有者无权将包含你贡献的代码以商业许可形式再许可给第三方,双重许可就无法成立。
大多数知名双许可项目(Qt、MariaDB、iText)都采用同样的做法。
@Moyf
Moyf / Moy-Police Lines Style.css
Last active July 2, 2026 16:28
[Obsidian] Police lines style
/* ! Table/Image Fence (Police Line) */
/* Author: Moy */
/* Date: 2026-07-02 */
/* Version: 1.0 */
/* ! Fence Color Variables */
body {
--fence-color-primary: var(--background-primary);
--fence-color-secondary: var(--background-secondary);
@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 July 30, 2026 03:08
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 September 9, 2026 06:20
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 July 30, 2026 03:08
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) {
/* 增加宽度 */