Skip to content

Instantly share code, notes, and snippets.

View grisumbras's full-sized avatar

Dmitry Arkhipov grisumbras

View GitHub Profile
@grisumbras
grisumbras / Jamroot
Created May 22, 2024 15:21
B2 lib with internal tool
import host-platform ;
import mox ;
project myproj ;
exe moxtool : moxtool.cpp ;
explicit moxtool ;
hpp foobar.hpp : foobar.mox ;
lib mylib : foobar.hpp xyz.cpp ;
@grisumbras
grisumbras / main.cpp
Last active February 28, 2024 13:50
Parsing arithmetic expressions written in Russian
#include <boost/parser/parser.hpp>
#include <boost/parser/transcode_view.hpp>
#include <boost/variant2/variant.hpp>
#include <cassert>
#include <iostream>
#include <string>
namespace bp = boost::parser;
@grisumbras
grisumbras / coral.md
Last active July 19, 2020 18:41
Coral Implement Material

Coral

This paragraph uses rules from Implement Materials section found on page 99 of Realms of Terrinoth.

Underneath the surface of the sea, life flourishes as much as on land, and nowhere is it more diverse as in coral reefs. The reefs themselves are formed from colonies of small creatures that are held together with "coral skeleton", which is usually just called coral. Corals can have different colors: red, pink, white, blue, and even black -- and are often valued as much as precious gems. Being the basis of such thriving ecosystems corals amplify healing and protection magic.

When your character casts a Heal or Barrier spell using a coral implement, you may add :success: to the results.

@grisumbras
grisumbras / clipith
Created May 31, 2020 18:56
Paperclip-bound Demon
A minor demon called Clioperthael is bound to this paperclip. The demon has a had a curious interest in computers since their invention and is very eager to share the knowledge. Unfortunately, Clipith, as the demon prefers to call itself, is incredibly obnoxious, annoying and overall hard to deal with.
If the paperclip to which the demon is bound is with your character, they suffer 1 strain every time they make a Computers check. Additionally, as an incidental they can suffer 2 strain and have the demon assist them in that Computers check. The demon's Intellect rating is 2, and its Computers rank is 5.
Your GM can also have Clippith interject in a conversation that involves anything related computers (to everybody's frustration).
Encumbrance: 0
Rarity: 8
Price: 2000
from conans import (
ConanFile,
tools,
)
import os
class MyConan(ConanFile):
settings = {
"os": ("Linux",),
"arch": ("x86_64", "armv6", "armv7"),
template <class Vector, class ProtoAllocator>
auto require(Vector &&vec, std::execution::allocator_t<Allocator> prop) {
using V = std::decay_t<Vector>;
using SourceAllocator = typename V::allocator_type;
using ValueType = typename V::value_type;
using ProtoTraits = std::allocator_traits<ProtoAllocator>;
using TargetAllocator =
typename ProtoTraits::template rebind_alloc<ValueType>;
@grisumbras
grisumbras / GitHub Flavored Asciidoc (GFA).adoc
Last active May 4, 2018 22:30 — forked from dcode/GitHub Flavored Asciidoc (GFA).adoc
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

BEGIN
"Jabberwocky"
’Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.
“Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!