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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; install vcredist | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
SetOutPath "$varTempFolder\${PRODUCT_NAME_EN}Setup\3rdparty" | |
SetOverWrite on | |
StrCpy $varVCRedistKey "c1c4f01781cc94c4c8fb1542c0981a2a" | |
Call CheckVCRedist | |
Pop $R0 | |
${If} $R0 == "-1" |
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
@echo off | |
FOR /L %%* IN (1,1,400) DO ( | |
ECHO 1 >> 1.txt | |
rem svn commit -m "create dummy commit" ./1.txt | |
tortoiseproc.exe /command:commit /path:"E:\Proj\scopeimage\1.txt" /logmsg:"create dummy commit" /closeonend:1 | |
) | |
PAUSE |
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
@echo off | |
@SET EXEPATH="..\7-Zip\7z.exe" | |
@SET PROJECTPATH="\\192.168.1.8\文件夹\文件夹1" | |
%EXEPATH% a -tzip "文件夹1_%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.zip" %PROJECTPATH% |
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> | |
int _tmain(int argc, _TCHAR* argv[]) | |
{ | |
// Load a color image, and convert it into grayscale | |
char filename[260]; | |
for (int i = 1; i < 14; i++) { | |
sprintf(filename, "./1/%d.png", i); | |
IplImage* img = cvLoadImage(filename, CV_LOAD_IMAGE_COLOR); |
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
/************************************************************************/ | |
/* check harddisk's free space and used space */ | |
/************************************************************************/ | |
/* | |
void checkDisk() | |
{ | |
char systemInfo[256]; | |
memset(systemInfo,0,256); | |
_ULARGE_INTEGER lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes; | |
DWORD serialNumber, maxComponentLength, fsFlags; |
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 <opencv2/highgui/highgui.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
using namespace cv; | |
using namespace std; | |
#define _ShowImage 1 | |
//////////////////////////////////////////////////////// | |
/** | |
* @name getAllImgsFilePath | |
* @brief 获取指定路径下的所有文件全路径(还是这个方便啊.) |