Skip to content

Instantly share code, notes, and snippets.

View brian-griffin's full-sized avatar

Brian Griffin brian-griffin

View GitHub Profile
function github {
branch="$(git rev-parse --abbrev-ref HEAD)"
url="$(git config --get remote.origin.url)"
url=${url/git@github.com:/http://github.com/}
url=${url/.git/}
if [[ $1 =~ "compare" ]]; then action="compare"
else action="tree"; fi
if [[ $2 != "" ]]; then base="$2..."
@brian-griffin
brian-griffin / sample.html
Created November 9, 2012 14:51 — forked from harpalsingh/IE7_zindex_fix_for_parent
We want to add a z-index of 1 to a container_div, but only if it contains a target_widget (we can't add z-index:1 to all container_div's)
<div class="container_div">
<div class="target_widget"></div>
</div>
<div class="container_div">
<div class="non_target"></div>
</div>