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
#!/bin/bash | |
stash_name="wip" | |
echo "> Updating master on all git repositories in the current directory" | |
for dir in */ | |
do | |
if [ -d ${dir}/.git ]; then | |
cd ${dir} | |
stashed=false |
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
<?php | |
/** | |
* This function extends get_template_part to include the ability | |
* to pass variables to the template file | |
* | |
* @param $template_names array|string Either a single template name or an array of template names, ordered by priority | |
* @param $variables array The variables to make available to the template | |
*/ | |
function get_template_part_with($template_names, $variables = array()) { |
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
// Set the background image for retina devices | |
.background-image-retina(@url, @ext, @width, @height) { | |
@lowres: "@{url}.@{ext}"; | |
@highres: "@{url}@2x.@{ext}"; | |
background-image: url(@lowres); | |
background-size: @width @height; | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2), |
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
#!/bin/bash | |
function add_spacer { | |
[[ $1 =~ ^[0-9]+$ ]] && times=$1 || times=1 | |
echo "Adding $times spacer(s)" | |
i=0; | |
while [[ $i -lt $times ]]; do | |
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' | |
((i++)) |
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
# Path set for homebrew | |
export PATH="/usr/local/bin:$PATH" | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' | |
alias lwj='cd /Volumes/CC\&A\ LIVE\ WEB\ JOBS/' | |
alias reinit='cd "`pwd`"' |
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
zip -r <project_name>.zip Site -x *.git* -x *node_modules* |
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
calculateWidthOld: function (elem) { | |
var tr, values, transform, | |
a, b, | |
angle, width, height, | |
adjustedWidth; | |
transform = [ | |
elem.css('-webkit-transform'), | |
elem.css('-moz-transform'), | |
elem.css('-ms-transform'), |
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
.branding { | |
display: block; | |
.between(@grid-float-breakpoint, @screen-md, { | |
display: none; | |
}); | |
} | |
.between(@min, @max, @rules) { | |
@media screen and (min-width: @min) and (max-width: @max) { |
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
#!/bin/bash | |
blue="\e[0;34m" | |
purple="\e[0;35m" | |
orange="\e[0;33m" | |
green="\e[0;32m" | |
white="\e[0;37m" | |
red="\e[0;31m" | |
echo "-------------------------------------------" |