Skip to content

Instantly share code, notes, and snippets.

@saphemmy
saphemmy / validate-cpf.js
Created November 10, 2021 11:03 — forked from vazgabriel/validate-cpf.js
Function to validate brazilian CPF
/*
* Validates a CPF number
* @param String: cpfString // User CPF (just numbers or formated(000.000.000-00))
* @return Boolean: success/false // Returns if is valid
* Reference and logic: https://www.devmedia.com.br/validar-cpf-com-javascript/23916
* Official code: http://www.receita.fazenda.gov.br/aplicacoes/atcta/cpf/funcoes.js
*/
function validateCpf(cpfString: string): boolean {
let validated = false; // Start with false
@saphemmy
saphemmy / bootstrap-multistep-form.markdown
Created February 5, 2019 22:47
Bootstrap MultiStep Form