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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <fcntl.h> | |
| #include <error.h> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <sys/ioctl.h> | |
| #include <linux/if_tun.h> | |
| #include <net/if.h> |
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
| tell application "iChat" | |
| repeat with theChat in chats | |
| repeat with theBuddy in buddies | |
| set buddy_id to id of theBuddy | |
| send buddy_id to theChat | |
| end repeat | |
| end repeat | |
| end tell |
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
| #include <iostream> | |
| // opencv | |
| #include <highgui.h> | |
| #include <cv.h> | |
| const char* cascade_path = "/usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml"; | |
| CvHaarClassifierCascade* cascade = (CvHaarClassifierCascade*)cvLoad(cascade_path, 0, 0, 0 ); | |
| //CvHaarClassifierCascade* cascade = cvLoadHaarClassifierCascade(cascade_path, cvSize(1,1)); | |
| CvMemStorage* storage = cvCreateMemStorage( 0 ); |
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
| $ osascript | |
| tell application "VLC" | |
| activate | |
| end tell |
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
| view = new QWebView(this); | |
| QPalette palette = view->palette(); | |
| palette.setBrush(QPalette::Base, Qt::transparent); | |
| view->page()->setPalette(palette); | |
| view->setAttribute(Qt::WA_OpaquePaintEvent, false); |
NewerOlder