Skip to content

Instantly share code, notes, and snippets.

View mdornseif's full-sized avatar

Maximillian Dornseif mdornseif

View GitHub Profile
{
"meta": {
"code": 200
},
"data": {
"created_at": "2013-06-07T14:05:17Z",
"num_stars": 1,
"num_replies": 6,
"source": {
"link": "http:\/\/im-fluss.appspot.com",
{
"meta": {
"code": 200
},
"data": {
"created_at": "2013-06-07T14:14:04Z",
"num_stars": 0,
"num_replies": 0,
"source": {
"link": "http:\/\/riposteapp.net",
{
"meta": {
"code": 200
},
"data": {
"created_at": "2013-06-07T14:15:00Z",
"num_stars": 0,
"num_replies": 0,
"source": {
"link": "http:\/\/tigerbears.com\/felix",
@mdornseif
mdornseif / mt940toOFX.py
Last active July 14, 2020 13:42
Convert SWIFT MT940 data to OFX.
#!/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.
"""
@mdornseif
mdornseif / osm_shortlink.py
Created May 26, 2013 13:40
Implementation of OpenStreetmap Shortlinks in Python
{
"annotations": [
{
"type": "net.app.core.oembed",
"value": {
"title": "In der Wand!",
"url": "http:\/\/distilleryimage11.s3.amazonaws.com\/b0672d1ec53411e2a9ea22000ae81462_7.jpg",
"height": 612,
"width": 612,
"version": "1.0",
@mdornseif
mdornseif / wp2dayone.py
Created March 26, 2013 07:30
Move Posts from Github to Dayone.
# transfer entries from a Wordpress blog to the DayOne app
# deletes the postings in Wordpress
from wordpress_xmlrpc import Client, WordPressPost
from wordpress_xmlrpc.methods.posts import GetPosts, NewPost, DeletePost
from wordpress_xmlrpc.methods.users import GetUserInfo
import os
import subprocess
import time
@mdornseif
mdornseif / finde.py
Created August 27, 2012 15:47
Reconstruct your Travel Route based on GPS Information in a folder of Pictures
# Reconstruct your Travel Route based on GPS Information
# in a folder of Pictures
# Files to watch for
pattern = '*.JPG'
# Dirs to search
roots = ['/Users/md/Pictures/iPhoto Library/Originals', '/Users/md/Pictures/Aperture Library.aplibrary/Masters/2012/']
# output is in `reise.kml`
@mdornseif
mdornseif / gist:2834507
Created May 30, 2012 08:19 — forked from ambar/gist:1534274
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
#!/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