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
function interval(func, wait, times){ | |
var interv = function(w, t){ | |
return function(){ | |
if(typeof t === "undefined" || t-- > 0){ | |
setTimeout(interv, w); | |
try{ | |
func.call(null); | |
} | |
catch(e){ | |
t = 0; |
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
$(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
# Colorful Bash Prompt, inspired by "Extravagant Zsh Prompt" | |
# Screenshot: http://img.gf3.ca/d54942f474256ec26a49893681c49b5a.png | |
# A big thanks to \amethyst on Freenode | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color | |
elif infocmp xterm-256color >/dev/null 2>&1; then export TERM=xterm-256color | |
fi | |
if tput setaf 1 &> /dev/null; then | |
tput sgr0 |
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
<div class="row"> | |
<?php for ($i = 0; $i < count($news); $i++) { ?> | |
<?php if ($i == 0 ) { | |
echo '<div class="row">'; | |
} else if ($i != 0 && $i % 4 == 0) { | |
echo '</div><div class="row">'; | |
} ?> | |
<?php if ($i == (count($news)-1) && count($news) % 4 != 0) { |
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
.grayscale { | |
-webkit-filter: grayscale(1); | |
filter: grayscale(1); | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<script> | |
//This plays a file, and call a callback once it completed (if a callback is set) | |
function play(audio, callback) { | |
audio.play(); | |
if (callback) { |
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('[email protected]') 0 0 no-repeat; | |
background-size: cover; | |
} | |
} |
OlderNewer