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 <random> | |
#include <iostream> | |
#include <set> | |
#include <chrono> | |
#include <iomanip> | |
constexpr int sum = 70; | |
constexpr int size = 1000; | |
void cout(const ulong &u1, const ulong &u2) |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace Zabtkar.Code | |
{ | |
class BitSet<T> //where T : IComparable, IComparable<Int32>, IConvertible, IEquatable<Int32>, IFormattable | |
{ |
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
function Component() { | |
if (installer.isInstaller()) { | |
component.loaded.connect(this, Component.prototype.installerLoaded); | |
ComponentSelectionPage = gui.pageById(QInstaller.ComponentSelection); | |
if (systemInfo.productType === "windows") | |
installer.setDefaultPageVisible(QInstaller.StartMenuSelection, 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
import QtQuick 2.0 | |
import QtQuick.Layouts 1.12 | |
import QtQuick.Controls 2.12 | |
import QtQml.Models 2.12 | |
Item { | |
id: root | |
property alias model: tableView.model | |
default property list<TableColumn> columns |
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 "myglwidget.h" | |
#include <QOpenGLContext> | |
#include <QOpenGLFunctions> | |
#include <QtMath> | |
#include <QDebug> | |
MyGlWidget::MyGlWidget(QWidget *parent) : QOpenGLWidget(parent) | |
{ |
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
QByteArray Firefox::parseJsonlz4RecoveryFilePath(const QString &recoveryFilePath) | |
{ | |
const char mozlz4_magic[] = {109, 111, 122, 76, 122, 52, 48, 0}; /* "mozLz40\0" */ | |
const int decomp_size = 4; /* 4 bytes size come after the header */ | |
const size_t magic_size = sizeof mozlz4_magic; | |
char *encryptedData = nullptr; | |
char *decryptedData = nullptr; | |
int readSize = 0; | |
size_t outputBufferSize = 0; |
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
QByteArray Firefox::parseJsonlz4RecoveryFilePath(const QString &recoveryFilePath) | |
{ | |
const char mozlz4_magic[] = {109, 111, 122, 76, 122, 52, 48, 0}; /* "mozLz40\0" */ | |
const int decomp_size = 4; /* 4 bytes size come after the header */ | |
const size_t magic_size = sizeof mozlz4_magic; | |
char *encryptedData = nullptr; | |
char *decryptedData = nullptr; | |
int readSize = 0; | |
size_t outputBufferSize = 0; |
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 <chrono> | |
#include <iostream> | |
#include <array> | |
#include <limits> | |
#include <functional> | |
#include <random> | |
template <typename T, std::size_t Size = (std::numeric_limits<T>::max() / 8) + 1> | |
class number_stack_check | |
{ |
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
import QtQuick 2.14 | |
import QtQuick.Window 2.14 | |
import QtQuick.Shapes 1.12 | |
import QtQuick.Controls 2.12 | |
Window { | |
visible: true | |
width: 640 | |
height: 480 | |
title: qsTr("Hello World") |
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 "contactsmodel.h" | |
#ifdef Q_OS_ANDROID | |
# include <QtAndroid> | |
# include <QtAndroidExtras> | |
# include <jni.h> | |
#endif | |
QList<ContactsModel::Contact*> ContactsModel::_contacts; |
NewerOlder