Skip to content

Instantly share code, notes, and snippets.

# python3 readfstr.py input.epub output.epub
import argparse
from ebooklib import epub # pip install ebooklib
from bs4 import BeautifulSoup, NavigableString # pip install bs4
def make_half_word_bold(soup, text):
new_elements = []
for word in text.split():
n = len(word)
@vladikk
vladikk / ExecutionResult.cs
Created March 19, 2017 14:57
Command execution result object for CQRS based systems
using System;
namespace Example
{
public abstract class ExecutionResult
{
protected ExecutionResult(Guid aggregateId, Guid commandId, DateTime executedOn)
{
AggregateId = aggregateId;
CommandId = commandId;