thiiiiings

This commit is contained in:
Jonas Zeunert
2020-02-13 19:05:55 +01:00
parent 82f1ad6ed8
commit 7414734dad
719 changed files with 41551 additions and 227 deletions

6
utils/Singleton.py Normal file
View File

@@ -0,0 +1,6 @@
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]

Binary file not shown.

Binary file not shown.

5
utils/util.py Normal file
View File

@@ -0,0 +1,5 @@
import re
def normalizeName(name):
splitName = re.findall('[A-Z][^A-Z]*', name)
return ' '.join(splitName)