This file contains 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 eventPool = []; | |
const EVENT_POOL_SIZE = 10; | |
function SyntheticEvent(nativeEvent) { | |
this.nativeEvent = nativeEvent; | |
} | |
SyntheticEvent.prototype.persist = function persist() { | |
this.isPersistent = true; | |
}; |
This file contains 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 Promise() { | |
constructor() { | |
} | |
} |
This file contains 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
[rulesets] | |
ruleset=🎯 全球直连,clash-classic:https://gist.githubusercontent.com/clinyong/5d734fc72d0390e831c4e5279a69a9f3/raw/5a3eaa83e1c637a2356df744fb9b48bcd941e5d9/clash-pdd,86400 |
This file contains 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
payload: | |
# company ban | |
- DOMAIN-SUFFIX,yinxiang.com,Proxy | |
- DOMAIN-SUFFIX,yuque.com,Proxy | |
- DOMAIN-SUFFIX,shimo.im,Proxy | |
- DOMAIN-SUFFIX,docs.qq.com,Proxy | |
# custom | |
- DOMAIN-SUFFIX,setapp.com,Proxy | |
- DOMAIN-SUFFIX,ankiweb.net,Proxy |
This file contains 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 TreePrinter { | |
constructor() { | |
this._maxDigits = 0; | |
} | |
// BFS: https://en.wikipedia.org/wiki/Breadth-first_search | |
// empty node will be null in list | |
_getBreadthFirstList(rootNode, maxHeight) { | |
const queue = [rootNode]; | |
const list = []; |
This file contains 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 { NextResponse } from "next/server"; | |
async function GET( | |
_request: Request, | |
{ params }: { params: { url: string } } | |
) { | |
// An audio url, for example, https://xxx/xxx.mp3 | |
const audioUrl = decodeURIComponent(params.url); | |
const headers = new Headers(); | |
const res = await fetch(audioUrl).then((res) => { |
OlderNewer