from dataclasses import dataclass
from typing import Tuple
class Meta(type):
def __new__(cls, name, bases, attrs):
new_cls = super().__new__(cls, name, bases, attrs)
return dataclass(unsafe_hash=True, frozen=True)(new_cls)
class Bio(metaclass=Meta):
name : str = "Franco Nicolas Jones"
designation : str = "Full Stack Developer"
company : str = "coming soon"
base : str = "Gaiman, Argentina"
blog : str = "coming soon"
class Stack(metaclass=Meta):
languages : Tuple[str, ...] = ("Python", "C++", "JavaScript")
version_management : Tuple[str, ...] = ("Git", "GitHub")
databases : Tuple[str, ...] = ("Visual Fox", "Sql", "MongoDB")
misc : Tuple[str, ...] = ("Django", "Flask", "React", "Vue")
ongoing : Tuple[str, ...] = ("coming soon")
class Social(metaclass=Meta):
linkedin : str = "https://www.linkedin.com/in/franco-nicolas-jones-266a62162"
twitter : str = "nicobscrew"
// Which came first: the chicken or the egg?
console.log(['π₯', 'π£', 'π₯', 'π'].sort())
>>> [ 'π', 'π£', 'π₯', 'π₯' ]