Skip to content

Instantly share code, notes, and snippets.

@aranega
aranega / microreflexivekernel.py
Last active May 3, 2024 02:04
Micro reflexive MDE-like kernel in Python
class MList(object):
def __init__(self, owner, feature):
self.innerlist = []
self.owner = owner
self.feature = feature
def size(self):
return len(self.innerlist)
def append(self, value, update_opposite=True):
@aranega
aranega / plantumlgen.py
Last active May 27, 2025 07:52
Quick ecore to plantuml generator in Python using PyEcore
from pyecore.resources import ResourceSet
from pyecore.utils import dispatch
import pyecore.ecore as ecore
class PlantUMLSwitch(object):
def __init__(self):
self.visited = set()
@dispatch