Skip to content

Instantly share code, notes, and snippets.

View gogo40's full-sized avatar
💭
Writing some code

Péricles Lopes Machado gogo40

💭
Writing some code
  • Ananindeua, PA, Brazil
  • 07:57 (UTC -03:00)
View GitHub Profile
@gogo40
gogo40 / remote_values_usecase.cpp
Last active September 23, 2015 19:43
An example using the remote values api
#include "common/values.h"
#include "clients/client.h"
struct MyContext {
std::string filename;
void execute(Response& r) { save_response_on_file(filename, r); }
};
void execute_a_complex_task() {
//create a node connection
AsyncTask<ResultType> task = new AsyncTask<>();
task
.setTask(new Task() {
void run() {
doSomething();
}
})
.setResultListener(new ResultListener<ResultType>() {
void onResult(ResultType v) {
//=================================
GsTLAppli_Python_initialize::GsTLAppli_Python_initialize()
{
Py_InitializeEx(1);
PyEval_InitThreads();
}
GsTLAppli_Python_initialize::~GsTLAppli_Python_initialize()
{
Py_Finalize();
/*
Mining Control
MINING FLOWCHART INFO
(c) 2015-2016, Escrito por Péricles Lopes Machado <[email protected]>
*/
#pragma once
#include <utils/notification_manager.h>
#include <utils/ar2gems_base_object.h>
#include <utils/data_service.h>
#include <utils/string_manipulation.h>
using namespace ar2tech;
/* Object notifications */
std::string add_notification_signal() { return "add"; }
class Add_notification : public Notification {
# deb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://br.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://br.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
use mining_control;
ALTER TABLE materials_map
ADD is_destination INTEGER NULL DEFAULT 1;
ALTER TABLE code_report
ADD utm_x REAL DEFAULT NULL,
utm_y REAL NULL,
utm_zone_id INTEGER NULL;
use mc;
ALTER TABLE `code_report`
ADD COLUMN `utm_x` REAL NULL DEFAULT NULL,
ADD COLUMN `utm_y` REAL NULL DEFAULT NULL,
ADD COLUMN `utm_zone_id` INTEGER NULL DEFAULT NULL;
ALTER TABLE `codes_raw_report`
ADD COLUMN `utm_x` REAL NULL DEFAULT NULL,