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
$(window).scroll(function() { | |
if ( $("#ads-page").is(":visible") ) { | |
if ( $(window).scrollTop() + $(window).height() === $(document).height() ) { | |
that.config.adsOffset += that.config.adsLimit; | |
that.getAds(); | |
} | |
} | |
}); |
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
input[type=text]::-webkit-input-placeholder { color: #d9d9d9; }/* WebKit browsers */ | |
input[type=text]:-moz-placeholder { color: #d9d9d9; }/* Mozilla Firefox 4 to 18 */ | |
input[type=text]::-moz-placeholder { color: #d9d9d9; }/* Mozilla Firefox 19+ */ | |
input[type=text]:-ms-input-placeholder { color: #d9d9d9; }/* Internet Explorer 10+ */ |
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
<!-- Facebook --> | |
<meta property="og:title" content="Title of your content" /> | |
<meta property="og:description" content="Description Here" /> | |
<meta property="og:url" content="http://www.example.com" /> | |
<meta property="og:site_name" content="Your Site Name" /> | |
<meta property="og:image" content="http://example.com/ogp.jpg" /> | |
<meta property="og:image:secure_url" content="https://secure.example.com/ogp.jpg" /> | |
<meta property="og:image:type" content="image/jpeg" /> | |
<meta property="og:image:width" content="500" /> | |
<meta property="og:image:height" content="400" /> |
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
@media only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 1.3 / 1), only screen and (min-resolution: 125dpi), only screen and (min-resolution: 1.3dppx) { | |
.logo { | |
background: url('logo@2x.png') 0 0 no-repeat; | |
background-size: cover; | |
} | |
} |
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
// Format number in input | |
function formatNumber(num) { | |
return ("" + num).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, function($1) { return $1 + " " }); | |
} | |
$('.format-num').on('keyup', function () { | |
$(this).val( formatNumber(this.value.replace(/\s/g, '')) ); | |
}); |
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
<ul class="tab-nav"> | |
<li><a href="#tab1">tab 1</a></li> | |
<li><a href="#tab2">tab 2</a></li> | |
<li><a href="#tab3">tab 3</a></li> | |
</ul> | |
<div class="tab-content"> | |
<div class="panel" id="tab1">panel 1</div> | |
<div class="panel" id="tab2">panel 2</div> | |
<div class="panel" id="tab3">panel 3</div> |
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
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Color Highlighter/themes/slime.tmTheme", | |
"debug": true, | |
"fade_fold_buttons": false, | |
"font_size": 12, | |
"highlight_line": true, | |
"ignored_packages": | |
[ |
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
$ ./ffmpeg -i video.mkv -vf subtitles=rus.srt out.mkv |
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 | |
# Exit if no arguments | |
[ $# -eq 0 ] && { echo "Usage: $0 param name"; exit 1; } | |
# if no command line arg given | |
# set var to Unknown | |
if [ -z $1 ] | |
then |
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 | |
# use case statement to make decision for rental | |
case $rental in | |
"car") echo "For $rental rental is Rs.20 per k/m.";; | |
"van") echo "For $rental rental is Rs.10 per k/m.";; | |
"jeep") echo "For $rental rental is Rs.5 per k/m.";; | |
"bicycle") echo "For $rental rental 20 paisa per k/m.";; | |
"enfield") echo "For $rental rental Rs.3 per k/m.";; | |
"thunderbird") echo "For $rental rental Rs.5 per k/m.";; |
OlderNewer