Skip to content

Instantly share code, notes, and snippets.

# function parse_git_branch() {
# git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/'
# }
function build_prompt() {
local NORMAL
local WHITE
local ITALIC
local START
local USER_AND_HOST

Keybase proof

I hereby claim:

  • I am norbertszivos on github.
  • I am norbertszivos (https://keybase.io/norbertszivos) on keybase.
  • I have a public key whose fingerprint is 53A3 ABAE 0B0F 7BAD 342B F5EA E1A4 6411 B434 44EA

To claim this, I am signing this object:

@norbertszivos
norbertszivos / email_regexp
Last active August 29, 2015 14:10
email regular expression
# This email regexp is try to follow the standard. (This is not support IP address in domain part)
# Ruby version
/\A(("[^\f\n\r\t\v\b]+[\s\w\(\),:;<>\[\]@\\!\#$%&'"*+\/=?^`{|}~-]+")|([\w!\#$%&'*+\/=?^`{|}~-]+(?:\.[\w!\#$%&'*+\/=?^`{|}~-]+)*))@((((\w+\-+)|(\w+\.))*\w{1,}\.[a-zA-Z]{2,6})|([a-zA-Z]{2,6}))\z/
# Other
^(("[^\f\n\r\t\v\b]+[\s\w\(\),:;<>\[\]@\\!\#$%&'"*+\/=?^`{|}~-]+")|([\w!\#$%&'*+\/=?^`{|}~-]+(?:\.[\w!\#$%&'*+\/=?^`{|}~-]+)*))@((((\w+\-+)|(\w+\.))*\w{1,}\.[a-zA-Z]{2,6})|([a-zA-Z]{2,6}))$