Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥

Fernando Daciuk fdaciuk

🔥
View GitHub Profile
View jsonparse.js
try {
const mensagem = JSON.parse(obj.mensagem)
console.log(mensagem) // {...}
} catch (e) {
console.log(obj.mensagem) // "Hello"
}
@fdaciuk
fdaciuk / [PRÉ-WORK] Bootcamp React.js.md
Last active January 16, 2023 16:15
Referências da semana de pré-work do Bootcamp em React.js
View [PRÉ-WORK] Bootcamp React.js.md

[PRÉ-WORK] Bootcamp React.js

Referências da semana de pré-work do Bootcamp em React.js

Sobre o pré-work

A semana de pré-work acontecerá nos dias 16/08/2021 à 20/08/2021 na Twitch do Daciuk.

Nessa semana, as lives acontecerão excepcionalmente à partir das 15h. Todas as informações sobre o Bootcamp você encontra em: https://b-academy.brainn.co/

@fdaciuk
fdaciuk / UI, Design, Figma para devs.md
Last active August 4, 2021 19:41
UI, Design e Figma para devs
View UI, Design, Figma para devs.md

Live UI, Design e Figma para devs

Dicas

  • Saber o que fazer
  • Buscar referências
  • Prototipar
  • Criar branding / paleta de cores
  • criar a interface
@fdaciuk
fdaciuk / 00 - Tailwind Colors + Styled Components + TypeScript.md
Last active January 31, 2023 22:03
Tailwind Colors + Styled Components + TypeScript
View 00 - Tailwind Colors + Styled Components + TypeScript.md

Configuration to use TailwindCSS colors in a Styled Components theme with CRA + TypeScript.

Tailwind colors list: https://tailwindcss.com/docs/customizing-colors#generating-colors

Create files src/@types/styled.d.ts and src/resources/theme.ts with content below. Then add the theme on your project:

import { ThemeProvider } from 'styled-components'
import { theme } from 'resources/theme'
@fdaciuk
fdaciuk / Configuração do ReScript.md
Created April 17, 2021 20:03
Configuração do ReScript
View Configuração do ReScript.md

Configuração do ReScript

bsconfig.json:

{
  "name": "my-rescript-app",
  "reason": { "react-jsx": 3 },
  "sources": [
 {