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
blueprint: | |
name: Yet Another Motion Automation (Forked) | |
description: > | |
# YAMA V10 | |
Turn on lights or scenes when motion is detected. | |
Four different scenes can be defined depending on time of day. | |
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
backlog rule1 on system#boot do TCPStart 8888 endon ; rule1 1 ; template {"NAME":"Sonoff ZHABridge","GPIO":[56,208,0,209,59,58,0,0,0,0,0,0,17],"FLAG":0,"BASE":18} ; module 0 |
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 <map> | |
#include <utility> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
namespace { |
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
#pragma once | |
#include <SDL.h> | |
#include <memory> | |
template<typename T, typename Del> | |
using sdl_ptr = std::unique_ptr<T, Del>; | |
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
vector<Foobar> took: 2ms | |
vector<Foobar*> took: 71ms | |
vector<shared_ptr<Foobar>> took: 75ms |
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 <boost/tuple/tuple.hpp> | |
#include <string> | |
using namespace std; | |
typedef boost::tuple<int, string> tuple_type; | |
struct inherits_from_tuple : public tuple_type | |
{ |
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
auto concept IFoo<class T> { | |
void do_something(); | |
}; | |
struct Base1 { | |
virtual void do_something(); | |
}; | |
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> | |
#include "Foo.hpp" | |
#include "Bar.hpp" | |
int main() | |
{ | |
auto bar = Bar{}; |
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 <cstdint> | |
using namespace std; | |
//The following iterative sequence is defined for the set of positive integers: | |
// | |
//n → n/2 (n is even) | |
//n → 3n + 1 (n is odd) |
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
SCENARIO("...", "[...]") | |
{ | |
QEventLoop eventLoop; | |
MockRepository mockRepo; | |
GIVEN("An exporter") { | |
auto exporterAndMocks = setUpExporterAndMocks(); | |
auto exporter = exporterAndMocks.first; | |
auto mocks = exporterAndMocks.second; |
NewerOlder