I hereby claim:
- I am tclamb on github.
- I am tclamb (https://keybase.io/tclamb) on keybase.
- I have a public key whose fingerprint is A688 1FE6 7570 32B7 7096 D192 8ED2 3BAB 8112 71B5
To claim this, I am signing this object:
| #include <functional> | |
| #include <type_traits> | |
| #include <utility> | |
| namespace | |
| { | |
| /* SFNIAE helper struct for call signature extraction of | |
| * member functions */ | |
| template<typename T> struct remove_class {}; | |
| #include <iostream> | |
| #include <native/native.h> | |
| #include <sstream> | |
| using namespace native::http; | |
| int main() { | |
| http server; | |
| int port = 8080; | |
| if(!server.listen("0.0.0.0", port, [](request& req, response& res) { | |
| res.set_status(200); |
| #include <iostream> | |
| struct is_unary | |
| { | |
| operator bool() { return {}; }; | |
| }; | |
| template <typename lhsT, typename rhsT> | |
| struct result | |
| { |
| #include <memory> | |
| int open() { return 1; } | |
| void close(int) {} | |
| template<typename T, typename Deleter, Deleter d, T null_value = T{}> | |
| struct value_deleter | |
| { | |
| struct wrapper | |
| { |
| #include <iterator> | |
| #include <memory> | |
| template<template<typename> class C, | |
| typename T, | |
| typename Index = std::size_t, | |
| typename Difference = long | |
| > | |
| class indexer : public std::iterator<std::random_access_iterator_tag, T, Difference> | |
| { |
| #include <chrono> | |
| #include <iostream> | |
| #include <tuple> | |
| using day_t = std::chrono::duration<long long, std::ratio<3600 * 24>>; | |
| template<typename> struct duration_traits {}; | |
| #define DURATION_TRAITS(Duration, Singular, Plural) \ | |
| template<> struct duration_traits<Duration> { \ | |
| constexpr static const char* singular = Singular; \ |
| #define C4_ 3821 | |
| #define Db4_ 3607 | |
| #define D4_ 3404 | |
| #define Eb4_ 3213 | |
| #define E4_ 3033 | |
| #define F4_ 2862 | |
| #define Gb4_ 2702 | |
| #define G4_ 2550 | |
| #define Ab4_ 2407 | |
| #define A4_ 2272 |
| (defmacro defn* | |
| "Like clojure.core/defn, with the function definition in :source metadata and env in :env metadata." | |
| {:arglists (:arglists (meta #'defn))} | |
| [f & xs] | |
| `(defn ~(with-meta f (assoc (meta f) | |
| :source `(quote ~&form) | |
| :env `(zipmap (quote ~(keys &env)) | |
| (list ~@(keys &env))))) | |
| ~@xs)) |
I hereby claim:
To claim this, I am signing this object:
| #include <algorithm> | |
| #include <cstdint> | |
| #include <iostream> | |
| #include <mutex> | |
| #include <random> | |
| #include <thread> | |
| using namespace std; | |
| using u32 = uint_fast32_t; | |
| using nl = numeric_limits<u32>; |