Skip to content

Instantly share code, notes, and snippets.

/* Copyright (c) 2021, 2022, 2023 Vinícius dos Santos Oliveira
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */
#include <csignal>
#include <boost/preprocessor/control/iif.hpp>
#include <boost/vmd/is_number.hpp>
#include <boost/vmd/empty.hpp>
/* Copyright (c) 2021, 2022, 2023 Vinícius dos Santos Oliveira
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */
#include <csignal>
#include <boost/preprocessor/control/iif.hpp>
#include <boost/vmd/is_number.hpp>
#include <boost/vmd/empty.hpp>

Trial.Protocol: Serialization docs

Boost.Serialization exposes an interface to read and write S-exprs. When you define codecs to your data structures in this manner, you’re only defining the mapping between your data structures and S-exprs. The JSON format can represent S-exprs easily through arrays.

struct Foobar {
const http = require('http');
const a = {
'content-type': 'text/plain'
};
const b = 'Hello, World!\n';
http.createServer((request, response) => {
response.writeHead(200, a);
response.write(b);
#include <optional>
#include <iostream>
#include <thread>
#include <mutex>
#include <boost/asio/io_context_strand.hpp>
#include <boost/asio/bind_executor.hpp>
#include <boost/asio/signal_set.hpp>
#include <boost/asio/post.hpp>
https://www.youtube.com/watch?v=QNM-njddhIw
https://en.wikipedia.org/wiki/Delimited_continuation
http://pllab.is.ocha.ac.jp/~asai/cw2011tutorial/main-e.pdf
https://arxiv.org/abs/1803.10228
https://www.cs.purdue.edu/homes/rompf/papers/wang-arxiv18b.pdf
http://okmij.org/ftp/continuations/index.html#tutorial
https://gist.github.com/sebfisch/2235780
https://stackoverflow.com/questions/39820304/understanding-shift-reset-in-racket
http://lisperator.net/pltut/cps-evaluator/yield
http://okmij.org/ftp/continuations/
local finnapomowidget = wibox.container.background(
wibox.widget{
text = '____',
align = 'center',
valign = 'center',
widget = wibox.widget.textbox
},
'green'
)
dbus.add_match(
#include <mathpresso/mathpresso.h>
#include <stdio.h>
int main(int argc, char* argv[]) {
mathpresso::Context ctx;
mathpresso::Expression exp;
// Initialize the context by adding MathPresso built-ins. Without this line
// functions like round(), sin(), etc won't be available.
ctx.addBuiltIns();
<html>
<body>
<a href="https://vinipsmaker.github.io/asiohttpserver/">Moved away</a>
</body>
</html>

Boost.Http