Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥

Fernando Daciuk fdaciuk

🔥
View GitHub Profile
@fdaciuk
fdaciuk / [PRÉ-WORK] Bootcamp React.js.md
Last active March 23, 2023 01:30
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 / gnome-terminal-profiles.md
Last active March 17, 2023 11:47
Export / Import Gnome Terminal Profiles
View gnome-terminal-profiles.md

Export Gnome Terminal Profile

List profiles

dconf dump /org/gnome/terminal/legacy/profiles:/

Determine the terminal profile string for the profile you will need. This is the terminal profile that I will export:

View Github 2FA to Brazil via SMS.md

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:


🇧🇷 [pt-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS

@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 / lazy-img.jsx
Last active December 8, 2022 18:38
React Lazy img load component
View lazy-img.jsx
'use strict'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
class LazyImg extends Component {
constructor () {
super()
this.state = { loaded: false }
this.img = {}
@fdaciuk
fdaciuk / exceptions.js
Created August 23, 2014 03:37
Tumblr Exceptions
View exceptions.js
/* jslint browser: true, jquery: true, devel: true*/
/*
Dependencies: Tumblr.Flags
Tumblr.Utils.exceptions will automatically log window.onerror.
DO NOT write code like this. This is written to handle weird cases
where normal code should probably just fail.
*/