I hereby claim:
- I am rettichschnidi on github.
- I am rettichschnidi (https://keybase.io/rettichschnidi) on keybase.
- I have a public key whose fingerprint is AC8C D403 EBF8 78C7 19A0 4357 6B9A FAF3 CCCB 851A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // Source: http://en.cppreference.com/w/cpp/thread/promise | |
| #include <future> | |
| #include <iostream> | |
| #include <numeric> | |
| #include <thread> | |
| #include <vector> | |
| void accumulate(std::vector<int>::iterator first, | |
| std::vector<int>::iterator last, | |
| std::promise<int> accumulate_promise) { |
| #include <future> | |
| #include <thread> | |
| int main() { | |
| std::promise<void> promise; | |
| std::future<void> future = promise.get_future(); | |
| std::thread work_thread([&promise] { promise.set_value(); }); | |
| future.wait(); | |
| work_thread.join(); | |
| } |
| From a77aaf4c69149d08b5e42f8419a39a8bc63bcdd5 Mon Sep 17 00:00:00 2001 | |
| From: Reto Schneider <[email protected]> | |
| Date: Mon, 20 Jun 2016 01:47:10 +0200 | |
| Subject: [PATCH] - HACK: First attempt to mitigate the IAR killing formatting | |
| --- | |
| lib/Format/FormatToken.h | 14 ++++++++++++++ | |
| lib/Format/TokenAnnotator.cpp | 20 ++++++++++++++++++-- | |
| 2 files changed, 32 insertions(+), 2 deletions(-) |
| set PATH=C:\Qt\Tools\mingw492_32\bin;%PATH% | |
| bootstrap.bat gcc | |
| b2 toolset=gcc cxxflags="--std=c++11" --build-dir=build-i386-windows-mingw492 --build-type=complete link=shared threading=multi runtime-link=shared variant=debug,release --without-python --without-mpi -q -prefix=../i386-windows-mingw492 install |
| #!/bin/bash | |
| set -e | |
| readonly filename="/tmp/$(whoami)-usb-sound" | |
| if [ -f ${filename} ]; then | |
| rm "${filename}" | |
| pacmd set-card-profile 0 output:analog-stereo+input:analog-stereo && pacmd set-card-profile 1 off | |
| else |
sudo dmesg), you should see something like this:
pl2303 converter now attached to ttyUSB2sudo apt install picocom) and connect it to the dongle using a baud of 115200 and the ttyUSB2 seen before:| D%G---- | |
| BTL1 | |
| V1.1 | |
| CPUI | |
| L1CI | |
| PMCI | |
| PMCS | |
| AFEL | |
| PWRZ | |
| MEML |