Skip to content

Instantly share code, notes, and snippets.

View funkyfuture's full-sized avatar

Frank Sachsenheim funkyfuture

  • The Soviet Sector
View GitHub Profile
#!/usr/bin/env python
# Author: Chris Eberle <eberle1080@gmail.com>
# Watch for any changes in a module or package, and reload it automatically
import pyinotify
import imp
import os
class ModuleWatcher(pyinotify.ProcessEvent):
"""

An XML-TEI-targeted Django app - a proposal

Abstract

This document describes the approach for a first iteration to implement building blocks that aim to easily develop XML-TEI related applications for the Django web framework.

Motivation

@funkyfuture
funkyfuture / app.ini
Created January 31, 2018 21:50
Gitea config
APP_NAME = Gitea: Git with a cup of tea
RUN_MODE = prod
RUN_USER = git
[repository]
ROOT = /data/git/repositories
[repository.upload]
TEMP_PATH = /data/gitea/uploads
# read on mixins: https://www.linuxjournal.com/article/4540
# i have just read the first or two paragraphs, but it resembles what i remember
# please inform me if you think applying that concept makes no sense, and inheritence would be preferable
# the methods would be implemented by the plugin/extension/mixin-class,
# this provides a client code perspective
class Document:
def exist_push():
self.config.exist.client._update_document(data=str(self), self.config.exist.docuemnt_path)