Skip to content

Instantly share code, notes, and snippets.

View ihfazhillah's full-sized avatar

IbnuAmin ihfazhillah

View GitHub Profile
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')
@nepsilon
nepsilon / git-stash.md
Last active May 18, 2017 08:44
Ever started working on the wrong branch with Git? — First published in fullweb.io issue #6

Git stash

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