Skip to content

Instantly share code, notes, and snippets.

View vvenv's full-sized avatar
🎯
Focusing

李文富 vvenv

🎯
Focusing
View GitHub Profile
# Privacy Policy
**Last Updated:** July 9, 2026
## 1. Introduction
This Privacy Policy explains how this Discord application ("Bot") collects, uses, stores, and protects information while providing its services.
By using the Bot, you agree to the practices described in this Privacy Policy.
# Terms of Service
**Last Updated:** July 9, 2026
## 1. Acceptance of Terms
By accessing or using this Discord application ("Bot"), you agree to be bound by these Terms of Service ("Terms"). If you do not agree to these Terms, you must stop using the Bot.
## 2. Description of the Service
export type DeepPartial<T> = T extends Object
? {
[P in keyof T]?: DeepPartial<T[P]>;
}
: T;
- DOMAIN-SUFFIX,atlasauthority.com,🚀 节点选择
- DOMAIN-SUFFIX,beyond-six.biz,🚀 节点选择
- DOMAIN-SUFFIX,boutirapp.com,🚀 节点选择
- DOMAIN-SUFFIX,boutirstage.com,🚀 节点选择
- DOMAIN-SUFFIX,boutirror.com,🚀 节点选择
- DOMAIN-SUFFIX,crossjs.com,🚀 节点选择
- DOMAIN-SUFFIX,csvjson.com,🚀 节点选择
- DOMAIN-SUFFIX,fireworkanalytics.com,🚀 节点选择
- DOMAIN-SUFFIX,fireworktv.com,🚀 节点选择
- DOMAIN-SUFFIX,funteachingaids.com,🚀 节点选择
@vvenv
vvenv / bunny.js
Created December 5, 2021 16:17
Solution for Bunny Question in "Coding Interview with Dan Abramov"
// https://www.youtube.com/watch?v=XEt09iK8IXs
let pos = 2;
let len = 4;
function jump() {
if (pos === 0) {
pos += 1
} else if (pos === len - 1) {
pos -= 1
@vvenv
vvenv / example.tsx
Last active September 22, 2021 08:19
useSplitPane.ts
const { paneRef, handleProps } = useSplitPane({
onInit: (size, pane) => {
pane.style.width = `${size}px`;
pane.style.display = size ? 'block' : 'none';
},
onResize: (size, pane) => {
pane.style.width = `${size}px`;
pane.style.display = size ? 'block' : 'none';
},
});
@vvenv
vvenv / rollup.config.js
Created July 29, 2021 03:31
rollup.config.js
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import typescript from 'rollup-plugin-typescript2';
import commonjs from 'rollup-plugin-commonjs';
import copy from 'rollup-plugin-cpy';
import external from 'rollup-plugin-peer-deps-external';
import resolve from 'rollup-plugin-node-resolve';
import url from 'rollup-plugin-url';
import pkg from './package.json';
@vvenv
vvenv / Encrypt.js
Last active December 19, 2019 01:05
Encrypt number to string with provided radix chars
class Encrypt {
static create(chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') {
const radix = chars.length;
function encode(num) {
if (num < radix) {
return chars.charAt(num);
}
return `${encode(Math.floor(num / radix))}${chars.charAt(num % radix)}`;
}
function decode(str) {
@vvenv
vvenv / Balsamiq Mockups keys.txt
Created October 10, 2019 03:22 — forked from WahidurRahman7/Balsamiq Mockups keys.txt
Balsamiq Mockups keys for Windows and Mac
Name: Joseph
eJzzzU/OLi0odstPdypNr6rxyi9OLcioMTIysDQwNjIwMKhxNgSSABE9DGo=
Name: fb.com/josephgahm
eJzzzU/OLi0odstPdypNr6pJS9JLzs/Vz8ovTi3ISE/MyK0xMjKwNDA2MjAwqHE2BJIAyuUQiw==
Name: joseph graham
eJzzzU/OLi0odstPdypNr6rJyi9OLchQSC9KzEjMrTEyMrA0MDYyMDCocTYEkgCFYA8a
@vvenv
vvenv / Mac OS X: Open in Visual Studio Code
Created October 23, 2018 15:21 — forked from tonysneed/Mac OS X: Open in Visual Studio Code
Add a command to Finder services in Mac OSX to open a folder in VS Code
- Open Automator
- File -> New -> Service
- Change "Service Receives" to "files or folders" in "Finder"
- Add a "Run Shell Script" action
- Change "Pass input" to "as arguments"
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*"
- Save it as something like "Open in Visual Studio Code"