This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["super+c"], "command": "copy_diff", "context": [{ "key": "selector", "operand": "source.diff", "operator": "equal", "match_all": true } ] } | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Plugin } from 'esbuild' | |
import { default as Postcss } from 'postcss' | |
import { default as PostcssModulesPlugin } from 'postcss-modules' | |
import { compile, Options } from 'sass' | |
export type CSSModulesOptions = Parameters<typeof PostcssModulesPlugin>[0] | |
export interface CSSOptions { | |
/// https://github.com/css-modules/postcss-modules | |
modules?: CSSModulesOptions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"caption": "Cleanup Repo", | |
"command": "git", | |
"args": {"argv": ["gc"]} | |
}, | |
{ | |
"caption": "Sync main to origin/main", | |
"command": "git", | |
"args": {"argv": ["branch", "-f", "main", "origin/main"]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"font_face": "更纱黑体 UI SC" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="vite/client" /> | |
// The contents of index.html: | |
// <script src="./node_modules/source-map/dist/source-map.js"></script> | |
// <script type="module" src="/using-source-map-in-browser.ts"></script> | |
import * as esbuild from 'esbuild-wasm/esm/browser.js' | |
import wasmURL from 'esbuild-wasm/esbuild.wasm?url' | |
import sourceMapWasmURL from 'source-map/lib/mappings.wasm?url' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "json" | |
require "fileutils" | |
require "cgi" | |
include FileUtils::Verbose | |
folder = 'C:\Users\hyrious\OneDrive\Apps\Violentmonkey' # <-- change to your backup folder place | |
index_file = 'Violentmonkey' | |
target = File.join __dir__, 'ViolentmonkeyExport' | |
mkdir_p target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma comment(lib, "user32") | |
#pragma comment(lib, "gdi32") | |
#pragma comment(lib, "shcore") | |
#define NOMINMAX | |
#define WIN32_LEAN_AND_MEAN | |
#include <ShellScalingApi.h> | |
#include <Windows.h> | |
#include <cstdio> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"overrides": { | |
"eslint": { | |
// Only loaded for `--mcp`. | |
"@modelcontextprotocol/sdk": "npm:noop-package", | |
"zod": "npm:noop-package" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mixin(cls: Function, mod: Function) { | |
const proto = { | |
__proto__: Object.getPrototypeOf(cls.prototype) | |
} | |
Object.getOwnPropertyNames(mod.prototype).forEach(field => { | |
if (field == 'constructor') return; | |
proto[field] = mod.prototype[field] | |
}) | |
Object.setPrototypeOf(cls.prototype, proto) | |
return cls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias finalurl="curl -o /dev/null -sILw '%{url_effective}'" | |
# Example usage: | |
# finalurl b23.tv/ovUaDM9 | sed -e 's/?.*//' |
NewerOlder