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
npm config set registry https://registry.npm.taobao.org # 注册模块镜像 | |
npm config set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像 | |
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass # node-sass 二进制包镜像 | |
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/ # electron 二进制包镜像 | |
npm config set puppeteer_download_host https://npm.taobao.org/mirrors # puppeteer 二进制包镜像 | |
npm config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver # chromedriver 二进制包镜像 | |
npm config set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver # operadriver 二进制包镜像 | |
npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs # phantomjs 二进制包镜像 | |
npm config set selenium_cdnurl https://npm.taobao.org/mirrors/selenium # selenium 二进制包镜像 | |
npm config set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector # node-inspector 二进制包镜像 |
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
#include "ActionConsumeTickManager.h" | |
#include "DynamicStats.h" | |
FConsumable* FConsumable::AddAction(TFunction<void()> InFunc) | |
{ | |
Parent->AddAction(InFunc); | |
return this; | |
} | |
void FConsumable::ConsumeAction(float DeltaTime) |
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
#include "ActionQueue.h" | |
#include "TimerManager.h" | |
#include "Engine/World.h" | |
DEFINE_STAT(STAT_NumActionQueue); | |
int GUseActionQueue = 1; | |
static FAutoConsoleVariableRef CVarGUseActionQueue( | |
TEXT("actionqueue.UseActionQueue"), | |
GUseActionQueue, |
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
//Convenience Wrapper functions | |
//Using TaskGraph | |
FGraphEventRef RunLambdaOnGameThread(TFunction< void()> InFunction) | |
{ | |
return FFunctionGraphTask::CreateAndDispatchWhenReady(InFunction, TStatId(), nullptr, ENamedThreads::GameThread); | |
} | |
FGraphEventRef RunLambdaOnAnyThread(TFunction< void()> InFunction) | |
{ |
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
package main | |
import ( | |
"log" | |
"os" | |
"os/exec" | |
) | |
func main() { | |
log.Println("logcat") |
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
ADB=adb | |
DEST="/data/local/tmp/reautomatic-agent" | |
OUTPUT="output/main" | |
echo "Build binary for arm ..." | |
go generate | |
GOOS=linux GOARCH=arm go build -o $OUTPUT -tags vfs |
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; | |
using System.Net; | |
using System.Net.Sockets; | |
using TestServer; | |
namespace TestClient | |
{ | |
public class Client | |
{ | |
public void ConnectToServer() |
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
#pragma once | |
template<typename T> | |
class TDefaultValue | |
{ | |
public: | |
static T value; | |
}; | |
template<typename T> |
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
#pragma once | |
#include "DefaultValue.h" | |
#include "Array.h" | |
#include "Set.h" | |
#include "Map.h" | |
namespace Linq | |
{ | |
template<typename T> |
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
//DynamicStats.h | |
# pragma once | |
# if STATS | |
DECLARE_STATS_GROUP(TEXT("Dynamic"), STATGROUP_Dynamic, STATCAT_Advanced); | |
class FDynamicScopeCycleStatIdContainer : public TThreadSingleton<FDynamicScopeCycleStatIdContainer> | |
{ | |
public: |
NewerOlder