Skip to content

Instantly share code, notes, and snippets.

View kachsheev's full-sized avatar
💩

Anton Kashcheev kachsheev

💩
  • Tashkent, Uzbekistan
View GitHub Profile
#include <utility>
namespace stdext
{
namespace details
{
template<typename T, T... elems>
struct is_element_of_sequence_impl
@kachsheev
kachsheev / fork.c
Created February 27, 2018 21:35 — forked from Cr4sh/fork.c
fork() for Windows
/*
* fork.c
* Experimental fork() on Windows. Requires NT 6 subsystem or
* newer.
*
* Copyright (c) 2012 William Pitcock <[email protected]>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
@kachsheev
kachsheev / IntegerChecker.hpp
Created November 25, 2017 18:41
Get count signs in integer
// define
template<
Types::ullong_t MIN, Types::ullong_t MAX
, SizeTraits::SizeType BUFFER_SIZE
>
struct NumberChecker
{
template<typename IntType>
static inline SizeTraits::SizeType get(IntType value);
@kachsheev
kachsheev / learn.lua
Created May 6, 2017 15:44 — forked from tylerneylon/learn.lua
Learn Lua quickly with this short yet comprehensive and friendly script. It's written as both an introduction and a quick reference. It's also a valid Lua script so you can verify that the code does what it says, and learn more by modifying and running this script in your Lua interpreter.
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
----------------------------------------------------