This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# osm_shortlink.py - MAximillian Dornseif 2013 - Public Domain | |
# see http://wiki.openstreetmap.org/wiki/Shortlink | |
# https://github.com/openstreetmap/openstreetmap-website/blob/master/lib/short_link.rb | |
# and makeShortCode in | |
# https://github.com/openstreetmap/openstreetmap-website/blob/master/app/assets/javascripts/application.js | |
# array of 64 chars to encode 6 bits. this is almost like base64 encoding, but | |
# the symbolic chars are different, as base64's + and / aren't very | |
# URL-friendly. | |
ARRAY = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_~' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Hackish Script to leech Karst/Cave Data from | |
# http://environnement.wallonie.be/cartosig/index.asp | |
# See http://cavehackers.de/77347676 for some background | |
import codecs | |
import urllib2 | |
import re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* myDatastore.test.ts - establish how the Datastore works. | |
* | |
* Created by Dr. Maximillian Dornseif 2021-12-12 in huwawi3backend 11.10.0 | |
* Copyright (c) 2021 Dr. Maximillian Dornseif | |
*/ | |
import { Datastore, Key } from "@google-cloud/datastore"; | |
describe("Key", () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
replication.py - extport data to external systems | |
Created by Maximillian Dornseif on 2011-05-01. | |
Copyright (c) 2011 HUDORA. All rights reserved. | |
""" | |
from __future__ import with_statement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
mt940toOFX.py - Dieses Progrtamm liesst MT940 SWIFT Kontostände und konvertiert sie in OFX. | |
OFX wurde mit xero.com getestet. | |
Created by Maximillian Dornseif on 2010-06-05. | |
Copyright (c) 2010, 2013, 2014 HUDORA. All rights reserved. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
thexpmat_station_type_export_mp(TT_DATAMARK_PAINTED,SYMP_STATION_PAINTED) | |
} | |
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# on the Python side you can not ovbserve a change in type: | |
# https://stackoverflow.com/questions/15254344/db-stringproperty-but-property-is-occasionally-datastore-types-text | |
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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM buchdurchschnittspreis2 | |
WHERE id in | |
(SELECT buchdurchschnittspreis2.id FROM buchdurchschnittspreis2 | |
LEFT OUTER JOIN (select min(id) as id from buchdurchschnittspreis2 | |
GROUP BY (artnr, datum) as KeepRows | |
ON buchdurchschnittspreis2.id=KeepRows.id | |
WHERE KeepRows.id IS NULL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------> | |
[] | |
'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 | |
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# encoding: utf-8 | |
# Proof of concept Wordpress.com to Ghost.org converter | |
import urlparse | |
from HTMLParser import HTMLParser | |
from ghost import Ghost # https://github.com/mdornseif/ghost-python | |
from markdownify import markdownify as md | |
from wordpress import API |
NewerOlder