Skip to content

Instantly share code, notes, and snippets.

View brunotdantas's full-sized avatar
🏠
Working from home

Bruno Dantas brunotdantas

🏠
Working from home
View GitHub Profile
@brunotdantas
brunotdantas / estados-cidades.json
Created March 3, 2022 02:08 — forked from letanure/estados-cidades.json
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@brunotdantas
brunotdantas / pessoas.json
Created March 3, 2022 02:16
90 Pessoas Brasileiras Fake Para testes
[
{
"nome": "Alessandra Luzia Nogueira",
"idade": 70,
"cpf": "827.565.258-80",
"rg": "18.847.105-4",
"data_nasc": "07/01/1952",
"sexo": "Feminino",
"signo": "Capricórnio",
"mae": "Rosângela Sophia",
@brunotdantas
brunotdantas / Poketrumps.cs
Last active October 18, 2022 07:44
PokeTrumps is a program where the user can select one attribute of its current card and if that attribute is bigger than his rival he scores, at the end of 5 rounds we check points.
internal class Program
{
private static void Main(string[] args)
{
Console.Title = "PokeTrumps";
Console.Clear();
Console.WriteLine("---------------------------------------------------------------------------------------------------------------");
Console.WriteLine("Hello my friend! Welcome to PokeTrumps!");
@brunotdantas
brunotdantas / programming_links.md
Created October 23, 2022 00:12
Useful links to study or check for languages snippets or docs that i'm interested on
@brunotdantas
brunotdantas / Program.cs
Created October 23, 2022 19:19
tictactoe_csharp
using System;
internal class Program
{
private static void Main(string[] args)
{
//-------- CODE HERE
Console.Title = "The Point";
Console.Clear();
@brunotdantas
brunotdantas / validateCPF.js
Created November 21, 2022 19:29
Validate CPF (BR GOVERNMENT UNIQUE ID)
// source: https://www.devmedia.com.br/validar-cpf-com-javascript/23916
function TestaCPF(strCPF) {
var Soma;
var Resto;
Soma = 0;
if (strCPF == "00000000000") return false;
for (i=1; i<=9; i++) Soma = Soma + parseInt(strCPF.substring(i-1, i)) * (11 - i);
Resto = (Soma * 10) % 11;