Skip to content

Instantly share code, notes, and snippets.

@remojansen
remojansen / class_decorator.ts
Last active July 30, 2025 05:53
TypeScript Decorators Examples
function logClass(target: any) {
// save a reference to the original constructor
var original = target;
// a utility function to generate instances of a class
function construct(constructor, args) {
var c : any = function () {
return constructor.apply(this, args);
}
@staltz
staltz / introrx.md
Last active September 15, 2025 15:37
The introduction to Reactive Programming you've been missing