Skip to content

Instantly share code, notes, and snippets.

@lunaperegrina
lunaperegrina / better-auth-with-elysia.ts
Created May 9, 2025 00:28
better-auth integration with elysia :)
// index.ts
// src/index.ts
import { Elysia, status } from 'elysia'
import { cors } from '@elysiajs/cors'
import { swagger } from '@elysiajs/swagger'
import UserController from '@/modules/users/controller'
import { rateLimit } from 'elysia-rate-limit'
import { createBullBoard } from '@bull-board/api';
import { BullMQAdapter } from '@bull-board/api/bullMQAdapter';
@lunaperegrina
lunaperegrina / gist:fd8020d8dff963232b678a0f68febb8d
Created April 14, 2025 20:08
Input of BRL with shadn/ui and react-hook-form with placeholder and currency
<FormField
control={form.control}
name="price"
render={({ field }) => (
<FormItem>
<FormLabel>Preço</FormLabel>
<FormControl>
<Input
type="text" // Changed from "number" to "text" for better currency formatting
placeholder="R$ 10,00"
@lunaperegrina
lunaperegrina / Typograpy.tsx
Last active May 4, 2024 17:55
Typography file of Shad/cn style
export function TypographyH1({
className,
children,
}: { className?: string; children: React.ReactNode }) {
return (
<h1
className={`scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl ${className}`}
>
{children}
</h1>
call plug#begin()
Plug 'sainnhe/sonokai'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'ryanoasis/vim-devicons'
Plug 'sheerun/vim-polyglot'
Plug 'preservim/nerdtree'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'dense-analysis/ale'
@lunaperegrina
lunaperegrina / container.dart
Created January 10, 2022 22:40
Container custom
Container(
decoration: BoxDecoration(
color: Color(0xffD99AFD),
borderRadius: BorderRadius.circular(10),
boxShadow: <BoxShadow>[
BoxShadow(
blurRadius: 30,
color: Color(0xffE9C3FF),
offset: Offset(0, 6))
],
BackdropFilter(
filter: ImageFilter.blur(
sigmaX: 5.0,
sigmaY: 5.0,
),
child: Container(),
)