Skip to content

Instantly share code, notes, and snippets.

View vinirossa's full-sized avatar
🚀
Flying through space

Vinícius Pereira vinirossa

🚀
Flying through space
View GitHub Profile
@vinirossa
vinirossa / regex-expressions.txt
Last active October 11, 2021 12:18
Useful Regex Expressions
# Useful Regex Expressions
[a-z] = letras minúsculas
[A-Z] = letras maiúsculas
[\d] = números
[àèìòùáéíóúâêîôûäëïöüãõ] = letras minúsculas e maiúsculas acentuadas
[\p{Letter}] = letras minúsculas e maiúsculas acentuadas e cedilha
[ç] = cedilha
[`´^~¨] = acentos
[.:,;\-_<>=+*!?)(}{|''""\][\\/] = sinais de pontuação
commitMessages=(one "two afd-d" three "Merge branch 'main'")
commitRegex="^Merge branch '.*'$"
for i in "${commitMessages[@]}"
do
if [[ $i =~ $commitRegex ]]
then
echo "Correct"
else
echo "Incorrect"
@vinirossa
vinirossa / guia-node-boilerplate.md
Last active October 25, 2021 12:06
Criação de Repositório com Node Boilerplate

Criação de Repositório com Node Boilerplate

Manual / Repo

  1. Inicializar o Git na branch main
  2. Substituir os "node-boilerplate" pelo nome do repositório / projeto
  3. Atualizar o README com as informaçoes do projeto
  4. Atualizar o package.json com as informações do projeto
  5. Substituir a função foobar por uma do próprio projeto
  6. Garantir que a versão está 0.0.0 e sem CHANGELOG.md
@vinirossa
vinirossa / reset.css
Created January 4, 2022 20:00
Reset style from HTML elements
@charset "utf-8";
/* CSS Document */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, and, address, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, input, textarea, select {
background:transparent;
border:0;
font-size:100%;
margin:0;
outline:0;
padding:0;
[core]
editor = \"C:\\Users\\vinic\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" --wait
[user]
name = Vinícius Pereira
email = viniciuspsb@gmail.com
[alias]
c = checkout
ft = fetch
ftp = fetch --prune