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
let a = 'hello world'; | |
console.log(a); |
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
;注册文件右键 | |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\VSCode] | |
@="Open with Code" | |
"Icon"="C:\\Users\\asus\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe" | |
[HKEY_CLASSES_ROOT\*\shell\VSCode\command] | |
@="\"C:\\Users\\asus\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\"" |
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
FReply SGCWidget::AddWindow() | |
{ | |
FText WidgetText = FText::Format( | |
LOCTEXT("WindowWidgetText", "Add code to {0} in {1} to override this window's contents"), | |
FText::FromString(TEXT("FGCExampleModule::OnSpawnPluginTab")), | |
FText::FromString(TEXT("GCExample.cpp")) | |
); | |
TSharedRef<SWindow> RenameWindow = SNew(SWindow) | |
.Title(LOCTEXT("DiscoveringAssetsDialog", "Discovering Assets...")) |
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
void FGCExampleModule::StartupModule() { | |
FGlobalTabmanager::Get()->RegisterNomadTabSpawner(GCExampleTabName, | |
FOnSpawnTab::CreateRaw(this, &FGCExampleModule::OnSpawnPluginTab)) | |
.SetDisplayName(LOCTEXT("FGCExampleTabTitle", "GCExample")) | |
.SetMenuType(ETabSpawnerMenuType::Hidden); | |
} | |
void FGCExampleModule::PluginButtonClicked() | |
{ |
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
cmake_minimum_required(VERSION 3.6) | |
GET_FILENAME_COMPONENT(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME) | |
project(${PROJECT_NAME}) | |
#message(${PROJECT_NAME}) | |
AUX_SOURCE_DIRECTORY(. ALL_SRC) | |
INCLUDE_DIRECTORIES(.) | |
# remove the lua.c/luac.c from teh all file lists |
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
Show hidden characters
{ | |
"working_dir": "$file_path", | |
"cmd": "dot -Tpng \"$file_name\" -o \"$file_base_name.png\"", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
} |
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
public float TextStringWidth(Text mText) | |
{ | |
var font = mText.font; | |
var fontsize = mText.fontSize; | |
var text = mText.text; | |
var fontStyle = mText.fontStyle; | |
font.RequestCharactersInTexture(text, fontsize, fontStyle); | |
var width = 0f; | |
for (var i = 0; i < text.Length; i++) | |
{ |
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
public class Maze | |
{ | |
class Step{ | |
public int x,y,d; | |
public Step(int x,int y,int d) { | |
this.x = x;//横坐标 | |
this.y = y;//纵坐标 | |
this.d = d;//方向 | |
} | |
} |
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
function* objectEntries(obj) { | |
let propKeys = Reflect.ownKeys(obj); | |
for (let propKey of propKeys) { | |
yield [propKey, obj[propKey]]; | |
} | |
} |
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
//const f = () => console.log('now'); | |
const f = Promise.resolve().then(()=>console.log('now')); | |
(async () => f())(); | |
console.log('next'); |
NewerOlder