This file contains 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
function mask(value, mask){ | |
let i = 0; | |
let v = value.toString(); | |
const removeChar = mask.split('').filter(function(item){ | |
return item != '#'; | |
}); | |
for(const a of removeChar){ |
This file contains 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
#... | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
PS1="${debian_chroot:+($debian_chroot)}\[\e[1m\]\[\e[01;32m\]\u@\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\]\[\e[33m\]\$(parse_git_branch)\[\e[00m\]$ " | |
#... |
This file contains 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
#!/usr/bin/env python2 | |
# | |
# dockbar.py | |
# | |
# Example program places a coloured bar across the top of the | |
# current monitor | |
# | |
# demonstrates | |
# | |
# (a) creating the bar as an undecorated "dock" window |