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
# Capture a single image and save it in JPEG format. | |
$ gst-launch v4l2src num-buffers=1 ! jpegenc ! filesink location=/tmp/test.jpg | |
# Stream video from a webcam. | |
$ gst-launch v4l2src ! xvimagesink |
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
#include "Exceptions.h" | |
FILE* fd = NULL; | |
TRY { | |
// try open file and do something | |
fd = fopen("file.txt", "r"); | |
THROW_IF_FAIL(fd != NULL, Exception); | |
// more lines |
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
exec --no-startup-id termite --name dropdown & | |
bindsym $mod+i [instance="dropdown"] scratchpad show, move position center | |
for_window [instance="dropdown"] floating enable, resize set 800 600, \ | |
move scratchpad |