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 <type_traits> | |
template < | |
class TInt, | |
typename std::enable_if< | |
std::is_integral<TInt>::value, | |
int | |
>::type = 0 | |
> | |
class Fraction { |
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
// https://godbolt.org/z/pujcf7 | |
#include <utility> | |
#include <tuple> | |
namespace rz | |
{ | |
namespace adl | |
{ | |
using std::begin; |
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 <cstdint> | |
#include <cstdlib> | |
template <class T = uint_least64_t, size_t size = 64, T first = 0, T last = first> | |
constexpr T genMask() { | |
static_assert(first <= last, ""); | |
static_assert(first < size && last < size, ""); | |
return (1ULL << last) | ((1ULL << (last - first)) - 1ULL) << first; | |
} |
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 (window) { | |
'use strict'; | |
var App = window.App || {}; | |
class ConnectFour { | |
constructor() { | |
this.settings = { | |
displayDump: false | |
}; | |
this.gameOver = false; |