Skip to content

Instantly share code, notes, and snippets.

View MaxMorais's full-sized avatar
🏢
Building Solutions in Tech

Maxwell Morais MaxMorais

🏢
Building Solutions in Tech
View GitHub Profile
class Evento:
def __init__(self, nome):
self.nome = nome
class Funcao:
def __init__(self, nome, acao):
self.nome = nome
self.acao = acao
@MaxMorais
MaxMorais / phone_location.py
Created December 5, 2024 20:20 — forked from yee379/phone_location.py
Determine a phone number's country and region.
import yaml
def locate_phone_number( s, country_code='1', region_code='650', region_digits=7, internal_digits=4, country_digits=10, locations={}, **kwargs ):
s = str(s)
# internal number
if len(s) == internal_digits:
return 'internal', None, s