Skip to content

Instantly share code, notes, and snippets.

View AshMW2724's full-sized avatar
:shipit:
hfd.gg

AshMW AshMW2724

:shipit:
hfd.gg
View GitHub Profile
@AshMW2724
AshMW2724 / README.md
Last active June 25, 2024 20:31
embedl.ink has been paused!

embedl.ink has been paused!

Hey, I have temporarily disabled embedl.ink as people have been using it to do some really not nice stuff. The plan is to at some point rewrite the project :)

Sorry, AshMW https://ashmw.com

@AshMW2724
AshMW2724 / README.md
Last active June 24, 2024 20:37
openapi-typescript react-query

openai-typescript react-query

This is an extremely crude example for a function that uses your openapi-typescript output to make a dynamic hook with react-query. If you find this useful and make changes, please comment them!

openapi-ts/openapi-typescript#1406

@AshMW2724
AshMW2724 / index.html
Created August 31, 2023 02:14
wvRGZQE
<div class="main">
<div>
<h1>Domain Misconfigured</h1>
<p>The domain <span id="domain">unknown</span> is not configured to any website.</p>
<p class="disc">Domain managed by <a href="https://ashmw.com">AshMW Technolegies</a></p>
</div>
</div>
{"autoSkipOnMusicVideosUpdate":true,"categoryPillUpdate":true,"categorySelections":[{"name":"sponsor","option":2},{"name":"exclusive_access","option":0},{"name":"selfpromo","option":1}],"disableSkipping":false,"hideVideoPlayerControls":true,"invidiousInstances":["inv.bp.projectsegfau.lt","inv.odyssey346.dev","inv.riverside.rocks","inv.vern.cc","invidio.xamh.de","invidious.baczek.me","invidious.dhusch.de","invidious.drivet.xyz","invidious.esmailelbob.xyz","invidious.flokinet.to","invidious.namazso.eu","invidious.nerdvpn.de","invidious.privacydev.net","invidious.silur.me","invidious.slipfox.xyz","invidious.snopyta.org","invidious.tiekoetter.com","invidious.weblibre.org","vid.puffyan.us","y.com.sb","yewtu.be","yt.artemislena.eu","yt.funami.tech"],"isVip":false,"minutesSaved":292.4541237333335,"payments":{"chaptersAllowed":true,"freeAccess":true,"lastCheck":1679365216135,"lastFreeCheck":1671673581565,"licenseKey":null},"permissions":{"chapter":false,"exclusive_access":true,"filler":true,"interaction":true,"intro"
@AshMW2724
AshMW2724 / index.html
Last active September 20, 2022 02:49
oNdwxqP
<div class="container">
<div class="cf-holder">
::IM_UNDER_ATTACK_BOX::
<div></div>
<div class="bg-holder"><div class="bg"/></div>
@AshMW2724
AshMW2724 / slugRouter.tsx
Created August 20, 2022 18:42
takes catch-all route's slug and returns components based on what that route is.
import { createContext, ReactElement, ReactNode, useContext } from 'react';
const SlugContext = createContext<{ slug: string[]; parsedSlug: string }>({ slug: [], parsedSlug: '/' });
const SlugRouteContext = createContext({ route: '/' });
interface SlugProps {
children: ReactElement<SlugRouteProps>[] | ReactElement<SlugRouteProps>;
slug: string[];
}