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 <cstdio> | |
template <int i> | |
struct MetaIndex { | |
static constexpr const int value = i; | |
}; | |
template <bool f> | |
struct MetaFlag { | |
static constexpr const bool value = f; |
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
2_usertype.sql:1:ALTER TABLE Users | |
2_usertype.sql:2: ADD COLUMN usertype VARCHAR(64) NOT NULL; | |
0_init.sql:1:CREATE TABLE SchemaMetadata ( | |
0_init.sql:2: version INT NOT NULL PRIMARY KEY | |
0_init.sql:3:) | |
4_exams.sql:1:CREATE TABLE Exams ( | |
4_exams.sql:2: id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, | |
4_exams.sql:3: | |
4_exams.sql:4: title VARCHAR(256) NOT NULL | |
4_exams.sql:5:); |
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
2_usertype.sql:1:ALTER TABLE Users | |
2_usertype.sql:2: ADD COLUMN usertype VARCHAR(64) NOT NULL; | |
0_init.sql:1:CREATE TABLE SchemaMetadata ( | |
0_init.sql:2: version INT NOT NULL PRIMARY KEY | |
0_init.sql:3:) | |
4_exams.sql:1:CREATE TABLE Exams ( | |
4_exams.sql:2: id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, | |
4_exams.sql:3: | |
4_exams.sql:4: title VARCHAR(256) NOT NULL | |
4_exams.sql:5:); |
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 <string> | |
#include <functional> | |
#include <unordered_map> | |
#include <vector> | |
#include <type_traits> | |
namespace Reflect { | |
/** |
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 <string> | |
#include <functional> | |
#include <unordered_map> | |
#include <vector> | |
#include <type_traits> | |
namespace Reflect { | |
/** |
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 <string> | |
#include <functional> | |
#include <unordered_map> | |
#include <vector> | |
#include <type_traits> | |
#include <optional> | |
#include <cstring> | |
#include <exception> |
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 <string> | |
#include <functional> | |
#include <unordered_map> | |
#include <vector> | |
#include <type_traits> | |
#include <optional> | |
#include <cstring> | |
#include <exception> |
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
function makeEditor(selector, code, editable, parentElm) { | |
// Grab the element | |
let element = (parentElm || document).querySelector(selector); | |
if (!element) | |
return; | |
element.classList.add('code-container'); | |
let codeLines = document.createElement('div'); | |
codeLines.classList.add('code-lines'); |
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 "EventDispatcher.hpp" | |
using namespace dio; | |
EventHandleBase::~EventHandleBase() { | |
if (m_dispatcher) | |
m_dispatcher->Unsubscribe(this); | |
} | |
EventHandleBase::EventHandleBase(EventDispatcherBase* dispatcher, uint32_t id) |
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 "Events.hpp" | |
#include <string> | |
using namespace tdrp; | |
struct Resource { | |
EventDispatcher<std::string, int> evtUpdated; | |
}; | |
int main(int argc, char* argv[]) { |