Skip to content

Instantly share code, notes, and snippets.

View iaurg's full-sized avatar
☣️
Extreme Programming and Challenges

Italo A. iaurg

☣️
Extreme Programming and Challenges
View GitHub Profile
@iaurg
iaurg / media_queries_model_bootstrap.css
Last active February 3, 2017 02:08
Only media queries per model bootstrap, show and hide everything hehehe :D
/* Only media queries model bootstrap, show and hide everything hehehe :D */
.visible-xs,
.visible-sm,
.visible-md,
.visible-lg {
display: none !important;
}
.visible-xs-block,
.visible-xs-inline,
@iaurg
iaurg / lista_estados_brasil.html
Created February 3, 2017 02:06
Lista estados brasileiros para copiar: extenso, siglas, option siglas, option extenso, li siglas, li extenso
--------------------------- SIGLAS ---------------------------
AC
AL
AP
AM
BA
CE
DF
ES
@iaurg
iaurg / .editorconfig
Last active September 25, 2019 23:41
Commands for initial react app with eslint, editorconfig, transpiler, prettier...
root = true
[*]
end_of_line = lf
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@iaurg
iaurg / GeneratePdf.js
Created September 25, 2019 18:44
react-pdf PDFDownloadLink
import React, { Component } from 'react';
import { render, hydrate } from 'react-dom';
import { PDFDownloadLink } from '@react-pdf/renderer';
import { ModelCertificate } from './ModelCertificate';
export default class PDFLink extends Component {
state = {
loading: false,
};
@iaurg
iaurg / Docs.md
Created October 10, 2019 22:00
Extensions and configs for VScode

Extensions

Color Highlight DotEnv EditorConfig ESLint Markdown All in One Material Icon Theme or VStudio Icons

Theme

Dracula Official

@iaurg
iaurg / activecampaign.js
Created January 24, 2020 18:17
A React component for Active Campaign Form using Ant Design
import fetch from 'isomorphic-unfetch';
import { notification } from 'antd';
import styled from 'styled-components';
import { Form, Input } from '@rocketseat/unform';
import * as Yup from 'yup';
import PropTypes from 'prop-types';
const FormStyled = styled(Form)`
display: flex;
justify-content: space-between;
@iaurg
iaurg / asdfzsh.md
Last active February 26, 2020 20:40
How to configure node global commands in shell using zsh/omyzsh, when node is installed with asdf.

How to configure node global commands in zsh/omyzsh, when node is installed with asdf.

Just run this on terminal:

echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc

If don't work, bring the code . $HOME/.asdf/asdf.sh to top of your .zshrc file

@iaurg
iaurg / NextNProgress.js
Created March 11, 2020 15:26
Loader NProgress in Next.js component build with hooks.
import { useEffect } from 'react';
import NProgress from 'nprogress';
import Router from 'next/router';
import PropTypes from 'prop-types';
export default function NextNProgress({
color = '#29D',
startPosition = 0.3,
stopDelayMs = 200,
height = 3,
@iaurg
iaurg / pt.json
Last active April 15, 2020 14:40
Arquivo de tradução do tema para Ghost - Nurui v2.1.1. Ativar tradução: Envie este json para a pasta ../locales dentro do tema e atualize a opção "Publication Language" no painel do Ghost para pt.
{
"meta-page": " (Página %)",
"Back to Homepage": "Voltar ao inicio",
"No posts": "Sem postagens",
"1 post": "1 post",
"% posts": "% posts",
"Load more": "Carregar mais",
"Featured": "Destaque",
"Newer Post": "Post Novo",
"Older Post": "Post Antigo",
@iaurg
iaurg / .gitconfig
Created April 20, 2020 18:06
Git alias boilerplate
me = config user.name
# Less verbose status
st = status -sb
# Checkout
co = checkout
# Checkout master
cm = checkout master