This file contains hidden or 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
| package sprachen.notfinal; | |
| public abstract class Base { | |
| @PseudoFinal | |
| void f() { | |
| System.out.println("base class"); | |
| } | |
| } |
This file contains hidden or 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
| try: | |
| import numpy | |
| except ImportError: | |
| # pypy | |
| pass | |
| to_run = [] | |
| def run(f): | |
| fx = lambda: f(100_000) | |
| fx.__name__ = f.__name__ |
This file contains hidden or 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
| namespace range { | |
| class range { | |
| int start = 0; | |
| int step = 1; | |
| int stop; | |
| struct range_iterator { | |
| int current; | |
| bool operator != (range_iterator b) const { | |
| return (start != b.start && stop != b.stop && step != b.step) || current < b.current; | |
| } |
This file contains hidden or 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
| module ConditionalList where | |
| -- largely curtesy of citrusMarmelade | |
| import Control.Monad | |
| import Data.Monoid | |
| if_ :: Applicative f => f () -> Bool -> f () | |
| if_ = flip when | |
| type Append a = Endo [a] |
This file contains hidden or 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 <algorithm> | |
| #include <condition_variable> | |
| #include <functional> | |
| #include <mutex> | |
| #include <queue> | |
| #include <thread> | |
| #include <vector> | |
| struct threadpool { | |
| std::vector<std::jthread> threads; |
This file contains hidden or 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 <coroutine> | |
| #include <expected> | |
| #include <optional> | |
| #include <iostream> | |
| #include "return_object_holder.hpp" | |
| using std::coroutine_traits; | |
| template <typename R, typename E> |
This file contains hidden or 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 <atomic> | |
| #include <concepts> | |
| #include <iostream> | |
| #include <stdexcept> | |
| #include <vector> | |
| template <typename T> | |
| class Badge { | |
| friend T; | |
| Badge() = default; |
This file contains hidden or 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 <variant> | |
| #include <functional> | |
| #include <iostream> | |
| template <typename Info, typename Actual> | |
| class Lazy { | |
| struct info_holder { | |
| Info x; | |
| }; |
This file contains hidden or 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 <format> | |
| #include <iostream> | |
| #include <source_location> | |
| #include <string_view> | |
| #include <tuple> | |
| #include <unordered_map> | |
| enum class LogLevel { DEBUG, INFO, WARNING, ERROR, CRITICAL }; | |
| namespace CLIColors { |
OlderNewer