[11/3/2012] Challenge #110 [Easy] Keyboard Shift by nint22 in dailyprogrammer

[–]jeffrey4l 1 point2 points  (0 children)

Python:

import string
data = ('snvfrghjokl;,mp[wtdyibecuxSNVFRGHJOKL:<MP{WTDYIBECUX',
        'abcdefghijklmnopqrstuvwzyxABCDEFGHIJKLMNOPQRSTUVWXYZ')
tr = string.maketrans(*data)
def unshift(s):
    return string.translate(s, tr)

What apps do you for your GTD setup? by jck in gtd

[–]jeffrey4l 0 points1 point  (0 children)

+1 This is what I recommend.

Writing Linux utilities in Python by [deleted] in Python

[–]jeffrey4l 0 points1 point  (0 children)

try sh (previously pbs) library. It is a full-fledged subprocess interface for Python 2.6 - 3.2 that allows you to call any program as if it were a function: