This file contains hidden or 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
| class Aspect: | |
| def before(self, func, *args, **kwargs): | |
| pass | |
| def after(self, result, func, *args, **kwargs): | |
| return result | |
| def except_raised(self, func, excpt, *args, **kwargs): | |
| pass |
This file contains hidden or 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 <string> | |
| #include <algorithm> | |
| using namespace std; | |
| typedef int (*custom_ln)(string); | |
| typedef custom_ln (*ln_mapper)(int); | |
| int cnt_0(string str) |
This file contains hidden or 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 <vector> | |
| #include <ranges> | |
| #include <algorithm> | |
| using namespace std; | |
| int mod_by_six(int val); | |
| int main() | |
| { |
This file contains hidden or 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 <string.h> | |
| class SampleStr | |
| { | |
| char *str_data; | |
| int length; | |
| public: | |
| SampleStr(const char *data = "") : length(0), str_data(nullptr) |
This file contains hidden or 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 3.18) | |
| project(multith | |
| VERSION 0.1 | |
| DESCRIPTION "A sample of a shared resource") | |
| set(CMAKE_CXX_STANDARD 17) | |
| add_executable(multith starter.cpp) |
This file contains hidden or 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
| # | |
| #Instructions on how to make, load, check and unload. | |
| # | |
| # | |
| ############## check prerequisites ########################## | |
| $ uname -r | |
| 6.5.0-18-generic | |
| $ gcc --version |
This file contains hidden or 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
| // | |
| // Created by farhang on 21.01.24. | |
| // | |
| #include <iostream> | |
| #include <coroutine> | |
| #include <exception> | |
| #include <cstdlib> |