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 <memory> | |
#include <iostream> | |
#include <thread> | |
int main() | |
{ | |
std::shared_ptr<std::thread> mythread; | |
mythread.reset( |
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 <memory> | |
class Base | |
{ | |
public: | |
Base() { std::cout << "Base constructor" << std::endl; } | |
virtual ~Base() { std::cout << "Base destructor" << 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
Homebrew build logs for guile on "CentOS release 6.9 (Final)" | |
Build date: 2019-01-15 05:52:06 |
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
Homebrew build logs for shellcheck on Ubuntu 18.04.1 LTS | |
Build date: 2018-12-20 14:24:55 |
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
// compile and run using (requires root access): | |
// gcc -W -Wall buzzer.c -o buzzer -lpigpio -lpthread && sudo ./buzzer | |
#include <pigpio.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
#include <unistd.h> | |
// GPIO19 is PWM1 |
NewerOlder