I hereby claim:
- I am urbanape on github.
- I am urbanape (https://keybase.io/urbanape) on keybase.
- I have a public key whose fingerprint is DD63 1A65 342D 6575 F6EC 72FA 752C 9BE2 C0D8 203C
To claim this, I am signing this object:
# Adapted from http://henrik.nyh.se/2008/12/git-dirty-prompt | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
# username@Machine ~/dev/dir [bzr:master]$ # clean working directory | |
# username@Machine ~/dev/dir [bzr:master*]$ # dirty working directory | |
# git | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} |
# Add to ~/.config/fish/functions/fish_prompt.fish | |
function parse_git_dirty | |
set -x git_output (git status 2> /dev/null | tail -n1) | |
if test $git_output | |
test $git_output = "nothing to commit (working directory clean)"; or echo -n "*" | |
end | |
end | |
function parse_git_branch |
I hereby claim:
To claim this, I am signing this object:
function parse_git_dirty | |
set -x git_output (git status 2> /dev/null | tail -n1) | |
if test $git_output | |
if test $git_output = "nothing to commit, working directory clean" | |
echo -n green | |
return | |
else | |
echo -n yellow | |
return | |
end |
I hereby claim:
To claim this, I am signing this object:
import binascii | |
import struct | |
class Punk(object): | |
"""Full blog post about hiding data within PNG files here: | |
http://blog.brian.jp/python/png/2016/07/07/file-fun-with-pyhon.html | |
Example use case: |
""" | |
When a local brewery, Strangeways, posted this on their Instagram | |
(https://www.instagram.com/p/B-K53XWH77G/?igshid=14k3jx3o5bpfe), | |
I thought it was cool, but would be limiting. What it needed was a | |
way to shuffle up the exercises day-to-day. | |
""" | |
import random | |
import string |