Skip to content

Instantly share code, notes, and snippets.

# reload config file │
bind-key r source-file ~/.tmux.conf │
bind-key J resize-pane -D 20 │
bind-key K resize-pane -
# options
MAX_CAMS = 4
WIDTH_PIXELS = 1280
HEIGHT_PIXELS = 720
VIDEO_FORMAT = 'MJPG'
# connect to all available webcams
cams = []
for i in range(0, MAX_CAMS):
next_cam = cv2.VideoCapture(i)
private string getShortcutPath()
{
string startupPath = Environment.GetFolderPath(Environment.SpecialFolder.Startup);
return System.IO.Path.Combine(startupPath, "myApp.lnk");
}
private void createStartupShortcut()
{
WshShell shell = new WshShell();
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(getShortcutPath());