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
ModPagespeed off |
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 $frame = $('iframe#yourIframeId'); | |
// saves the current iframe source | |
var vidsrc = $frame.attr('src'); | |
// sets the source to nothing, stopping the video | |
$frame.attr('src',''); | |
// sets it back to the correct link so that it reloads immediately on the next window open | |
$frame.attr('src', vidsrc); |
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
SELECT CONCAT('ALTER TABLE ',TABLE_NAME,' ENGINE=InnoDB;') | |
FROM INFORMATION_SCHEMA.TABLES | |
WHERE ENGINE='MyISAM' | |
AND table_schema = 'mydatabase'; |
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
/*** PHONE NUMBER FORMATTER ***/ | |
function phoneFormat(input) { | |
// Strip all characters except digits | |
input = input.replace(/\D/g, ''); | |
// Trim input to ten characters, to preserve phone format | |
input = input.substring(0, 10); | |
// Format string based on length | |
var size = input.length; | |
if (size == 0) { | |
input = input; |
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
<?php | |
if(!defined('MyConstant')) { | |
die('Direct access not permitted'); | |
} | |
?> | |
<?php | |
define('MyConstant', TRUE); | |
?> |
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
$('button[name="button"].btn-destroy')[0].click(); | |
setTimeout(function() { | |
console.log("fire"); | |
$('.btn-destroy-no-hover')[0].click(); | |
}, 600); |
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
img[alt=""], | |
img:not([alt]){ | |
border:5px solid #c00; | |
} |
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
/** | |
* Enqueue Styles & Scripts w/ a hook | |
*/ | |
function enqueue_styles_scripts_versioning() { | |
wp_enqueue_style('main-styles', get_template_directory_uri() . '/css/style.css', array(), filemtime(get_template_directory() . '/css/style.css'), false); | |
wp_enqueue_script( 'main-styles', get_template_directory_uri() . '/js/example.js', array(), filemtime(get_template_directory() . '/js/example.js'), true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'enqueue_styles_scripts_versioning' ); |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# 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
cmd /r dir /b > filename.txt |
OlderNewer