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 isScrolledIntoView(elem) | |
{ | |
var $elem = $(elem); | |
var $window = $(window); | |
var docViewTop = $window.scrollTop(); | |
var docViewBottom = docViewTop + $window.height(); | |
var elemTop = $elem.offset().top; | |
var elemBottom = elemTop + $elem.height(); |
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
// http://stackoverflow.com/questions/31683075/how-to-do-a-deep-comparison-between-2-objects-with-lodash | |
function compare(a, b) { | |
var result = { | |
different: [], | |
missing_from_first: [], | |
missing_from_second: [] | |
}; | |
_.reduce(a, function (result, value, key) { |
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
/*https://codepen.io/dimbslmh/full/mKfCc*/ | |
.modal { | |
text-align: center; | |
padding: 0!important; | |
} | |
.modal:before { | |
content: ''; | |
display: inline-block; | |
height: 100%; |
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 util = require('util'); | |
var _ = require('lodash'); | |
/** | |
* Logs prettyfied and colored objects to console | |
* @param msg - message | |
* @param title - log message title | |
* @param depth - property depth | |
* @param showHidden - show hidden properties | |
*/ |
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 isDateString(str) { | |
return !isNaN(Date.parse(str)); | |
} |
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 | |
// place this to mu-plugins folder under wp-content | |
// set WP_DEBUG to true in wp_config.php to see all other errors | |
error_reporting(E_ALL & ~( E_NOTICE | E_USER_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED | E_WARNING | E_CORE_WARNING | E_USER_WARNING | E_COMPILE_WARNING | E_PARSE )); |
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
.container.no-gutters { | |
padding-left: 0; | |
padding-right: 0; | |
} | |
.container.no-gutters .row { | |
margin-right: 0; | |
margin-left: 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
.col-xs-five, | |
.col-sm-five, | |
.col-md-five, | |
.col-lg-five { | |
position: relative; | |
min-height: 1px; | |
padding-right: 10px; | |
padding-left: 10px; | |
} |
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
SET DIRECTORY_NAME="C:\OldWindows" | |
TAKEOWN /f %DIRECTORY_NAME% /r /d y | |
ICACLS %DIRECTORY_NAME% /reset /T | |
PAUSE |