This file contains hidden or 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 hidden or 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 hidden or 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
| { | |
| "meta": { | |
| "code": 200 | |
| }, | |
| "data": { | |
| "created_at": "2013-06-07T14:15:00Z", | |
| "num_stars": 0, | |
| "num_replies": 0, | |
| "source": { | |
| "link": "http:\/\/tigerbears.com\/felix", |
This file contains hidden or 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
| { | |
| "meta": { | |
| "code": 200 | |
| }, | |
| "data": { | |
| "created_at": "2013-06-07T14:14:04Z", | |
| "num_stars": 0, | |
| "num_replies": 0, | |
| "source": { | |
| "link": "http:\/\/riposteapp.net", |
This file contains hidden or 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
| { | |
| "meta": { | |
| "code": 200 | |
| }, | |
| "data": { | |
| "created_at": "2013-06-07T14:05:17Z", | |
| "num_stars": 1, | |
| "num_replies": 6, | |
| "source": { | |
| "link": "http:\/\/im-fluss.appspot.com", |
This file contains hidden or 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
| "images": { | |
| "low_resolution": { | |
| "url": "http://distillery.s3.amazonaws.com/media/2010/07/16/4de37e03aa4b4372843a7eb33fa41cad_6.jpg", | |
| "width": 306, | |
| "height": 306 | |
| }, | |
| "thumbnail": { | |
| "url": "http://distillery.s3.amazonaws.com/media/2010/07/16/4de37e03aa4b4372843a7eb33fa41cad_5.jpg", | |
| "width": 150, | |
| "height": 150 |
This file contains hidden or 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
| { | |
| "meta": { | |
| "code": 200 | |
| }, | |
| "data": { | |
| "created_at": "2013-06-09T07:39:00Z", | |
| "num_stars": 0, | |
| "num_replies": 0, | |
| "source": { | |
| "link": "http:\/\/im-fluss.appspot.com", |
This file contains hidden or 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
| { | |
| "meta": { | |
| "code": 200 | |
| }, | |
| "data": { | |
| "created_at": "2013-06-09T21:35:09Z", | |
| "num_stars": 1, | |
| "num_replies": 0, | |
| "source": { | |
| "link": "http:\/\/im-fluss.appspot.com", |
This file contains hidden or 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
| { | |
| "meta": { | |
| "code": 200 | |
| }, | |
| "data": { | |
| "created_at": "2013-06-23T11:12:04Z", | |
| "num_stars": 0, | |
| "num_replies": 0, | |
| "source": { | |
| "link": "http:\/\/im-fluss.appspot.com", |
This file contains hidden or 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 | |
| import sys | |
| def main(): | |
| if len(sys.argv) < 2: | |
| sys.stderr.write('Usage: %s filename\n' % sys.argv[1]) | |
| sys.exit() |