Skip to content

Instantly share code, notes, and snippets.

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);
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]
@justbitguy
justbitguy / python.py
Last active August 29, 2015 14:23
python code
# 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