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
//Change from http://www.mysqlab.net/blog/2011/12/daemon-function-for-go-language/ | |
//For go 1.0.2 | |
package daemon | |
import ( | |
"syscall" | |
"os" | |
"log" | |
) |
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 <opencv2/opencv.hpp> | |
//#include <stdlib.h> | |
#include <mmintrin.h> | |
//#include <xmmintrin.h> | |
#include <time.h> | |
using namespace cv; | |
#define CALC_RUN_TIME(fun_line, func_name) \ | |
{\ |
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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import urllib | |
import urllib2 | |
def safe_add(x, y): | |
lsw=(x&0xFFFF)+(y&0xFFFF) | |
msw=(x>>16)+(y>>16)+(lsw>>16) | |
return lshift(msw, 16)|(lsw&0xFFFF) |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import urllib2 | |
import urllib | |
import md5 | |
import re | |
import time | |
import optparse | |
user = 'YOUR USERNAME' |
NewerOlder