Skip to content

Instantly share code, notes, and snippets.

View alangabrielbs's full-sized avatar
🇧🇷
JS/TS | ReactJS | NextJS

Alan Gabriel alangabrielbs

🇧🇷
JS/TS | ReactJS | NextJS
View GitHub Profile
@steven-tey
steven-tey / youtube-channel.tsx
Last active May 7, 2024 20:00
YoutubeChannel RSC
import { BlurImage, YouTube } from "@dub/ui";
import { nFormatter } from "@dub/utils";
import { Eye, UserCheck, Video } from "lucide-react";
import { Suspense } from "react";
export function YoutubeChannel({ id }: { id: string }) {
return (
<Suspense fallback={<div className="not-prose grid gap-4"></div>}>
<YoutubeChannelRSC id={id} />
</Suspense>
@guilhermeabell
guilhermeabell / .gitconfig
Last active January 18, 2024 14:48
BranchStash
[alias]
branchstash = "!f() { git stash save \"Stash $(git rev-parse --abbrev-ref HEAD): $1\"; }; f"
# run git branchstash "my changes in the branch"
@luzfcb
luzfcb / template_LGPD.md
Last active May 10, 2024 00:41
Template LGPD - Template para solicitar exclusão de dados conforme a LGPD - Lei Geral de Proteção de Dados do brasil. LEI Nº 13.709, DE 14 DE AGOSTO DE 2018. Disclaimer: Não sou advogado e não me responsabilizo por qualquer coisa decorrente do uso desde conteudo. Use por sua conta e risco.

Olá <NOME_EMPRESA>.

Vocês estão me enviando <email, ligação, SMS, via plataforma Whatsapp, via plataforma Telegram> comerciais não-solicitados, portanto SPAM.

No dia vocês enviaram ao meu uma mensagem comércial, com o seguinte texto:

<MENSAGEM>
@harveyconnor
harveyconnor / jwtVerify.ts
Created August 10, 2020 05:55
Async JWT Verify for TypeScript/JS
export async function jwtVerify(token: string, secret: string): Promise<any> {
return new Promise((resolve, reject) => {
verify(token, secret, (err, decoded) => {
if (err) return reject(err);
resolve(decoded);
});
});
}
@matthewzring
matthewzring / markdown-text-101.md
Last active June 24, 2024 20:06
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@mfd
mfd / graphik.md
Last active December 13, 2023 04:48
Graphik LCG font
https://cdn.rawgit.com/mfd/e7842774e037edf15919037594a79b2b/raw/665bdfc532094318449f1010323c84013d5af953/graphik.css

<link rel="stylesheet prefetch" href="https://cdn.rawgit.com/mfd/e7842774e037edf15919037594a79b2b/raw/665bdfc532094318449f1010323c84013d5af953/graphik.css">

@letanure
letanure / estados-cidades.json
Last active June 18, 2024 01:48
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",