Skip to content

Instantly share code, notes, and snippets.

View Rene-Sackers's full-sized avatar

René Sackers Rene-Sackers

View GitHub Profile
@JasonKleban
JasonKleban / LiteEvent.ts
Last active November 5, 2024 18:59
TypeScript LiteEvent Events implementation
interface ILiteEvent<T> {
on(handler: { (data?: T): void }) : void;
off(handler: { (data?: T): void }) : void;
}
class LiteEvent<T> implements ILiteEvent<T> {
private handlers: { (data?: T): void; }[] = [];
public on(handler: { (data?: T): void }) : void {
this.handlers.push(handler);
@XDRosenheim
XDRosenheim / getREKTson.rekt
Last active April 16, 2023 19:14
REKT Checklist
☐ Not REKT
☑ REKT
☑ Really Rekt
☑ REKTangle
☑ SHREKT
☑ REKT-it Ralph
☑ Total REKTall
☑ The Lord of the REKT
☑ The Usual SusREKTs
☑ North by NorthREKT