This file contains 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
# https://aka.ms/yaml | |
# Only for coverage! | |
trigger: | |
paths: | |
include: | |
- 'src/*' | |
- 'CMakeLists.txt' | |
- 'azure-pipelines.yml' |
This file contains 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
// Comment temporary for maybe used later | |
// auto& p = sm.histograms_[StatsManager::physicalHistoIndex(index.second)]; | |
// std::int64_t sum = 0; | |
// if (parsedName != nullptr) { | |
// sum = readStats(index.second, parsedName->range, StatsManager::StatsMethod::SUM) | |
// .value(); | |
// } else { | |
// sum = readStats(index.second, StatsManager::TimeRange::ONE_HOUR, | |
// StatsManager::StatsMethod::SUM).value(); | |
// } |
This file contains 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 <stddef.h> | |
#include <stdbool.h> | |
#include <assert.h> | |
/*! \brief transfer the variadic parameters to string literal | |
* */ | |
#define argsstr(...) (#__VA_ARGS__) | |
/*! \brief check the validation of variadic parameters | |
* \param dummy required before variadic parameters |
This file contains 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
{"lastUpload":"2020-07-27T02:21:21.342Z","extensionVersion":"v3.4.3"} |
This file contains 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 <iostream> | |
#include <array> | |
#include <type_traits> | |
#include <stdexcept> | |
#include <algorithm> | |
/*! \brief get the number(count > 1/2) in array | |
\note complexity time-O(N) space-O(1) | |
*/ | |
template <typename ITEM, std::size_t N> |
This file contains 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
/*! \brief simple heap sorting algorithm in array | |
* \author Shylock Hg | |
* \date 2018-12-08 | |
* \email tcath2s@gmail.com | |
* */ | |
#include <type_traits> | |
#include <algorithm> | |
#include <array> |
This file contains 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 <iostream> | |
class test { | |
private: | |
int * i; | |
public: | |
test(){ | |
i = new int[10]; | |
std::cout << "Construct" << std::endl; |
This file contains 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 <iostream> | |
#include <thread> | |
// CPP program to demonstrate multithreading | |
// using three different callables. | |
#include <iostream> | |
#include <thread> | |
using namespace std; | |
// A dummy function |
This file contains 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
#! /usr/bin/env python3 | |
from matplotlib import pyplot as plt | |
import math | |
# hyper parameters | |
calib1m_rssi = -43 #!< bias of rssi in 1 meter | |
propa = 2.8 | |
scale_factor = 10 #!< scale factor of distance input of level function |
This file contains 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
#! /usr/bin/env python3 | |
class imei(): | |
@staticmethod | |
def calculus(imei): | |
''' | |
@brief calculus check digit of imei numbers | |
@param imei imei serial numbers | |
@retval check digit characters | |
''' |
NewerOlder