Skip to content

Instantly share code, notes, and snippets.

View RPG-18's full-sized avatar
😎

Dmtry Mukhitov RPG-18

😎
View GitHub Profile
@RPG-18
RPG-18 / proto2json.cpp
Last active October 17, 2021 15:36
Protobuf to json on C++
#include <google/protobuf/compiler/importer.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor_database.h>
#include <google/protobuf/dynamic_message.h>
#include <google/protobuf/util/json_util.h>
#include <fstream>
#include <iostream>
using namespace google::protobuf;
@RPG-18
RPG-18 / main.cpp
Last active September 1, 2021 08:46
Get books from one book resource
#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication a(argc, argv);
MainWindow w;
w.show();