Skip to content

Instantly share code, notes, and snippets.

@dulm
dulm / init.lua
Last active February 14, 2020 11:05
Hammerspoon config
function class(classname, super)
local superType = type(super)
local cls
if superType ~= "function" and superType ~= "table" then
superType = nil
super = nil
end
if superType == "function" or (super and super.__ctype == 1) then
-- inherited from native C++ Object
cls = {}
using System;
using System.IO;
using System.Threading;
using System.Collections.Generic;
using System.Threading.Tasks;
using MsgPack;
using MsgPack.Serialization;