Skip to content

Instantly share code, notes, and snippets.

View jj-marinho's full-sized avatar
🦆

Joao Guilherme J Marinho jj-marinho

🦆
View GitHub Profile
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <regex.h>
#define BUFFER 512
typedef struct Patterns {
char *regexFreq; // Regex usado na conta de frequencia
char *regexLongest; // Regex usado para achar a palavra mais longa
@jj-marinho
jj-marinho / validaCPF.js
Created May 29, 2020 23:04
Validando CPF
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;
if ((Resto == 10) || (Resto == 11)) Resto = 0;
@jj-marinho
jj-marinho / Flex&Grid.md
Created April 21, 2020 19:29
Flexbox e Grid

Citi

  • Apresentador Ricardo Rocha

Lema

  • Tudo é Produto

Ideia principal:

  • Não construa PARA alguem; construa COM alguem!
@jj-marinho
jj-marinho / javascript_essencial.md
Last active April 4, 2021 19:53
JavaScript - O Essencial