- Create new external tool via
Tools - External Tools...
- Add new external tool
Settings | Value |
---|---|
Title | VS Code |
Command | D:\Soft\VS Code\Code.exe |
Arguments | -g |
Initial directory | $(ItemDir) |
Tools - External Tools...
Settings | Value |
---|---|
Title | VS Code |
Command | D:\Soft\VS Code\Code.exe |
Arguments | -g |
Initial directory | $(ItemDir) |
Program: D:\Progs\Sublime Text 3\subl.exe | |
Parameters: $FilePath$:$SelectionEndLine$:$SelectionStartColumn$ |
Command: C:\Program Files\Sublime Text 3\sublime_text.exe | |
Arguments: $(ItemPath):$(CurLine):$(CurCol) | |
Initial directory: $(ItemDir) |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\7-Zip.001\shell] | |
@="extract" | |
[HKEY_CLASSES_ROOT\7-Zip.001\shell\extract] | |
@="Extract to Folder" | |
[HKEY_CLASSES_ROOT\7-Zip.001\shell\extract\command] | |
@="\"C:\\Program Files\\7-Zip\\7zG.exe\" x \"%1\" -o*" | |
[HKEY_CLASSES_ROOT\7-Zip.7z\shell] |
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> | |
<!-- | |
For other language: Instead of `ace/mode/ruby`, Use | |
Markdown -> `ace/mode/markdown` | |
Python -> `ace/mode/python` | |
C/C++ -> `ace/mode/c_cpp` | |
Javscript -> `ace/mode/javascript` | |
Java -> `ace/mode/java` | |
Scala- -> `ace/mode/scala` |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
import os | |
import sys | |
from distutils.core import setup | |
from distutils.dir_util import copy_tree | |
from py2exe.build_exe import py2exe | |
import glob | |
import zlib | |
import shutil |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs