Skip to content

Instantly share code, notes, and snippets.

View lexnewgate's full-sized avatar
💭
I may be slow to respond.

lexnewgate lexnewgate

💭
I may be slow to respond.
  • Blackjack
  • Shanghai
View GitHub Profile
@lexnewgate
lexnewgate / premake5.lua
Created September 25, 2017 10:13
premake_lua5
workspace "lua5"
configurations "Debug"
targetdir "bin/debug"
configurations "Release"
targetdir "bin/release"
language "C"
files {
"src/*.c",
@lexnewgate
lexnewgate / numberToBinStr
Created July 29, 2016 07:45
Lua- number to binary string
local function numberToBinStr(x)
ret=""
while x~=1 and x~=0 do
ret=tostring(x%2)..ret
x=math.modf(x/2)
end
ret=tostring(x)..ret
return ret
end