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
from deutschebahn import DBInfoscreen | |
from pyfis.aegmis import ECSLCDisplay | |
from local_settings import * | |
def get_info_long(train): | |
messages = [] | |
if train.get('isCancelled'): | |
messages.append("fällt aus") |
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
#!/bin/bash | |
# To the extent possible under law, I hereby waive all copyright | |
# and related or neighboring rights to this program. | |
# Determine the path of this script, to read the aliases file relative to that | |
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) | |
# Check if the unbuffer command is available. | |
# It is used to retain colored output from wg show |
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
def catch_only_rate_limit(): | |
try: | |
do_some_twitter_stuff() | |
except tweetpony.APIError as error: | |
if error.code == 88: | |
print "Oops, rate limited!" | |
else: | |
raise |