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 <iostream> | |
#include <ctime> | |
unsigned t0, t1; | |
t0=clock() | |
// Code to execute | |
t1 = clock(); | |
double time = (double(t1-t0)/CLOCKS_PER_SEC); |
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 <vector> | |
using namespace cv; | |
using namespace std; | |
vector<Point> calculateSimilarPolygon(vector<Point>&pListPoints, Point center, float factor){ | |
vector<Point> spolygon; | |
float v1, v2; | |
int x, y; |
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
void OpenCV_loadImages( const std::string &folder, const std::string &tag, const std::string format, std::vector<cv::Mat> &images ){ | |
images.clear(); | |
std::string fileName; | |
int index = 1; | |
while( true ){ | |
fileName = folder + "/" + tag + std::to_string( (long long) index) + "." + format; | |
cv::Mat newImage = cv::imread( fileName ); | |
if( newImage.empty() ) break; | |
images.push_back( newImage ); |
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 display(){ | |
//cv::VideoCapture cap1(0); // open the default camera | |
cv::VideoCapture cap1(0); // open the first camera | |
cv::VideoCapture cap2(1); // open the second camera | |
if(!cap1.isOpened()) // check if we succeeded | |
return -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 | |
ECHO Execution using CALL | |
ECHO ------------------------------------------- | |
ECHO Main execution running... | |
ECHO Calling to ping... | |
call ping google.es | |
ECHO. | |
ECHO Continue main execution |
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
_ __________ _, | |
_.-(_)._ ." ". .--""--. _.-{__}-._ | |
.'________'. | .--------. | .' '. .:-'`____`'-:. | |
[____________] /` |________| `\ / .'``'. \ /_.-"`_ _`"-._\ | |
/ / .\/. \ \| / / .\/. \ \ || .'/.\/.\'. | /` / .\/. \ `\ | |
| \__/\__/ |\_/ \__/\__/ \_/| : |_/\_| ; | | \__/\__/ | | |
\ / \ / \ '.\ /.' / .-\ /-. | |
/'._ -- _.'\ /'._ -- _.'\ /'. `'--'` .'\/ '._-.__--__.-_.' \ | |
/_ `""""` _\/_ `""""` _\ /_ `-./\.-' _\'. `""""""""` .'`\ | |
(__/ '| \ _)_| |_)_/ \__)| ' | | |
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 | |
cls | |
echo [101;93m STYLES [0m | |
echo ^<ESC^>[0m [0mReset[0m | |
echo ^<ESC^>[1m [1mBold[0m | |
echo ^<ESC^>[4m [4mUnderline[0m | |
echo ^<ESC^>[7m [7mInverse[0m | |
echo. | |
echo [101;93m NORMAL FOREGROUND COLORS [0m | |
echo ^<ESC^>[30m [30mBlack[0m (black) |
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
{ | |
"patterns" : [{ | |
"patternId" : "Custom_Scala_NonFatal", | |
"enabled" : true | |
}, { | |
"patternId" : "CSSLint_shorthand", | |
"enabled" : true | |
}, { | |
"patternId" : "CSSLint_errors", | |
"enabled" : true |
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 <iostream> | |
#include <memory> | |
#include <string> | |
struct Base | |
{ | |
virtual ~Base() = default; | |
}; | |
struct Derived : public Base |
OlderNewer