Usage:
cp-permissions <from> <to>...
Usage:
cp-permissions <from> <to>...
#!/bin/bash | |
if [[ -d "$*" ]]; then | |
find "${*%/}" -iname '*.mp3' -print0 -exec $0 {} + | |
else | |
mpg123 -C "$@" | |
fi |
#!/bin/bash | |
# Usage: | |
# retry <commands...> | |
# retry <retry times> <commands...> | |
# retry <retry times> <retry wait> <commands...> | |
if [[ $2 =~ ^-?[0-9]+$ ]]; then | |
cmd="${@:3}" | |
retry_times=$1 |
/** | |
* waitFor.js | |
* | |
* Silly lib that executes a given callback when a variable is defined on window. | |
* | |
* Matías Lescano | @mjlescano | |
* Licensed under the MIT license | |
*/ | |
;if( !window.waitFor ) (function(w){ |
@mixin css-guide { | |
content: ''; | |
position: absolute; | |
opacity: 0.3; | |
background-color: cyan; | |
} | |
@mixin css-guide-h { | |
@include css-guide; | |
left: 0; |
;(function(w, d){ | |
var rAF = w.requestAnimationFrame | |
|| w.mozRequestAnimationFrame | |
|| w.webkitRequestAnimationFrame | |
|| w.msRequestAnimationFrame | |
|| function(f){ setTimeout(f, 0) } | |
var s = window.localStorage | |
var available = null |
<img src="sarasa.svg" onerror="this.onerror=null;this.src=this.src.replace(/.svg$/, '.png')"> |
alias status="_exec git status" | |
alias s="git status --short" | |
alias fetch="_exec git fetch" | |
alias stash="_exec git stash" | |
alias commit="_exec git commit" | |
alias checkout="_exec git checkout" | |
alias add="_exec git add" | |
alias diff="_exec git diff" | |
alias co="checkout" |
/* | |
* jQuery openSelect | |
* | |
* Matías Lescano | @touteo | |
* Licensed under the MIT license | |
*/ | |
;(function($){ | |
$.fn.openSelect = function(options){ | |
return this.each(function(){ |