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 (c) 2013-2014 Vittorio Romeo | |
// License: Academic Free License ("AFL") v. 3.0 | |
// AFL License page: http://opensource.org/licenses/AFL-3.0 | |
#ifndef SSVU_BIMAP | |
#define SSVU_BIMAP | |
#include <cassert> | |
#include <map> | |
#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
#include <iostream> | |
#include <set> | |
#include <utility> | |
#include <cstddef> | |
#include <SSVUtils/SSVUtils.hpp> | |
namespace Internal | |
{ | |
template<typename T> struct PtrComparator | |
{ |
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
#!/bin/sh | |
cd "/home/vittorioromeo/.PlayOnLinux/wineprefix/LeagueOfLegends/drive_c/Riot Games/League of Legends/RADS/system/" | |
wine "rads_user_kernel.exe" run lol_launcher $(ls ../projects/lol_launcher/releases/) LoLLauncher.exe |
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 <SSVUtils/SSVUtils.hpp> | |
namespace Eng | |
{ | |
template<typename TTokenType, typename TTokenDataType, typename TASTType> struct LangSpec | |
{ | |
using TokenType = TTokenType; | |
using TokenDataType = TTokenDataType; | |
using ASTType = TASTType; | |
}; |
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
section .data | |
str: db 100 | |
section .bss | |
section .text | |
global _start | |
_start: |
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 <SSVUtils/SSVUtils.hpp> | |
using Idx = std::size_t; | |
using Ctr = int; | |
struct Manager; | |
class Handle; | |
struct Impl | |
{ |
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 <SSVUtils/SSVUtils.hpp> | |
using Idx = std::size_t; | |
using Ctr = int; | |
template<typename> class Manager; | |
template<typename> class Handle; | |
template<typename T> class Atom | |
{ |
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
; MACRO: linux print implementation | |
%macro MC_linuxPrintImpl 3 | |
mov ebx, %1 ; | <- print target (1=stdout) | |
mov eax, 4 ; Print 100 bytes starting from str | |
mov ecx, %2 ; | <- source buffer | |
mov edx, %3 ; | <- number of characters to print | |
int 80h ; \___ | |
%endmacro | |
; MACRO: read from terminal |
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
#!/bin/bash | |
function finish | |
{ | |
xmodmap -e 'keycode 54=c' | |
} | |
trap finish EXIT | |
xmodmap -e 'keycode 54=x' | |
export WINEDEBUG=-all | |
WINEDEBUG=-all optirun wine "$@" |
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
#define SSVU_IMPL_SINK_MN(mIT) SSVPP_TPL_ELEM(mIT, 0) | |
#define SSVU_IMPL_SINK_PN(mIT) SSVPP_TPL_ELEM(mIT, 1) | |
#define SSVU_IMPL_SINK_P_CR(mIT) const decltype(SSVU_IMPL_SINK_MN(mIT))& SSVU_IMPL_SINK_PN(mIT) | |
#define SSVU_IMPL_SINK_P_RV(mIT) decltype(SSVU_IMPL_SINK_MN(mIT))&& SSVU_IMPL_SINK_PN(mIT) | |
#define SSVU_IMPL_SINK_P_INIT(mIT) SSVU_IMPL_SINK_MN(mIT){SSVU_IMPL_SINK_PN(mIT)} | |
#define SSVU_DEFINE_SINK_CTOR_1(mClassName, mCode, m0) \ | |
inline mClassName(SSVU_IMPL_SINK_P_CR(m0)) : SSVU_IMPL_SINK_P_INIT(m0) mCode \ | |
inline mClassName(SSVU_IMPL_SINK_P_RV(m0)) : SSVU_IMPL_SINK_P_INIT(m0) mCode |
OlderNewer