Skip to content

Instantly share code, notes, and snippets.

mdornseif / stationflags.diff
Last active Sep 3, 2019
Make Therion honor Station Flags and display Station Comments
View stationflags.diff
diff --git i/thexpmap.cxx w/thexpmap.cxx
index 118323a..f41f165 100644
--- i/thexpmap.cxx
+++ w/thexpmap.cxx
@@ -2756,7 +2756,7 @@ thexpmap_xmps thexpmap::export_mp(thexpmapmpxs * out, class thscrap * scrap,
flagexp = false;
-#define thexpmatselected_stationflag(flag,mid) if (((slp->station->flags & flag) == flag) && out->symset->is_assigned(mid)) flagexp = true;
+#define thexpmatselected_stationflag(flag,mid) if (((slp->station->flags & flag) == flag)) flagexp = true;
View test StringProperty to
# on the Python side you can not ovbserve a change in type:
from google.appengine.ext import ndb
from google.appengine.ext.ndb import polymodel
class TestModel(ndb.Model):
s_ni_nd = ndb.StringProperty(indexed=False)
s_ni_du = ndb.StringProperty(indexed=False, default=unicode('ufoo'))
View output.txt
'Content-Type' 'image/png'
'Content-Length' '89142'
'X-AppEngine-Upload-Creation' '2018-06-13 23:05:52.565812'
'X-AppEngine-Cloud-Storage-Object' '/gs/eap-dokumente/-/common/dokumente/L2Fw='
-------> 8bit
mdornseif /
Last active Oct 6, 2017
Proof of concept to converter
# encoding: utf-8
# Proof of concept to converter
import urlparse
from HTMLParser import HTMLParser
from ghost import Ghost #
from markdownify import markdownify as md
from wordpress import API
def versionsverbesserung_fuer_sofort([{'artnr': menge}, ...]):
ret = defaultdict(0)
erfuellbar = True
# wir koennen ja theoretisch mehrfach auf den selben Artikel zugreifen
# deswegen merken wir uns, was wir schon an freier menge "verbruacht"
# haben.
freimengenspeicher = {}
for artnr, menge in ...:
eap = get_eap(artnr)
if eap.fuer_kunde:
View -
diff --git i/modules/market/ w/modules/market/
index 6334a83..90903ce 100644
--- i/modules/market/
+++ w/modules/market/
@@ -16,6 +16,7 @@ from google.appengine.ext import ndb
from huTools import postmark
import config
from modules import bot
View validators.diff
diff --git i/modules/market/ w/modules/market/
index dd3646a..e78a8d8 100644
--- i/modules/market/
+++ w/modules/market/
@@ -6,6 +6,8 @@ modules/market/
Created by Christian Klein on 2015-12-01.
Copyright (c) 2015 HUDORA GmbH. All rights reserved.
+import logging
View login.diff
mistakenot-2:appengine-toolkit md$ git diff
diff --git i/gaetk/ w/gaetk/
index aeb7ebe..e50d63d 100755
--- i/gaetk/
+++ w/gaetk/
@@ -24,10 +24,12 @@ import base64
import datetime
import hashlib
import os
+import string
View Spot the Hijack
(* Script to record and tag spotify tracks, by Lloyd Moore *)
(* Modified by Tiffany G. Wilson to resolve audio splitting issues, automate starting/stopping, and add recording customization *)
(* Modified by on 7/18/2014 -- replace slash with dashin new filename to prevent directory write errors *)
(* Snippets for controlling Spotify are from Johnny B on tumblr ( *)
(* The idea of using delayed tagging/filename updating is from a guest user on pastebin ( *)
(* The only thing to change in the script is the output format; you must change the file extension and the recording format to match *)
(* Run this script once a song you want to record is queued (stopped at beginning) or playing *)
(* Running the script will initiate hijacking, recording and audio playback *)
(* To stop script, pause Spotify or wait for album/playlist to end*)
(* To set id3 tags, use application Kid3 (
#!/usr/bin/env python
# encoding: utf-8
""" - Dieses Progrtamm liesst Volksbank Kontoauszüge und konvertiert sie in OFX.
OFX wurde mit getestet.
Created by Maximillian Dornseif on 2010-06-05.
Copyright (c) 2010, 2013 HUDORA. All rights reserved.
You can’t perform that action at this time.