Skip to content

Instantly share code, notes, and snippets.

@brunoliveira8
brunoliveira8 / app.py
Created June 22, 2020 11:00
Event Sourcing Concepts
import json
class EventStore:
base_location = 'events'
storage_format = 'jsonl'
@classmethod
def _get_event_storage_path(cls, key):
class Command:
pass
class CommandHandler:
pass
class Action(ABC):
def __init__(self)
@brunoliveira8
brunoliveira8 / internetOfThings.py
Created August 30, 2015 19:14
Aciona um dispositivo serial através de uma página web.
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 28 19:41:13 2014
@author: Bruno
"""
from flask import Flask
import serial
app = Flask(__name__)