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
/** | |
* @file generator.hpp | |
* @author andrea.mecchia@mail.polimi.it | |
* @brief Example of a Python-like generator implemented | |
* using C++20 coroutines | |
* @date 2022-04-10 | |
* | |
* @copyright Copyright (c) 2022 Andrea Mecchia | |
* | |
* C++20 coroutines allow us to create Python-like |
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 <stddef.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string> | |
#include <vector> | |
#include <set> | |
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 <utility> | |
#include <variant> | |
#include <mutex> | |
#include <condition_variable> | |
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
int main() | |
{ | |
memory_pool_create_info_t info = { | |
.block_size = 1024, | |
.block_alignment = 32, | |
.num_blocks = 128 | |
}; | |
memory_pool_t* pool = memory_pool_create(&info); |
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
*.a | |
*.so | |
*.so.?* | |
*.dll | |
*.exe | |
*.dylib | |
*.cmake | |
!/cmake/*.cmake | |
!/test/AssemblyTests.cmake | |
*~ |
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
/** | |
* | |
*/ | |
String.prototype.format = function formatString(...subs) { | |
// String tag functions | |
// @ref https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals | |
const formatter = (strings, ...keys) => { | |
return (...values) => { |
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
--------------------------------------------- | |
-- This procedure takes as input the hash of | |
-- a post commit and returns the chain of | |
-- parent commits up to the root commit (i.e. | |
-- NULL parent) | |
--------------------------------------------- | |
-- Drop old procedure | |
drop procedure if exists commit_chain; |
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
template<typename T> | |
struct RemoveReference | |
{ | |
using Type = T; | |
}; | |
template<typename T> struct RemoveReference<T&> { using Type = T; }; | |
template<typename T> | |
inline void swap(T & a, T & b) |
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
/** | |
* @copyright | |
*/ | |
#pragma once | |
/** | |
* Compute min between two numbers | |
*/ | |
template<typename T> |
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
# Variables | |
# ^^^^^^^^^ | |
# FbxSdk_FOUND | |
# FbxSdk_INCLUDE_DIR | |
# FbxSdk_LIBRARIES | |
# Find root dir | |
find_path(FBXSDK_ROOT_DIR | |
NAMES |
NewerOlder