Skip to content

Instantly share code, notes, and snippets.


Fernando Daciuk fdaciuk

View GitHub Profile
fdaciuk / [PRÉ-WORK] Bootcamp
Last active March 23, 2023 01:30
Referências da semana de pré-work do Bootcamp em React.js
View [PRÉ-WORK] Bootcamp

[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:

fdaciuk /
Last active March 17, 2023 11:47
Export / Import Gnome Terminal Profiles

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

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 / 00 - Tailwind Colors + Styled Components +
Last active January 31, 2023 22:03
Tailwind Colors + Styled Components + TypeScript
View 00 - Tailwind Colors + Styled Components +

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

Tailwind colors list:

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 / 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 () {
this.state = { loaded: false }
this.img = {}
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.