Skip to content

Instantly share code, notes, and snippets.

@dulm
dulm / init.lua
Last active Feb 14, 2020
Hammerspoon config
View init.lua
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 = {}
View gist:d1dd04be532991f9a1cd
using System;
using System.IO;
using System.Threading;
using System.Collections.Generic;
using System.Threading.Tasks;
using MsgPack;
using MsgPack.Serialization;