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
__ __ | |
/\ \__ /\ \ __ __ | |
___ _ __ __ __ \ \ ,_\ __ \_\ \ _ __ /\_\ _____ _____ __ __ __ _____ /\_\ | |
/'___\/\`'__\/'__`\ /'__`\ \ \ \/ /'__`\ _______ /'_` \/\`'__\/\ \/\ '__`\/\ '__`\/\ \/\ \ _______ /'__`\ /\ '__`\/\ \ | |
/\ \__/\ \ \//\ __//\ \L\.\_\ \ \_/\ __//\______\/\ \L\ \ \ \/ \ \ \ \ \L\ \ \ \L\ \ \ \_\ \/\______\/\ \L\.\_\ \ \L\ \ \ \ | |
\ \____\\ \_\\ \____\ \__/.\_\\ \__\ \____\/______/\ \___,_\ \_\ \ \_\ \ ,__/\ \ ,__/\/`____ \/______/\ \__/.\_\\ \ ,__/\ \_\ | |
\/____/ \/_/ \/____/\/__/\/_/ \/__/\/____/ \/__,_ /\/_/ \/_/\ \ \/ \ \ \/ `/___/> \ \/__/\/_/ \ \ \/ \/_/ | |
\ \_\ \ \_\ /\___/ \ \_\ | |
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
'use client'; | |
import * as z from 'zod'; | |
import { | |
Form, | |
FormControl, | |
FormDescription, | |
FormField, | |
FormItem, | |
FormLabel, |
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 { useQuery } from '@tanstack/react-query'; | |
import { useQueryClient } from '@tanstack/react-query'; | |
import { z } from 'zod'; | |
import { createZodFetcher } from 'zod-fetch'; | |
const fetchWithZod = createZodFetcher(); | |
const characterSchema = z.object({ | |
info: z.object({ | |
count: z.number(), |
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
/*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ | |
/* | |
Document | |
======== | |
*/ | |
/** | |
Use a better box model (opinionated). | |
*/ |
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 { twMerge } from 'tailwind-merge'; | |
import { useSidebarStore } from './sidebar-store'; | |
function App() { | |
const { | |
value, | |
close, | |
open, | |
toggle: _toggle, | |
} = useSidebarStore((store) => store); |
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 DrizzleAdapter(): Adapter { | |
const { users, sessions, accounts, verificationTokens } = schema; | |
return { | |
createUser: async (data) => { | |
const id = crypto.randomUUID(); | |
await db.insert(users).values({ ...data, id }); | |
const user = await db | |
.select() |
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 '@radix-ui/colors/blackA.css'; | |
@import '@radix-ui/colors/violet.css'; | |
.SliderRoot { | |
position: relative; | |
display: flex; | |
align-items: center; | |
user-select: none; | |
touch-action: none; | |
width: 200px; |
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 Example() { | |
return ( | |
<aside className='relative items-center justify-center flex-1 hidden text-white lg:flex'> | |
<Image src={mask} alt='mask' className='absolute top-0 left-0' /> | |
<Image | |
src={mask} | |
alt='mask' | |
className='absolute bottom-0 right-0 rotate-180' | |
/> | |
<Blob className={'absolute'} /> |
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 { getCount_IndexOf } from "./indexof.ts"; | |
import { getCount_Set } from "./set.ts"; | |
const input = | |
"hello world i am very big string maybe with vowel maybe not with wovel...."; | |
// Performance test each function 1000000 times | |
const start_IndexOf = Date.now(); | |
for (let i = 0; i < 1000000; i++) { | |
getCount_IndexOf(input); |
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
0 verbose cli C:\Program Files\nodejs\node.exe C:\Users\Bruger\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js | |
1 info using npm@9.4.1 | |
2 info using node@v18.15.0 | |
3 timing npm:load:whichnode Completed in 1ms | |
4 timing config:load:defaults Completed in 2ms | |
5 timing config:load:file:C:\Users\Bruger\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 1ms | |
6 timing config:load:builtin Completed in 1ms | |
7 timing config:load:cli Completed in 1ms | |
8 timing config:load:env Completed in 1ms | |
9 timing config:load:file:C:\Users\Bruger\Desktop\dev\app-playground\.npmrc Completed in 1ms |
NewerOlder