Skip to content

Instantly share code, notes, and snippets.

View retrohacker's full-sized avatar

William Blankenship retrohacker

View GitHub Profile
@retrohacker
retrohacker / Template.js
Created January 17, 2023 20:45
Frontend framework
class Template {
constructor(id, mount) {
if (id) {
this.fragment = document.getElementById(id).content.cloneNode(true);
}
this.mount = mount;
this.eventHandlers = {};
this.children = {};
}
async addChild(name, child) {
#!/bin/bash
RED="\033[41m \033[0m"
GREEN="\033[42m \033[0m"
GAP=" "
birthdate="[ENTER DATE HERE]"
name="[ENTER NAME HERE]"
life_expectancy=65