Instantly share code, notes, and snippets.
vladikk /readfstr.py
Last activeOctober 8, 2023 10:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
# python3 readfstr.py input.epub output.epub | |
importargparse | |
fromebooklibimportepub# pip install ebooklib | |
frombs4importBeautifulSoup,NavigableString# pip install bs4 | |
defmake_half_word_bold(soup,text): | |
new_elements= [] | |
forwordintext.split(): | |
n=len(word) |
vladikk /ExecutionResult.cs
CreatedMarch 19, 2017 14:57
Command execution result object for CQRS based systems This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
usingSystem; | |
namespaceExample | |
{ | |
publicabstractclassExecutionResult | |
{ | |
protectedExecutionResult(GuidaggregateId,GuidcommandId,DateTimeexecutedOn) | |
{ | |
AggregateId=aggregateId; | |
CommandId=commandId; |