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
lexnewgate / README.md
Created Feb 20, 2019 — forked from chuyik/README.md
macOS 给 Git(Github) 设置代理(HTTP/SSH)
View README.md
View .gitignore
**/.vs
**/Library
**/obj
**/bin
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
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
writeNChar(leftseps,sep)
View premake5.lua
workspace "lua5"
configurations "Debug"
targetdir "bin/debug"
configurations "Release"
targetdir "bin/release"
language "C"
files {
"src/*.c",
@lexnewgate
lexnewgate / numberToBinStr
Created Jul 29, 2016
Lua- number to binary string
View numberToBinStr
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
You can’t perform that action at this time.