I hereby claim:
- I am thibaultcha on github.
- I am thibaultcha (https://keybase.io/thibaultcha) on keybase.
- I have a public key whose fingerprint is C646 C91F 25DF 3CEA 6E44 F93C E1D4 1D2D DFA3 B99D
To claim this, I am signing this object:
* { | |
-webkit-box-sizing:border-box; | |
-moz-box-sizing:border-box; | |
box-sizing:border-box; | |
} | |
.container { | |
position: relative; | |
width: 590px; | |
margin: 0 auto; |
function emojify (domElement, ressource, size) { | |
var element = document.getElementById(domElement) | |
var matching = element.innerHTML.match(/:[a-z0-9+_-]+:/g) | |
for (var i = matching.length - 1; i >= 0; i--) { | |
element.innerHTML = element.innerHTML.replace(matching[i], '<span style="display:inline-block;background-image:url('+ressource+matching[i].slice(1, matching[i].length - 1)+'.png);background-size:'+size+'px;height:'+size+'px;width:'+size+'px;vertical-align:-10%;"></span>') | |
} | |
} |
function coffee() { | |
hours=${1} | |
time=$(( $hours*3600 )) | |
echo "Will prevent sleeping for $hours hours." | |
$(caffeinate -u -t "$time") | |
} |
# Add this to your .profile | |
# $ fortunecow | |
function fortunecow() { | |
files=`cowsay -l | cut -d \: -f 2 | xargs echo` | |
arr=("${(s/ /)files}") | |
file=$arr[$RANDOM%$#arr+1] | |
fortune | cowsay -f $file | |
} |
I hereby claim:
To claim this, I am signing this object:
Improved version of nicholascloud/top-level-npm-pkgs.md
function npmls() {
npm ls "$@" | grep "^├─┬" | sed 's/├─┬ //g'
}
Gets you:
FILES_PATTERN='\.(js|coffee)(\..+)?$' | |
FORBIDDEN='console.log' | |
git diff --cached --name-only | \ | |
grep -E $FILES_PATTERN | \ | |
GREP_COLOR='4;5;37;41' xargs grep --color --with-filename -n $FORBIDDEN && echo "COMMIT REJECTED. Found $FORBIDDEN references. Please remove them before commiting" && exit 1 |