Skip to content

Instantly share code, notes, and snippets.

View anatoly-spb's full-sized avatar

Anatoly Shirokov anatoly-spb

  • RLISYSTEMS
  • Saint-Petersburg, Russia
View GitHub Profile
@anatoly-spb
anatoly-spb / all-border-line-styles.xml
Created April 12, 2024 10:55
All border line styles
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<LastAuthor>Me</LastAuthor>
<Revision>1</Revision>
namespace coyield
{
template<typename T>
struct generator_type
{
struct promise_type;
using coroutine_handle_type = stdco::coroutine_handle<promise_type>;
coroutine_handle_type handle;
generator_type(coroutine_handle_type handle) : handle{ handle }
@anatoly-spb
anatoly-spb / pretty_thread_logger.h
Last active April 26, 2023 06:58
Pretty Thread Logger
/*
* Pretty thread logger
*
* Copyright (C) 2020 Anatoly Shirokov.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@anatoly-spb
anatoly-spb / cpp.std.coroutines.draft.md
Created May 26, 2020 21:28 — forked from MattPD/cpp.std.coroutines.draft.md
C++ links: Coroutines (WIP draft)
@anatoly-spb
anatoly-spb / stream_test.cpp
Created February 20, 2018 22:06
Lazy emaluation based on stream
#pragma warning(disable : 4251 4275)
#include "gtest/gtest.h"
#include <functional>
#include <initializer_list>
#include <memory>
#include <optional>
#include <vector>
/**
@anatoly-spb
anatoly-spb / params.h
Created February 20, 2018 10:08
Tagging
///////////////////////////////////////////////////////////////////////////////
// params.h
//
// Файл содержит определение вспомогательных шаблонов, с помощью которых
// можно контролировать правильность передачи параметров при вызове
// серверных методов (порядок, тип и значение аргументов).
//
// Подход заключается в маркировании типов аргументов с помощью
// тегов с метаинформацией о параметре метода (method::name, method::age и т.д.):
// // метаинформация