![screenshot.png](https://gist.github.com/boenfu/e85eeebef8e453b1f6778aed8a35477b/raw/1a46afcb2135d7c58442ae46c5df93c01aef2d20/screenshot.png)
![tushuigui.gif](https://gist.github.com/boenfu/b701037ddb118d61d94c260e8e78d668/raw/391029a4bfe6998af4fca0e875ca00884d322972/tushuigui.gif)
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
export function a() { | |
} |
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
export type CamelToDash< | |
S extends string, | |
H = true | |
> = S extends `${infer S1}${infer S2}` | |
? S1 extends Uppercase<S1> | |
? H extends true | |
? `${Lowercase<S1>}${CamelToDash<S2, false>}` | |
: `-${Lowercase<S1>}${CamelToDash<S2, false>}` | |
: `${S1}${CamelToDash<S2, false>}` | |
: S; |
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
TypeScript 14 hrs 13 mins █████████████▍░░░░░░░ 64.2% | |
JSON 3 hrs 15 mins ███░░░░░░░░░░░░░░░░░░ 14.7% | |
JavaScript 2 hrs 7 mins ██░░░░░░░░░░░░░░░░░░░ 9.6% | |
Markdown 1 hr 47 mins █▋░░░░░░░░░░░░░░░░░░░ 8.1% | |
Rust 36 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.8% |
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
🌟 Total Stars: 335 | |
🪛 Total Commits: 1.2k | |
🚀 Total PRs: 55 | |
🔎 Total Issues: 27 | |
📦 Contributed to: 12 |
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
// https://www.zeitverschiebung.net/cn/all-time-zones.html | |
// Array.prototype.map.call(document.querySelectorAll('tbody>tr'), tr => ([tr.childNodes.item(1).textContent.trim(),tr.querySelector('a').textContent.trim()])) | |
export const data = [ | |
[ | |
"UTC-11", | |
"Pacific/Midway" | |
], | |
[ | |
"UTC-11", |
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
function image(url: string): Promise<Buffer | undefined> { | |
return fetch(url).then( | |
res => { | |
if (res.status !== 200) { | |
return undefined; | |
} | |
return res.buffer(); | |
}, | |
() => { |