This file contains 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
/* Usage: | |
$('button').click(function() { | |
$("div.band").randomize("div.member"); | |
}); | |
*/ | |
(function($) { |
This file contains 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 | |
BASENAME=`basename "$0"` | |
TOTALMEM=0 | |
if (( "$#" == 1 )); then | |
while read -r line; do | |
temp=$(echo "$line" | grep $1 | grep -o -E "[0-9]{2,}") | |
TOTALMEM=$(( $temp+$TOTALMEM )) | |
done < <(ps -eo comm,rsz ) # process substitution |
This file contains 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 | |
# test if some command exists - like 'curl' | |
command -v curl >/dev/null 2>&1 || { echo "please make sure curl is properly installed. aborting..." >&2; exit 1; } | |
echo "ok all fine. proceeding..." | |
exit 0 | |
# test if file exits | |
if [ -f "$HOME/.bash/bash_aliases.sh" ]; then | |
source "$HOME/.bash/bash_aliases.sh" |
This file contains 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
@include background(image-url("foo.png"), | |
radial-gradient(center,ellipse cover,rgba(0,0,0, 0.4) 0, rgba(0,0,0, 0.9) 100%)); |
NewerOlder