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 | |
i=30 | |
for color in "black" "red" "green" "yellow" "blue" "purple" "cyan" "white" ; do | |
for attr in 0 1; do | |
if [[ $attr == 1 ]]; then | |
prefix="bold/light " | |
else | |
prefix="" | |
fi |
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 | |
read -p "Enter username: " -r ht_username | |
read -p "Enter password: " -sr ht_password | |
echo -en "\n" | |
read -p "Enter full path to where .htpasswd will be placed on the web server: " -r ht_path | |
htpasswd -nb $ht_username $ht_password > .htpasswd | |
echo "AuthType Basic |
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
* { background-color: rgba(255,0,0,.2); } | |
* * { background-color: rgba(0,255,0,.2); } | |
* * * { background-color: rgba(0,0,255,.2); } | |
* * * * { background-color: rgba(255,0,255,.2); } | |
* * * * * { background-color: rgba(0,255,255,.2); } | |
* * * * * * { background-color: rgba(255,255,0,.2); } |
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
class MediaQueries | |
breakpoints = | |
screenXS: '(min-width: 480px)' | |
screenXSmax: '(max-width: 767px)' | |
screenSM: '(min-width: 768px)' | |
screenMD: '(min-width: 992px)' | |
screenLG: '(min-width: 1200px)' | |
errorMsg = 'Invalid or no breakpoint specified.' | |
if Object.keys? then errorMsg += " Valid arguments: #{Object.keys(breakpoints)}" |
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
var toggleTouchScroll = function() { | |
var d = document; | |
if (typeof d.ontouchmove === 'object') return d.ontouchmove = function() { | |
return false; | |
}; | |
if (typeof d.ontouchmove === 'function') return d.ontouchmove() ? d.ontouchmove = function() { | |
return false; | |
} : d.ontouchmove = function() { | |
return true; | |
}; |