Skip to content

Instantly share code, notes, and snippets.

View betocantu93's full-sized avatar
🏠
Working from home

Alberto Cantú Gómez betocantu93

🏠
Working from home
View GitHub Profile
@betocantu93
betocantu93 / superhash.js
Created March 10, 2021 21:37
SuperHash PoC
function set(target, name, value) {
const attrConfig = target.constructor?.attributes[name];
if (typeof attrConfig?.init === 'function') {
target[name] = attrConfig.init.call(this, value);
}
if (attrConfig?.defaultValue) {
target[name] = attrConfig.defaultValue;
} else if (typeof attrConfig?.transform === 'function') {
target[name] = attrConfig.transform.call(target, value);
} else {
{
"basics": {
"name": "Alberto Cantú Gómez",
"label": "CEO",
"picture": "",
"email": "betocantu93@gmail.com",
"phone": "+52 8125671871",
"website": "https://betocantu93.com",
"summary": "Software engineer as profession, passionate digital entrepreneur and investor, working everyday building teams and businesses from scratch and pushing them forward.",
"location": {