This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| 2024-08-02T17:45:10.703 app[48e2911b36d308] ams [info] null | |
| 2024-08-02T17:45:17.732 app[48e2911b36d308] ams [info] error { | |
| 2024-08-02T17:45:17.732 app[48e2911b36d308] ams [info] error: 'invalid_grant', | |
| 2024-08-02T17:45:17.732 app[48e2911b36d308] ams [info] error_description: 'Invalid "redirect_uri" in request.' | |
| 2024-08-02T17:45:17.732 app[48e2911b36d308] ams [info] } |