Skip to content

Instantly share code, notes, and snippets.

View virtuosonic's full-sized avatar
🎯
Focusing

virtuosonic

🎯
Focusing
View GitHub Profile
#include <iostream>
using namespace std;
struct S {
S() {cout << "S::S() " << id << "\n";}
S(const S&) {cout << "S::S(const S&) " << id << "\n";}
S(S&&) {cout << "S::S(const S&&) " << id << "\n";}
S& operator=(const S& other) { cout << "S::operator=(const S& other) " << id << "\n";return *this;}
@virtuosonic
virtuosonic / links_to.sh
Last active December 26, 2023 19:55
prints what libraries are linked to executables on $testdir
#include <iostream>
#include <algorithm>
#include <array>
class User {
protected:
static int* data;
static int* auxData1;
static int* auxData2;
int tamannoAD1;
/**********************\
Name: format_test.cpp
Author: Gabriel Espinoza <virtuoso.sdc@gmail.com>
License: MIT
Desc: string concatenation and output test benchmark
*/
//!!!! C++ 2020 required
#include <iostream>
#include <iostream>
#include <tuple>
using namespace std;
int c_style_function(int* n, double* f,const char* c)
{
*n = 42;
*f = 3.14159;
c = "a";
return 0;
/******************************************************************************
program to test several functions to tokenize strings
*******************************************************************************/
#include <iostream>
#include <chrono>
#include <vector>
#include <functional>
#include <sstream>
#!/bin/bash
cd ~/rpi-qt
PIADDR='192.168.0.2'
rsync -avz --rsync-path="sudo rsync" --delete pi@$PIADDR:/lib sysroot
rsync -avz --rsync-path="sudo rsync" --delete pi@$PIADDR:/usr/include sysroot/usr
rsync -avz --rsync-path="sudo rsync" --delete pi@$PIADDR:/usr/lib sysroot/usr
rsync -avz --rsync-path="sudo rsync" --delete pi@$PIADDR:/opt/vc sysroot/opt
#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
using namespace std;
bool isEven(int n ){
return !(n % 2);
#include <iostream>
#include <chrono>
#include <thread>
#include <vector>
#include <algorithm>
#include <iterator>
#include <random>
using namespace std;
/**************************************
Name: 1046_reconn.cpp
Desc: demuestra como reconectar
un phidgets 1046_0
Autor: Gabriel Espinoza <tech@esprofesso.com>
Date: 05-Sep-2020
License: MIT
*/
#include <iostream>