Skip to content

Instantly share code, notes, and snippets.

View manikos's full-sized avatar

Nick Mavrakis manikos

View GitHub Profile
✨ - New feature
👾 - Bugfix
🎨 - UI and style
🔨 - Code refactoring, dependency upgrade, improving code quality
🚧 - Work in progress
🌐 - Translations
🚀 - Performance improvement
♿ - Accessibility improvements
🔒 - Security improvement
⚙️ - Configuration
@manikos
manikos / helpers.py
Created March 22, 2018 14:05
Various helper functions
from importlib.util import find_spec
from keyword import iskeyword
from django.apps import apps
from django.db.models.fields.files import ImageFileDescriptor
from pack.validation.const import CONFIG_NAME
class DictAttr(dict):
@manikos
manikos / prob.py
Last active March 15, 2018 15:35
Probability graph
__author__ = 'Raymond Hettinger'
from collections import Counter
from random import random
c = Counter(round(sum(random() for i in range(150))) for j in range(600))
for i in range(min(c), max(c)+1):
print('*' * c[i])
# OUTPUT