Skip to content

Instantly share code, notes, and snippets.

@eirnym
eirnym / GitHub Flavored Asciidoc (GFA).adoc
Created Mar 14, 2021 — forked from dcode/GitHub Flavored Asciidoc (GFA).adoc
Demo of some useful tips for using Asciidoc on GitHub
View GitHub Flavored Asciidoc (GFA).adoc

GitHub Flavored Asciidoc (GFA)

@eirnym
eirnym / AsciidocCheatsheet.adoc
Created Mar 14, 2021 — forked from powerman/AsciidocCheatsheet.adoc
Asciidoc cheatsheet for GitHub
View AsciidocCheatsheet.adoc

Asciidoc cheatsheet for GitHub

@eirnym
eirnym / representable_base.py
Last active Aug 29, 2015 — forked from exhuma/representable_base.py
this representable base adds generatable __str__ and __repr__
View representable_base.py
# based on: https://gist.github.com/exhuma/5935162#file-representable_base-py
class RepresentableBase(object):
""" Add automatic __repr__ and __str__ to SQLAlchemy ORM models
"""
def _repr_worker(self, attribute):
mapper = object_mapper(self)
items = [(p.key, getattr(self, p.key))
for p in (
mapper.get_property_by_column(c)