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
#pragma once | |
#include <QString> | |
#include <QAbstractTableModel> | |
#include "ivariantable.h" | |
template <class T> | |
class TableModel : public QAbstractTableModel | |
{ | |
private: |
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 <string> | |
#include <QFile> | |
#include <QByteArray> | |
#include <QImage> | |
#include <QIcon> | |
#include "btablemodel.h" | |
BTableModel::BTableModel(QObject *parent) : QAbstractTableModel(parent) | |
{ | |
} |
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
QT += widgets | |
HEADERS = \ | |
mainwindow.h \ | |
linenumberarea.h \ | |
numberededit.h | |
SOURCES = \ | |
mainwindow.cpp \ | |
main.cpp \ | |
numberededit.cpp |
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 <memory> | |
#include <string> | |
#include <vector> | |
#include <assert.h> | |
using namespace std; | |
enum Type { tEmpty, tNum, tVar, tFrac, tProd, tSum }; | |
enum Precedence { precStart, precSum, precFrac, precAtom }; |
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 <memory> | |
#include <string> | |
#include <vector> | |
#include <assert.h> | |
using namespace std; | |
class Node | |
{ | |
vector<shared_ptr<Node>> childs; |
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 "Finder.h" | |
#include <algorithm> | |
#include <random> | |
#include <chrono> | |
#include <thread> | |
#include <string> | |
FinderForTx::FinderForTx() | |
{ | |
} |
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
root@securecluster:/usr/src/hbase/hbase-native-client/fastnative# clear | |
root@securecluster:/usr/src/hbase/hbase-native-client/fastnative# make | |
[ 20%] Linking CXX executable fastnative | |
/usr/local/lib/libfolly.a(dynamic.o): In function `folly::dynamic::typeName(folly::dynamic::Type)': | |
/usr/src/folly-2017.09.04.00/folly/dynamic.cpp:307: undefined reference to `google::LogMessageFatal::LogMessageFatal(char const*, int)' | |
/usr/src/folly-2017.09.04.00/folly/dynamic.cpp:307: undefined reference to `google::LogMessage::stream()' | |
/usr/src/folly-2017.09.04.00/folly/dynamic.cpp:307: undefined reference to `google::LogMessageFatal::~LogMessageFatal()' | |
/usr/local/lib/libfolly.a(dynamic.o): In function `folly::dynamic::destroy()': | |
/usr/src/folly-2017.09.04.00/folly/dynamic.cpp:316: undefined reference to `google::LogMessageFatal::LogMessageFatal(char const*, int)' |
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 <cstdio> | |
#include <cstdlib> | |
#include <string> | |
using namespace std; | |
int main() { | |
for (unsigned int i = 0; i < 10; i++) { | |
fprintf(stderr, "Hello, world!\n"); | |
} | |
return 0; | |
} |
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 <stack> | |
#include <iostream> | |
#include <stdint.h> | |
#include <random> | |
#include <algorithm> | |
using namespace std; | |
const int height = 10000; | |
uint8_t choos[height]; |
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
cargo rustc -- --emit mir | |
cargo rustc -- --emit llvm-ir | |
cargo rustc -- --emit asm |