Skip to content

Instantly share code, notes, and snippets.

View abraxaslee's full-sized avatar

Leo abraxaslee

  • A freezing office in Hong Kong
View GitHub Profile
@remojansen
remojansen / class_decorator.ts
Last active January 17, 2026 16:35
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);
}
@corbanb
corbanb / JavaScript.sublime-build
Last active August 25, 2024 00:42
Sublime Text - Tools > Build System > New Build System
// Sublime Text - Build System for Javascript
{
"cmd": ["node", "$file"],
"selector": "source.js"
}