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
ps xmo rss=,pmem=,comm= | while read rss pmem comm; ((n++<5)); do | |
size="$[rss/1024]"; | |
short=$[4-${#size}]; | |
size="(${size}M)"; | |
i=0; | |
while ((i++ < short)); do size=" $size"; done; | |
pmem="${pmem%%.*}" | |
if (($pmem >= 20)); then color=$'\e[31m'; |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin icon-overlay-base { | |
background: white; | |
font-size: 154px; | |
opacity:0.75; | |
padding: 39px 0 0 0; |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
.block { | |
color: red; | |
&__title { | |
text-transform: uppercase; | |
} |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
.block { | |
color: red; | |
&__title { | |
text-transform: uppercase; | |
} |
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
Running "modernizr:dist" (modernizr) task | |
Enabled Extras | |
>> shiv | |
>> load | |
>> cssclasses | |
Looking for Modernizr references | |
in source/js/script.js |
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 ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' |
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
// calculate percentage widths from pixels based on site width (or other widths) | |
// Useage: `padding-left: res-width(10px);` | |
@function res-width($pixels, $container: $site-width) { | |
@return percentage($pixels / $container); | |
} |
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
# Delete all git branches merged into master | |
git-branch-cleanup() { | |
echo "Do you want to delete remote branches? [y/n]" | |
read remote | |
echo "Do you want to delete local branches? [y/n]" | |
read local | |
echo "Which branch do you want to have as the base? All branches merged into this branch will be deleted. Defaults to master." | |
read branchBase | |
git checkout $branchBase | |
IFS=$'\n' |
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
# Recursive list of files and directories | |
lsr() { | |
if [[ "$1" == "" ]]; then | |
N="3" | |
else | |
N="$1" | |
fi | |
find . -maxdepth "$N" | |
} |
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 | |
if [[ "$1" == "" ]]; then | |
echo "Please pass in the path to the Sass directory to search for extended class" | |
exit 1 | |
fi | |
dir="$1" | |
uses="$(grep -rn "@extend \." "$dir")" | |
IFS=$'\n' | |
classes="" | |
for i in $uses; do |