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
const layers = new sst.aws.Bucket('CodeconEncodingLayers') | |
const ffmpegLayer = new aws.s3.BucketObjectv2('FFmpeg', { | |
bucket: layers.name, | |
key: 'ffmpeg.zip', | |
source: new $util.asset.FileArchive('../../src/layers/ffmpeg.tar.gz'), | |
}) | |
const lambdaLayer = new aws.lambda.LayerVersion('FFmpegLayer', { | |
s3Bucket: layers.name, |
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
{ | |
"explorer.fileNesting.enabled": true, | |
"explorer.fileNesting.patterns": { | |
"package.json": ".eslint*, prettier*, tsconfig*, vite*, pnpm-lock*, bun.lockb, nest*", | |
"tailwind.config.js": "tailwind.config*, postcss.config*", | |
".env.local": ".env*", | |
".env": ".env*" | |
} | |
} |
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 { Button } from '@/components/Button' | |
import { CheckCircle2, Image as ImageIcon, Trash2 } from 'lucide-react' | |
import { useMemo } from 'react' | |
import { tv, VariantProps } from 'tailwind-variants' | |
const fileItem = tv({ | |
slots: { | |
base: 'group flex items-start gap-4 rounded-lg border border-zinc-200 p-4', | |
icon: 'relative rounded-full border-4 border-violet-100 bg-violet-200 p-2 text-violet-600', | |
deleteButton: 'text-zinc-500 hover:text-violet-500', |
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
{"name":"default","settings":"{\"settings\":\"{\\n \\\"emmet.syntaxProfiles\\\": {\\n \\\"javascript\\\": \\\"jsx\\\"\\n },\\n \\\"workbench.startupEditor\\\": \\\"newUntitledFile\\\",\\n \\\"editor.fontSize\\\": 16,\\n \\\"javascript.suggest.autoImports\\\": true,\\n \\\"javascript.updateImportsOnFileMove.enabled\\\": \\\"always\\\",\\n \\\"editor.rulers\\\": [\\n 80,\\n 120\\n ],\\n \\\"extensions.ignoreRecommendations\\\": true,\\n \\\"typescript.tsserver.log\\\": \\\"off\\\",\\n \\\"files.associations\\\": {\\n \\\".sequelizerc\\\": \\\"javascript\\\",\\n \\\".stylelintrc\\\": \\\"json\\\",\\n \\\"*.tsx\\\": \\\"typescriptreact\\\",\\n \\\".env.*\\\": \\\"dotenv\\\",\\n \\\".prettierrc\\\": \\\"json\\\"\\n },\\n \\\"screencastMode.onlyKeyboardShortcuts\\\": true,\\n \\\"cSpell.userWords\\\": [\\n \\\"bootcamp\\\",\\n \\\"chakra\\\",\\n \\\"checkin\\\",\\n \\\"checkins\\\",\\n \\\"clsx\\\",\\n \\\"Codegen\\\",\\n \\\"datadog\\\",\\n \\\"Datetime |
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
[ | |
{ | |
"identifier": { | |
"id": "vscode.bat" | |
}, | |
"preRelease": false, | |
"version": "1.0.0" | |
}, | |
{ | |
"identifier": { |
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 { PrismaClient } from '@prisma/client' | |
const prisma = new PrismaClient() | |
const firstHabitId = '0730ffac-d039-4194-9571-01aa2aa0efbd' | |
const firstHabitCreationDate = new Date('2022-12-31T03:00:00.000') | |
const secondHabitId = '00880d75-a933-4fef-94ab-e05744435297' | |
const secondHabitCreationDate = new Date('2023-01-03T03:00:00.000') |
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
name: Generate design tokens | |
on: | |
repository_dispatch: | |
types: update-tokens | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: |
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 { createContext, ReactNode, useEffect, useState } from 'react' | |
type Theme = 'light' | 'dark'; | |
type ThemeContextProviderProps = { | |
children: ReactNode; | |
} | |
type ThemeContextType = { | |
theme: Theme; |
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 { useState, createContext, useContext } from 'react' | |
// Lift state up -> Levantar o estado | |
// Context API | |
// Prop Drilling | |
type CartContextType = { | |
productsInCart: string[]; | |
addProductToCart: (name: string) => void; |
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
const teste = Teste(); |
NewerOlder