Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Steve Fan stevefan1999-personal

I may be slow to respond.
Block or report user

Report or block stevefan1999-personal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PatchNVStream.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Security.Principal;
using System.Threading.Tasks;
public class SigScanSharp
import { observer, inject } from 'mobx-react'
import { observable, action } from 'mobx'
import React, { Component } from 'react'
import styled from 'styled-components'
Span = styled.span"""
color: brown;
Title = styled.h1"""
View just_in_time.hpp
#pragma once
#include <functional> // function
#include <type_traits> // is_same
#include <future> // extra: async
#include <variant> // extra: get, holds_alternative
#include <chrono> // high_resolution_clock, high_resolution_clock::time_point, _seconds
#include <optional>
#include <string>
stevefan1999-personal / make_array.hpp
Created Sep 2, 2017
(Proof-of-concept) C++17 make_array implementation
View make_array.hpp
template <class T = void, class... Args>
constexpr auto make_array(Args&&... t) {
// T is not void: deduced array type is T
if constexpr (!std::is_same<T, void>()) {
return std::array<T, sizeof...(Args)> { std::forward<Args>(t)... };
// T is void: deduced array type is U = std::common_type_t<Args...>
using U = std::common_type_t<Args...>;
// T is void and one of the argument is a specialization of std::reference_wrapper<U>: ill-formed
You can’t perform that action at this time.