Skip to content

Instantly share code, notes, and snippets.


Danilo Setúbal danilosetubal

  • Florianópolis, SC, Brazil
View GitHub Profile


Versões Java


Versão Lançamento Suporte
Java SE 8 (LTS) Março 2014 Dezembro 2030
Java SE 11 (LTS) Setembro 2018 Setembro 2026
Java SE 17 (LTS) Setembro 2021 Setembro 2029
danilosetubal / listFilesPaths.js
Created Mar 29, 2020
List files paths in a directorie recursively
View listFilesPaths.js
const globby = require('globby');
const listAllFilesAndDirs = dir => globby(`${dir}/**/*`);
(async () => {
const result = await listAllFilesAndDirs(process.cwd());
danilosetubal / cpf_cnpj_validator
Created Dec 18, 2019 — forked from igorcosta/cpf_cnpj_validator
Regex para validar CPF e CNPJ
View cpf_cnpj_validator
Para CPF
Para ambos ao mesmo tempo
danilosetubal / launch.json
Last active Jan 17, 2019
Debug React app in VSCode
View launch.json
// in ubuntu run chrome 'google-chrome --remote-debugging-port=9229'
"version": "0.2.0",
"configurations": [
"name": "Chrome",
"type": "chrome",
"request": "attach",
"url": "http://localhost:3000/*",
View Remove spinners in inputs number form
/*Remove spinners in inputs forms*/
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 0;
View tachyons-breakpoints.css
@custom-media --breakpoint-not-small screen and (min-width: 30em);
@custom-media --breakpoint-medium screen and (min-width: 30em) and (max-width: 60em);
@custom-media --breakpoint-large screen and (min-width: 60em);
danilosetubal / gist:d5dd0eec9d7b2f3cc9d5ac186742141c
Created Jan 16, 2018
Start MongoDB in custom path and port
View gist:d5dd0eec9d7b2f3cc9d5ac186742141c
mongod --dbpath /home/danilosetubal/data/db --port <port no>
View gist:7226e5fc6d4b750d9332d1db6b8ea0e7
git remote set-url origin git://
danilosetubal / tabelazebrada.css
Last active Dec 22, 2017
Criar tabela zebrada usando CSS
View tabelazebrada.css
/*linhas com índice par*/
tr:nth-child(even) {
background: #CCC
/*linhas com índice ímpar*/
tr:nth-child(odd) {
background: #FFF
danilosetubal / gist:d29110320c44aed271824bc52bb15125
Created Dec 18, 2017
How to un-commit last un-pushed git commit without losing the changes