Ever started working on the wrong branch with Git? Use gist stash
! Here is how to proceed in 3 steps:
1. Use stash to detach unstaged changes:
$ git stash
from random import choice | |
from string import ascii_lowercase, ascii_uppercase, digits | |
from tkinter import Tk, Entry, Button, StringVar | |
def random_string(length): | |
return ''.join(choice(ascii_lowercase + digits + ascii_uppercase) for i in range(length)) | |
root = Tk() | |
root.title('32 chars random string generator') |