duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
function parse_git_dirty { | |
git diff --quiet || echo " *" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/(\1$(parse_git_dirty))/" | |
} | |
export PS1='\w $(parse_git_branch)\$ ' |
function get_git_branch { | |
git branch | awk '/^\*/ { print $2 }' | |
} | |
function get_git_dirty { | |
git diff --quiet || echo '*' | |
} | |
function get_git_prompt { | |
git branch &> /dev/null || return 1 | |
echo "[$(get_git_branch)$(get_git_dirty)] " | |
} |
/** | |
* Convert From/To Binary/Decimal/Hexadecimal in JavaScript | |
* https://gist.github.com/faisalman | |
* | |
* Copyright 2012-2015, Faisalman <fyzlman@gmail.com> | |
* Licensed under The MIT License | |
* http://www.opensource.org/licenses/mit-license | |
*/ | |
(function(){ |