# check name
wsl --list -v
wsl --export ${NAME_FROM_LIST} "D:\\Whereever"
# unregister it which will totally remove your file
wsl --unregister ${NAME_FROM_LIST}
const cookies = [ | |
'sessionid=sessionid', | |
'sessionid_sign=sessionid_sign' | |
]; | |
try { | |
const response = await fetch('https://cn.tradingview.com/', { | |
headers: { | |
'Cookie': cookies.join('; ') | |
} |
{ | |
"url": "http://localhost:5173/", | |
"name": "TON Crowdfunding", | |
"iconUrl": "http://localhost:5173/vite.svg" | |
} |
const __internalStore = new Map<string, any>() | |
const __listeners = new Set<() => void>() | |
const cache = { | |
set(key: string, value: any) { | |
__internalStore.set(key, value); | |
__listeners.forEach(listener => listener()); | |
}, | |
delete(key: string) { | |
__internalStore.delete(key); |
import type { ObjectDirective } from 'vue' | |
/** | |
* @reference https://developer.mozilla.org/en-US/docs/Web/API/ScrollTimeline | |
*/ | |
declare const ScrollTimeline: any | |
function shouldAnimationBeStopped(animation: CSSAnimation, animationName: string | null = null) { | |
if (!ScrollTimeline || !(animation.timeline instanceof ScrollTimeline)) | |
return false |
const waitForElement = (/** @type {string}*/selector) => { | |
return new Promise((resolve) => { | |
const observer = new MutationObserver(() => { | |
const target = document.querySelector(selector) | |
if (target) { | |
observer.disconnect() | |
resolve() | |
} | |
}) | |
observer.observe(document, { childList: true, subtree: true, attributes: false }) |
import { useCallback, useRef, useState, useSyncExternalStore } from 'react' | |
type Listener = () => void | |
interface UseAsyncReturn<T> { | |
data: T | undefined | |
error: any | |
isLoading: boolean | |
refresh: () => void | |
} |
.button { | |
--primary: #275EFE; | |
--primary-dark: #2055EE; | |
--primary-darkest: #133FC0; | |
--text: #FFFFFF; | |
--text-opacity: 1; | |
--success: #2B3044; | |
--success-scale: .2; | |
--success-opacity: 0; | |
--border-radius: 7; |
# check name
wsl --list -v
wsl --export ${NAME_FROM_LIST} "D:\\Whereever"
# unregister it which will totally remove your file
wsl --unregister ${NAME_FROM_LIST}
🥇 六等星の夜 - Aimer | |
🥈 你不是真正的快樂 - Mayday | |
🥉 Lemon - Kenshi Yonezu | |
aLIEz - SawanoHiroyuki[nZ | |
ピースサイン - Kenshi Yonezu | |
打上花火 - Daoko & Kenshi Yo |
/** | |
* expend version of van-js v0.11.10 | |
* just for study | |
* @copyright Tao xin | |
* @link https://github.com/jorgebucaran/hyperapp | |
*/ | |
import { BindFunc, ChildDom, DerivedProp, Primitive, Props, State, StateView, TagFunc, default as Van } from "./van" | |
// This file consistently uses `let` keyword instead of `const` for reducing the bundle size. |