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 <QCoreApplication> | |
#include <QObject> | |
#include <QSet> | |
#include <QDir> | |
#include <QUuid> | |
#include <QBetterFileWatcher> | |
class CreateFileTestCase : public QObject | |
{ |
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
# | |
# qmake configuration for win32-g++ | |
# | |
# Written for MinGW | |
# | |
# Cross compile example for i686-w64-mingw32-g++: | |
# configure -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32- | |
# | |
MAKEFILE_GENERATOR = MINGW |
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
⌂⁂ ⮀ ~ ⮁ prj ⮁ QBetterFileWatcher ⮀ develop ⮀ $ ⮀./runTests.sh | |
Building lib... | |
Compiling tests | |
Running Tests | |
1 Of 4 | |
=============================================== | |
Testing: CreateFilesTestCase | |
creating 128 files. | |
received 128 create events. |
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
import sys | |
def sqrt(n): | |
low = 0 | |
high = n | |
mid = (high - low) / 2. | |
iter = 0 | |
while abs((mid ** 2) - float(n)) > 0.00001: |
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> | |
#include <functional> | |
using namespace std; | |
function<int()> lambdaReturner() | |
{ | |
int c = 7; | |
c*=4; | |
return [=]() mutable{ |
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> | |
using namespace std; | |
template<class Single> | |
void printItout(Single arg) | |
{ | |
cout << arg << "\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
#include <iostream> | |
#include <initializer_list> | |
using namespace std; | |
template <class T> | |
void printItOut(initializer_list<T> args) | |
{ | |
for(auto v: args) | |
{ |
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 <function> | |
#include <QString> | |
#include <QObject> | |
class LambdaConnectorHelper: public QObject | |
{ | |
Q_OBJECT | |
LambdaConnectorHelper(QObject *parent, const function<void()> &f) | |
: QObject(parent), m_lamba(f) | |
{ |
OlderNewer