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
<svg class="logo" viewBox="0 0 196 50" width="196px" height="100%" preserveAspectRatio="xMinYMin meet"> | |
<title>Image Title</title> | |
<switch> | |
<use xlink:href="#khat-logo"></use> | |
<foreignObject> | |
<img class="logo" alt="KHAT logo" src="~/Content/images/logo.png" /> | |
</foreignObject> | |
</switch> | |
</svg> |
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
// Add dropdown to multiselect elements | |
.k-multiselect { | |
position: relative; | |
&:after { | |
content: " "; | |
width: 0; | |
height: 0; | |
position: absolute; | |
top: 45%; |
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 | |
posttoslack() { | |
# Prompt user for Slack #channel or @username | |
while true; do | |
read -p "# | |
# Post to channel or username: " "CHANNEL" | |
case "$CHANNEL" in | |
[\#\@][[:lower:]-_]* ) eval SUCCESSMESSAGE="$CHANNEL"; eval CHANNEL='\"channel\":"\"$CHANNEL\"",'; break;; |
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
# -*- Conf -*- | |
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
showbranch = auto | |
ui = true | |
# color.branch | |
# A boolean to enable/disable color in the output of git-branch(1). May be set to always, false (or |
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 | |
case "$(curl -s --max-time 2 -I $1 | sed 's/^[^ ]* *\([0-9]\).*/\1/; 1q')" in [23]) echo "HTTP connectivity is up";; 5) echo "The web proxy will not let us through";; *) echo "The network is down or very slow";; esac | |
### Run | |
# $ bash network-connectivity.sh http://google.com/ | |
### Result | |
# $ HTTP connectivity OK |
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 | |
status=$(curl $1 -s -L -I -o /dev/null -w '%{http_code}') | |
echo $status | |
### Run | |
# $ bash http-status.sh http://google.com/ |
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
/* ============================================================================= | |
CSS Declarations | |
========================================================================== */ | |
/* ==|== The Standard Way =================================================== */ | |
.foo::before { | |
/* ...css rules... */ | |
} |
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
"addAlbumMenus", | |
"addFreeSongs", | |
"addPlaylistMenus", | |
"addSongListToCache", | |
"addSongsToPlaylist", | |
"addSongToList", | |
"addSongToList", | |
"addToAnimation", | |
"albumDeleted", | |
"albumDeleted", |
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
.bgimage { | |
width:100%; | |
height:500px; | |
background: url('https://images.unsplash.com/photo-1438109491414-7198515b166b?q=80&fm=jpg&s=cbdabf7a79c087a0b060670a6d79726c'); | |
background-repeat: no-repeat; | |
background-position: center; | |
background-size:cover; | |
background-attachment: fixed; | |
} | |
.bgimage h5 { |