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
config: | |
environment.DISPLAY: :0 | |
raw.idmap: both 1000 1000 | |
description: Enables graphical apps use. | |
devices: | |
X0: | |
path: /tmp/.X11-unix/X0 | |
source: /tmp/.X11-unix/X0 | |
type: disk | |
mygpu: |
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 <type_traits> | |
#include <utility> | |
template <typename Derived> | |
struct Crtp { | |
protected: | |
inline Derived& derived() & noexcept { | |
return *static_cast< Derived* >(this); | |
} | |
inline const Derived& derived() const & noexcept { |
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
From 7e69b28973c4cf5d7580dd3dad9fda8de245f1a7 Mon Sep 17 00:00:00 2001 | |
From: artivis <[email protected]> | |
Date: Sat, 7 Mar 2020 11:53:21 -0500 | |
Subject: [PATCH] fix for raspi+ubuntu18.04 | |
--- | |
temperature.js | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/temperature.js b/temperature.js |
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 <type_traits> | |
#define USE_DEFAULT | |
// 2 different traits to test if a class has the function 'process' | |
template<typename T> | |
struct HasProcess | |
{ |
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
<launch> | |
<!-- This only works starting from ROS Kinetic --> | |
<!-- Allows for passing custom launch-prefix --> | |
<arg name="launch_prefix" default=""/> | |
<!-- Launch node through a debugger (valgrind/gdb/rr) --> | |
<arg name="debugger" default=""/> | |
<arg name="launch_prefix_switch" value="gdb -ex run --args" if="$(eval debugger=='gdb')" /> |
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
template <typename _Scalar = double> | |
class GaussianNoiseGenerator | |
{ | |
using Clock = std::chrono::system_clock; | |
using Scalar = _Scalar; | |
public: | |
GaussianNoiseGenerator(const Scalar mean, | |
const Scalar std) |
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 <functional> | |
#include <iostream> | |
#include <optional> | |
struct Foo | |
{ | |
void read(const std::optional<std::reference_wrapper<std::string>>& text) | |
{ | |
if (text) | |
std::cout << (*text).get() << "\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
// Example program | |
#include <iostream> | |
#include <string> | |
template<class, typename T, class...> struct has_speak_m_impl : std::false_type {}; | |
template<typename T, class... Args> struct has_speak_m_impl<decltype( std::declval<T>().speak(std::declval<Args...>()) ), T> : std::true_type {}; | |
template<typename T, class... Args> struct has_speak_m : has_speak_m_impl<void, T, Args...> {}; | |
template <typename Derived> | |
struct BaseInterface |
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
cmake_minimum_required(VERSION 2.8.4) | |
project(my_latex_report NONE) | |
include(UseLatex.cmake) | |
UseLatex() | |
add_latex_document(my_latex_report.tex | |
INPUTS Introduction.tex | |
BIBFILES references.bib |
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
#ifndef _EIGEN_CHECKS_H_ | |
#define _EIGEN_CHECKS_H_ | |
/** | |
* @note static_cast<int> to avoid -Wno-enum-compare | |
*/ | |
////////////////////// | |
/// Static Asserts /// | |
////////////////////// |
NewerOlder