This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ | |
| 中转器:连接到12345端口,同时监听8080端口接受多个客户端输入, | |
| 将客户端命令转发到12345,并将响应回传给对应客户端。 | |
| """ | |
| import socket | |
| import threading | |
| import queue | |
| import time |
This file contains hidden or 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 UnityEngine; | |
| using UnityEditor; | |
| namespace Bandigo.Core.Editor.Tools | |
| { | |
| public static class MiscTool | |
| { | |
| [BandigoEditorTool("Sync Trae!", Type = ToolType.Button, Tips = "Sync Project Files with Visual Studio Code (Used by Trae)")] | |
| public static void SyncSolution() |
This file contains hidden or 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; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class ScrollRectHelper : MonoBehaviour | |
| { | |
| public ScrollRect scrollRect; | |
| lua.LuaFunction eventDelegate; | |
| UnityEngine.Events.UnityAction<Vector2> onValueChanged; |
This file contains hidden or 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
| package modules | |
| import ( | |
| "config" | |
| "utils" | |
| "fmt" | |
| "reflect" | |
| "sync" | |
| gopherjson "github.com/alicebob/gopher-json" |
This file contains hidden or 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
| package utils | |
| import ( | |
| "sync" | |
| "time" | |
| ) | |
| type PoolElem struct { | |
| Value interface{} | |
| } |
This file contains hidden or 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 CondExpr = {} | |
| local _M = {} | |
| function CondExpr.New(expr) | |
| local p = { | |
| expr = expr, | |
| } | |
| return setmetatable(p, { __index = _M }) | |
| end |
This file contains hidden or 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.Reflection; | |
| using UnityEngine; | |
| // Line drawing routine originally courtesy of Linusmartensson: | |
| // http://forum.unity3d.com/threads/71979-Drawing-lines-in-the-editor | |
| // | |
| // Rewritten to improve performance by Yossarian King / August 2013. | |
| // | |
| // This version produces virtually identical results to the original (tested by drawing | |
| // one over the other and observing errors of one pixel or less), but for large numbers |
This file contains hidden or 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
| return function() | |
| local methods = {} | |
| local meta = { | |
| __add = function(delegates, func) | |
| methods[#methods + 1] = func | |
| return delegates | |
| end, | |
| __sub = function(delegates, func) | |
| for i, f in ipairs(methods) do | |
| if f == func then |
This file contains hidden or 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
| // Shader created with Shader Forge v1.38 | |
| // Shader Forge (c) Neat Corporation / Joachim Holmer - http://www.acegikmo.com/shaderforge/ | |
| // Note: Manually altering this data may prevent you from opening it in Shader Forge | |
| /*SF_DATA;ver:1.38;sub:START;pass:START;ps:flbk:,cmtg:SF,iptp:0,cusa:False,bamd:0,cgin:,lico:1,lgpr:1,limd:0,spmd:1,trmd:0,grmd:0,uamb:True,mssp:True,bkdf:False,hqlp:False,rprd:False,enco:False,rmgx:True,imps:True,rpth:0,vtps:0,hqsc:True,nrmq:1,nrsp:0,vomd:0,spxs:False,tesm:0,olmd:1,culm:0,bsrc:0,bdst:3,dpts:2,wrdp:False,dith:0,atcv:False,rfrpo:True,rfrpn:Refraction,coma:15,ufog:True,aust:False,igpj:False,qofs:1,qpre:1,rntp:2,fgom:False,fgoc:False,fgod:False,fgor:False,fgmd:0,fgcr:0.5,fgcg:0.5,fgcb:0.5,fgca:1,fgde:0.01,fgrn:0,fgrf:300,stcl:False,atwp:False,stva:128,stmr:255,stmw:255,stcp:6,stps:0,stfa:0,stfz:0,ofsf:0,ofsu:0,f2p0:False,fnsp:False,fnfb:False,fsmp:False;n:type:ShaderForge.SFN_Final,id:928,x:33039,y:32703,varname:node_928,prsc:2|custl-3377-OUT,alpha-2180-OUT;n:type:ShaderForge.SF |
This file contains hidden or 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
| commit 3a23cbafc92f5dc4b3a1ab04b4a06d0d7733b66f | |
| Author: xiaobin83 <xiaobin.huang@gmail.com> | |
| Date: Wed Nov 15 18:02:07 2017 +0800 | |
| fix lightmap issue | |
| diff --git a/Assets/ShaderForge/Editor/Code/_Evaluator/SF_Evaluator.cs b/Assets/ShaderForge/Editor/Code/_Evaluator/SF_Evaluator.cs | |
| index 282d252..59fbd9d 100644 | |
| --- a/Assets/ShaderForge/Editor/Code/_Evaluator/SF_Evaluator.cs | |
| +++ b/Assets/ShaderForge/Editor/Code/_Evaluator/SF_Evaluator.cs |
NewerOlder