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
void print_stack( int frame_limit = 10) | |
{ | |
v8::Handle<v8::StackTrace> stackTrace = v8::StackTrace::CurrentStackTrace(GetIsolate(), | |
frame_limit, | |
v8::StackTrace::kDetailed); | |
int frameCount = stackTrace->GetFrameCount(); | |
if (frameCount > 0){ | |
char hMsg[256] = { 0 }; | |
sprintf_s(hMsg, "### stack, frameCount: %d\n", frameCount); | |
std::string msg(hMsg); |
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
Windows Registry Editor Version 5.00 | |
; This will make it appear when you right click ON a folder | |
; The "Icon" line can be removed if you don't want the icon to appear | |
[HKEY_CLASSES_ROOT\Directory\shell\sublime] | |
@="Open Folder as &Sublime Project" | |
"Icon"="\"D:\\Program Files\\Sublime Text 3\\sublime_text.exe\",0" | |
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command] |
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
# get exe dir: D:\Program Files (x86)\Git\bin | |
exe='git.exe' | |
cmd='where {0}'.format(exe) | |
exe_path =subprocess.check_output(cmd) | |
exe_dir =os.path.dirname(exe_path) | |
# add exe_dir into envionment PATH | |
path=os.environ['PATH'] | |
os.environ['PATH'] += ";" + exe_dir |