Skip to content

Instantly share code, notes, and snippets.

View KochiyaOcean's full-sized avatar
\Kancolle/

東風谷オーシャン KochiyaOcean

\Kancolle/
View GitHub Profile
@KochiyaOcean
KochiyaOcean / deepof.ts
Created May 31, 2023 09:10
Deep keyof and deep valueof
type Numerical = `${number}` | number
type ArrayJoinPrefix = `[${string}`
type DotJoin<K extends string | number, P extends string | number> = (
P extends ArrayJoinPrefix
? `${K}${P}`
: `${K}${'' extends P ? '' : '.'}${P}`
);
@KochiyaOcean
KochiyaOcean / index.html
Last active October 28, 2021 15:03
Example of Webview ContextIsolation Issue
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body style="height: 100vh; margin: 0;">
<webview src="https://github.com" style="height: 600px; width: 800px;"></webview>
</body>
</html>
@KochiyaOcean
KochiyaOcean / L.png
Last active February 7, 2018 18:17
poi screenshot
L.png