Skip to content

Instantly share code, notes, and snippets.

View dudupeters's full-sized avatar

Eduardo Peters dudupeters

  • Solvis
  • Curitiba - PR
View GitHub Profile
@dudupeters
dudupeters / list.md
Created January 18, 2023 18:47 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@dudupeters
dudupeters / list.md
Created January 18, 2023 18:47 — forked from ih2502mk/list.md
Quantopian Lectures Saved

Keybase proof

I hereby claim:

  • I am dudupeters on github.
  • I am eduardopeters (https://keybase.io/eduardopeters) on keybase.
  • I have a public key ASB4L9Sc9XeTzVNyrvS1rGP6kmw-Dxc9yDCjO-RBaGBZwQo

To claim this, I am signing this object:

#------------------------------------------------------------------------------
# Rotinas para verificação de CPF e CNPJ
# Linguagem: Ruby
# Escrito por: André Camargo < andre@boaideia.inf.br > http://blog.boaideia.inf.br
# Use, copie, melhore a vontade! Patches são bem-vindos...
#------------------------------------------------------------------------------
def check_cpf(cpf=nil)
return false if cpf.nil?
nulos = %w{12345678909 11111111111 22222222222 33333333333 44444444444 55555555555 66666666666 77777777777 88888888888 99999999999 00000000000}