This file contains hidden or 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
#0 0x566196fc0e02 in std::_Rb_tree<QString, std::pair<QString const, QVariant>, std::_Select1st<std::pair<QString const, QVariant> >, std::less<QString>, std::allocator<std::pair<QString const, QVariant> > >::begin() const /usr/include/c++/14/bits/stl_tree.h:998 | |
#1 0x566196fbf5dd in std::__cxx1998::map<QString, QVariant, std::less<QString>, std::allocator<std::pair<QString const, QVariant> > >::begin() const /usr/include/c++/14/bits/stl_map.h:378 | |
#2 0x566196fbea3a in std::__debug::map<QString, QVariant, std::less<QString>, std::allocator<std::pair<QString const, QVariant> > >::cbegin() const /usr/include/c++/14/debug/map.h:211 | |
#3 0x566196fbc5c6 in QMap<QString, QVariant>::begin() const /home/ge/Qt/6.8.3/gcc_64/include/QtCore/qmap.h:601 | |
#4 0x566196fba81d in QMap<QString, QVariant>::constBegin() const /home/ge/Qt/6.8.3/gcc_64/include/QtCore/qmap.h:602 | |
#5 0x566196fb9077 in QDebug QtPrivate::printAssociativeContainer<QMap<QString, QVariant> >(QDebug, char const*, QMap<QString, QVariant> const&) /home/ge/Qt/ |
This file contains hidden or 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
#!/bin/sh | |
# check $1 and $2 | |
if [ -z "$1" ] || [ -z "$2" ]; then | |
echo "Usage: $0 <input_file> <output_file>" | |
exit 1 | |
fi | |
# check if $1 is a file | |
if [ ! -f "$1" ]; then |
This file contains hidden or 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
#!/bin/sh | |
# check $1 and $2 | |
if [ -z "$1" ] || [ -z "$2" ]; then | |
echo "Usage: $0 <input_file> <output_file>" | |
exit 1 | |
fi | |
# check if $1 is a file | |
if [ ! -f "$1" ]; then |
This file contains hidden or 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
connect(discoveryAgent, | |
static_cast<void(QBluetoothDeviceDiscoveryAgent::*)(QBluetoothDeviceDiscoveryAgent::Error)>(&QBluetoothDeviceDiscoveryAgent::error), | |
this, &BlufiDeviceScanner::handleError); |
This file contains hidden or 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
connect(source, &Source::Mysignal,destination,&Destination::slot); |
This file contains hidden or 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
cmake_minimum_required(VERSION 3.30) | |
project(bleservice) | |
set(CMAKE_AUTOMOC ON) |
This file contains hidden or 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
REM open cmd with SHIFT+F10 | |
start ms-cxh:localonly |
This file contains hidden or 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 "ws2tcpip.h" | |
int main() { | |
addrinfo hints = {}, *res; | |
hints.ai_family = AF_INET; | |
int status = getaddrinfo("test.mosquitto.org", nullptr, &hints, &res); | |
if (status != 0) { | |
std::cerr << "getaddrinfo failed: " << gai_strerror(status) << std::endl; | |
} else { |
This file contains hidden or 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
#!/bin/sh | |
#Author: Gabriel Espinoza<virtuosonic at github> | |
#Desc: execute comand until it runs successfully(returning 0) | |
#Date: 23-Oct-2024 | |
usage() | |
{ | |
echo "usage: retryfailed <command> [arg1 [arg2...]]" | |
} |
This file contains hidden or 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
/*************************************** | |
Author: Gabriel Espinoza | |
Desc: They say lock-based concurrency is slow | |
let's test how slow is slow | |
***************************************/ | |
#include <iostream> | |
#include <mutex> | |
#include <functional> | |
#include <chrono> |
NewerOlder