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
export type DeepPartial<T> = T extends Object | |
? { | |
[P in keyof T]?: DeepPartial<T[P]>; | |
} | |
: T; |
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
- 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,🚀 节点选择 |
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
// 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 |
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
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'; | |
}, | |
}); |
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
// 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'; |
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
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) { |
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
Name: Joseph | |
eJzzzU/OLi0odstPdypNr6rxyi9OLcioMTIysDQwNjIwMKhxNgSSABE9DGo= | |
Name: fb.com/josephgahm | |
eJzzzU/OLi0odstPdypNr6pJS9JLzs/Vz8ovTi3ISE/MyK0xMjKwNDA2MjAwqHE2BJIAyuUQiw== | |
Name: joseph graham | |
eJzzzU/OLi0odstPdypNr6rJyi9OLchQSC9KzEjMrTEyMrA0MDYyMDCocTYEkgCFYA8a |
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
- 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" |
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
C:\Users\username>netstat -o -n -a | findstr 0.0:3000 | |
TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 3116 | |
C:\Users\username>taskkill /F /PID 3116 |
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
git remote add upstream <url> | |
git fetch upstream | |
git merge upstream/master | |
git push |
NewerOlder