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
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
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
| /* http://l3net.wordpress.com/2012/12/09/a-simple-telnet-client/ */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <arpa/inet.h> | |
| #include <termios.h> | |
| #include <fcntl.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
| realloc | |
| *.o | |
| *.dSYM |
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
| # 1. Put this file to /etc/pf.conf | |
| # 2. Install init boot scripts using IceFloor then - http://www.hanynet.com/icefloor/ | |
| # I tried to use IceFloor to configure everything but it didn't work very well. | |
| # 3. Once done, you can confirm the rules were loaded with 'sudo pfctl -sr' | |
| # 4. At System Preferences -> Security -> Firewall -> Firewall Options, | |
| # check 'Block all incoming connections' to prevent annoying per-app dialogs. | |
| set skip on lo0 | |
| set block-policy drop |
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 "StdAfx.h" | |
| #include <Setupapi.h> | |
| #pragma comment(lib, "Setupapi.lib") | |
| #include "SerialPort.h" | |
| SerialPort::SerialPort(void) : end_of_line_char_('\n') | |
| { | |
| } |
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
| #ifndef __FINK_ENDIANDEV_PKG_ENDIAN_H__ | |
| #define __FINK_ENDIANDEV_PKG_ENDIAN_H__ 1 | |
| /** compatibility header for endian.h | |
| * This is a simple compatibility shim to convert | |
| * BSD/Linux endian macros to the Mac OS X equivalents. | |
| * It is public domain. | |
| * */ | |
| #ifndef __APPLE__ |
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 "camshifting.h" | |
| /* Create a camshift tracked object from a region in image. */ | |
| TrackedObj* create_tracked_object (IplImage* image, CvRect* region) { | |
| TrackedObj* obj; | |
| //allocate memory for tracked object struct | |
| if((obj = malloc(sizeof *obj)) != NULL) { | |
| //create-image: size(w,h), bit depth, channels | |
| obj->hsv = cvCreateImage(cvGetSize(image), 8, 3); |
NewerOlder