Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

AlexWei lexnewgate

I may be slow to respond.
Block or report user

Report or block lexnewgate

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lexnewgate /
Created Feb 20, 2019 — forked from chuyik/
macOS 给 Git(Github) 设置代理(HTTP/SSH)
View .gitignore
View ProcessHelper.cs
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using Debug = UnityEngine.Debug;
namespace Locality
class ProcessHelper
public static int RunWinCmd(string cmd)
lexnewgate / helper.lua
Created Jul 22, 2018
helper functions of lua
View helper.lua
--helper funcs
function desc(descp,sep,charn)
sep=sep or "-"
charn= charn or 80
charn= (charn>=#descp) and 80 or #descp
leftseps= math.floor((charn-#descp)/2)
rightseps= charn-leftseps-#descp
View premake5.lua
workspace "lua5"
configurations "Debug"
targetdir "bin/debug"
configurations "Release"
targetdir "bin/release"
language "C"
files {
lexnewgate / numberToBinStr
Created Jul 29, 2016
Lua- number to binary string
View numberToBinStr
local function numberToBinStr(x)
while x~=1 and x~=0 do
return ret
You can’t perform that action at this time.