Skip to content

Instantly share code, notes, and snippets.

View Milerius's full-sized avatar
:atom:
Focusing

Sztergbaum Roman Milerius

:atom:
Focusing
  • Paris
View GitHub Profile
//
// Project : ArrogantStudio
// Authors : Roman Sztergbaum, Berdrigue Bongolo, Cl�ment Doumergue, Valentin Gaillard, Arthur Cros, Dimitri Wyzlic
// Filename : ASGUIManager.hpp
// Date : 2017/05/09
// Creation Date : 2017/05/09
// School : Epitech
// Arrogant Studio, All rights reserved
//
//
// Project : ArrogantStudio
// Authors : Roman Sztergbaum, Berdrigue Bongolo, Cl�ment Doumergue, Valentin Gaillard, Arthur Cros, Dimitri Wyzlic
// Filename : ASLoginScene.cpp
// Date : 2017/05/09
// Creation Date : 2017/05/09
// School : Epitech
// Arrogant Studio, All rights reserved
//
struct MyTypeInfo {
void *(*convertToBase_)(char *p, const std::type_info& to);
void *(*maybeFromHasAPublicChildOfTypeTo_)(char *p, int offset, const std::type_info& from, const std::type_info& to);
bool (*isPublicBaseOfYourself)(int offset, const std::type_info& from);
void *convertToBase(void *p, const std::type_info& to) const {
return convertToBase_(reinterpret_cast<char*>(p), to);
}
void *maybeFromHasAPublicChildOfTypeTo(void *p, int offset, const std::type_info& from, const std::type_info& to) const {
return maybeFromHasAPublicChildOfTypeTo_(reinterpret_cast<char*>(p), offset, from, to);
include(CMakeFindDependencyMacro)
if(ON)
find_dependency(ZLIB)
endif()
if(ON)
find_dependency(OpenSSL)
endif()
if(ON)
#----------------------------------------------------------------
# Generated CMake target import file for configuration "Release".
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
if(WIN32)
# Import target "cpprestsdk::cpprest" for configuration "Release"
set_property(TARGET cpprestsdk::cpprest APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
find_package(Lua 5.3)
##! Lazy lua wrapper
add_library(lualib SHARED LuaLib.hpp LuaLib.cpp)
##! On a seulement besoin des dépendances LUA dans notre wrapper
##! on cache donc l'utilisation des librairies lua avec le mot clef PRIVATE
##! En revanche l'api que l'on expose au client elle utilise des features de Core::Utils
##! Nous mettons donc cette dépendance en PUBLIC
Options
-w Wait at end.
-l:N Test level in range of [1, 10]. 10 means maximum testing.
-s:N Specify a randomization seed. 0 is default and means use clock.
-? Show help.
Algorithm
List
String
Vector
vector<AutoRefCount>/erase std counts: 0 2048
class ThreadPool : private utils::NonCopyable
{
public:
explicit ThreadPool(size_t nbThreads = 5) noexcept
{
_threads.reserve(nbThreads);
for (size_t i = 0; i < nbThreads; ++i) {
_threads.emplace_back(&ThreadPool::__threadLoop, this);
}
}
#include <boost/filesystem.hpp>
int main()
{
std::cout << boost::filesystem::current_path() << std::endl;
return 0;
}
@Milerius
Milerius / obj.cpp
Last active December 18, 2019 20:07
struct mm2_config
{
std::string gui{"MM2GUI"};
int64_t netid{9999};
#ifdef _WIN32
std::string userhome{std::getenv("HOMEPATH")};
#else
std::string userhome{std::getenv("HOME")};
#endif
// TODO: Handle passphrase