Skip to content

Instantly share code, notes, and snippets.

View HamedMasafi's full-sized avatar
😀
Ready to talk

Hamed Masafi HamedMasafi

😀
Ready to talk
View GitHub Profile
#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)
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
{
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);
}
}
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
#include "myglwidget.h"
#include <QOpenGLContext>
#include <QOpenGLFunctions>
#include <QtMath>
#include <QDebug>
MyGlWidget::MyGlWidget(QWidget *parent) : QOpenGLWidget(parent)
{
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;
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;
#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
{
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")
#include "contactsmodel.h"
#ifdef Q_OS_ANDROID
# include <QtAndroid>
# include <QtAndroidExtras>
# include <jni.h>
#endif
QList<ContactsModel::Contact*> ContactsModel::_contacts;