Skip to content

Instantly share code, notes, and snippets.

View range.hpp
template <typename T>
struct range {
T _a;
T _b;
[[nodiscard]] constexpr explicit range(T a, T b) noexcept : _a{a}, _b{b} {}
struct end_sentinel {
T _value;
};
View menu_from_json.cpp
[[nodiscard]] static quake::menu makeMenuFromJSON(const json& src)
{
quake::menu m{"Custom Test Menu", &M_Menu_QuakeVRSettings_f};
for(const auto& [key, value] : src.items())
{
const char* title = key.data();
const auto& bounds = value["bounds"];
const auto generateOption = [&]<typename T>(
View gist:eb7a3c607a65e8e424305d9af24ceb6a
This file has been truncated, but you can view the full file.
SteamVR System Report created Thu Mar 26 21:45:33 2020
<Report>
SteamVR Version: 1.11.2 (1585185762)
SteamVR Date: 2020-03-26
Steam: Public
Steam Branch: beta
Steam AppID: 250820
Tracking: lighthouse
View cloudSettings
{"lastUpload":"2020-02-21T14:22:15.610Z","extensionVersion":"v3.4.3"}
View vrm_pp_sh.hpp
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
View vrm_core_sh.hpp
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
View vrm_core_sh.hpp
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
View function_ref_ub.cpp
#include <functional>
#include <utility>
#include <type_traits>
#include <iostream>
template <typename TSignature>
class function_ref;
template <typename TReturn, typename... TArgs>
class function_ref<TReturn(TArgs...)> final
View function_view.hpp
#include <type_traits>
#include <utility>
#ifdef __clang__
namespace std
{
template <typename T, typename... Ts>
using is_invocable = std::is_callable<T(Ts...)>;
}
#endif
View scelta_single_header.hpp
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
#include <utility>
#ifndef FWD