Skip to content

Instantly share code, notes, and snippets.

View raingloom's full-sized avatar

Use a better git forge raingloom

View GitHub Profile

Keybase proof

I hereby claim:

  • I am raingloom on github.
  • I am raingloom (https://keybase.io/raingloom) on keybase.
  • I have a public key whose fingerprint is 8F70 459F C4CC CBC1 1F39 92EC A865 8359 1741 D853

To claim this, I am signing this object:

--Needs Lua 5.3 and hardware signed integer support, we are doing Advanced Gender Computations.
return function(str)
local function f(m,n)if m==0 then return n+1 elseif n==0 then return f(~m,1) else return f(~m,f(m,~n))end end
return f(tonumber(str:sub(0,#str//2),36)or ~0,tonumber(str:sub(#str//2+1),36)or ~0)&1==0
end