- HTTP 形式:
git clone https://github.com/owner/git.git
- SSH 形式:
git clone [email protected]:owner/git.git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workspace "lua5" | |
configurations "Debug" | |
targetdir "bin/debug" | |
configurations "Release" | |
targetdir "bin/release" | |
language "C" | |
files { | |
"src/*.c", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using Debug = UnityEngine.Debug; | |
namespace Locality | |
{ | |
class ProcessHelper | |
{ | |
public static int RunWinCmd(string cmd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**/.vs | |
**/Library | |
**/obj | |
**/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
-
First you select development build for Android.(Build Settings-> Android -> check Develop Build box)
-
Here is the guide from Unity doc: https://docs.unity3d.com/Manual/ProfilerWindow.html
-
Before the 'adb forward' you should check the port(34999) first using:
netstat -a -o -n | find "34999"
-
Kill the process that alreay take the port "34999" using:
taskkill /F /PID process_id
-
adb forward --remove-all
OlderNewer