This file contains hidden or 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
# git branch highlighting | |
function parse_git_branch | |
{ | |
branch=`git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'` | |
if [ -n "$branch" ]; then | |
echo "${branch} " | |
fi | |
} | |
function proml | |
{ |
This file contains hidden or 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 rmb { | |
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
if [ "$current_branch" != "master" ]; then | |
echo "WARNING: You are on branch $current_branch, NOT master." | |
fi | |
echo "Fetching merged branches..." | |
git remote prune origin | |
remote_branches=$(git branch -r --merged | grep -v '/master$' | grep -v "/$current_branch$") | |
local_branches=$(git branch --merged | grep -v 'master$' | grep -v "$current_branch$") | |
if [ -z "$remote_branches" ] && [ -z "$local_branches" ]; then |
This file contains hidden or 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
// RANGES | |
// We use these functions to define ranges for various things, like media queries. | |
@function lower-bound($range) { | |
@if length($range) <= 0 { | |
@return 0; | |
} | |
@return nth($range, 1); | |
} | |
@function upper-bound($range) { |
This file contains hidden or 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
// vertical gradient (using bootstraps mixin) | |
.example | |
{ | |
#gradient > .vertical(@gray85, @gray90); | |
} | |
// horizontal gradient (using bootstraps mixin) | |
.example2 | |
{ | |
#gradient > .horizontal(@gray85, @gray90); |
This file contains hidden or 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
# git branch highlighting | |
function parse_git_branch | |
{ | |
branch=`git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'` | |
if [ -n "$branch" ]; then | |
echo "${branch} " | |
fi | |
} | |
function proml | |
{ |
This file contains hidden or 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 sync-content | |
{ | |
echo "WARNING: This will sync ALL components (i.e. copy) from $2 to $3 for $1." | |
read -p "Are you sure you want to continue? (y/n)" -n 1 choice | |
echo | |
if [ "$choice" == "y" ] || [ "$choice" == "Y" ]; then | |
# sync the content | |
echo "Syncing content from $2 to $3 for $1..." | |
curl \ | |
-F":operation=copy" \ |
This file contains hidden or 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
# Sticky Nav | |
# ****************************************** | |
if (detectPage() == "home") | |
$(window).scroll (e) -> | |
marqueeHeight = $(".marquee").height() | |
if ($(this).scrollTop() >= marqueeHeight) | |
$(".mainnav, .mobilenav").css | |
position: "fixed" | |
top: "0px" | |
$(".spacing-fix").css |
This file contains hidden or 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
alias pull="git fetch upstream && git pull upstream master" | |
alias commit="git add . && git commit -a" |
NewerOlder