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
# Standard, Hardcore, tmpstandard, tmphardcore | |
league = "tmpstandard" | |
categories = [ | |
"DivinationCards", | |
"Essence", | |
"UniqueMap", | |
"UniqueFlask", | |
"UniqueWeapon", | |
"UniqueArmour", | |
"UniqueMap", |
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
from __future__ import unicode_literals | |
import sys | |
# We only use unicode in our parser, except for __repr__, which must return str. | |
if sys.version_info.major == 2: | |
repr_str = lambda s: s.encode("utf-8") | |
str = unicode | |
else: | |
repr_str = lambda s: s |
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
import os | |
import sys | |
import fnmatch | |
__doc__ = """Build configurator. | |
Usage: | |
configure.py [options] [-D var[=val]]... |
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
#ifndef ASCII_CTYPE_H | |
#define ASCII_CTYPE_H | |
#define ASCIIRANGE(c, start, len) (char32_t((c) - (start)) < char32_t(len)) | |
inline bool aislower(char32_t c) { return ASCIIRANGE(c, 0x61, 26); } | |
inline bool aisupper(char32_t c) { return ASCIIRANGE(c, 0x41, 26); } | |
inline bool aisdigit(char32_t c) { return ASCIIRANGE(c, 0x30, 10); } | |
inline bool aisbdigit(char32_t c) { return ASCIIRANGE(c, 0x30, 2); } | |
inline bool aisodigit(char32_t c) { return ASCIIRANGE(c, 0x30, 8); } | |
inline bool aisxdigit(char32_t c) { return ASCIIRANGE(c | 32, 0x61, 6) || aisdigit(c); } |
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
inline double fast_sin(double x) { | |
// Polynomial constants generated with sollya. | |
// fpminimax(sin(x), [|1,3,5,7|], [|D...|], [-pi/2;pi/2]); | |
// Both relative and absolute error is 9.39e-7. | |
const double magicround = 6755399441055744.0; | |
const double negpi = -3.14159265358979323846264338327950288; | |
const double invpi = 0.31830988618379067153776752674502872; | |
const double a = -0.00018488140186756154724131984146140; | |
const double b = 0.00831189979755905285208061883395203; | |
const double c = -0.16665554092439083255783316417364403; |
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) 2024 Orson Peters <[email protected]> | |
This software is provided 'as-is', without any express or implied warranty. In no event will the | |
authors be held liable for any damages arising from the use of this software. | |
Permission is granted to anyone to use this software for any purpose, including commercial | |
applications, and to alter it and redistribute it freely, subject to the following restrictions: | |
1. The origin of this software must not be misrepresented; you must not claim that you wrote the |
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 <cstddef> | |
#include <iostream> | |
#include <stdexcept> | |
#include <tuple> | |
#include <type_traits> | |
#include <utility> | |
namespace op { |
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 <cstddef> | |
template<class T, T... I> | |
struct integer_sequence { | |
using value_type = T; | |
static constexpr std::size_t size() noexcept { return sizeof...(I); } | |
}; | |
namespace detail { | |
template<class, class> struct Combine; |
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
CPU: Intel Core i5 4670K - 194.90 | |
SSD: Crucial 2.5" M500 240GB - 144.90 | |
PSU: Seasonic M12II 520W - 59.00 | |
Hard Disk: Seagate Barracuda 7200.14 ST2000DM001, 2TB - 74.90 | |
Monitor: Dell UltraSharp U2312HM - 184.00 | |
GPU: Sapphire R9 280X 3GB GDDR5 OC DUAL-X - 258.90 | |
Case: Corsair Carbide 300R - 64.90 | |
Cooler: HR-02 Macho - 44.90 | |
Motherboard: Asus Z87-A - 123.90 | |
RAM: Crucial Ballistix Sport BLS2CP8G3D1609DS1S00CEU - 134.90 |
NewerOlder