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 | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
$query = ''; | |
$source = 'database_one'; | |
$destination = 'database_two'; | |
$tables = [ | |
'table_one', |
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 RangeDropdown = function () { | |
var $from, $to, $el, data; | |
function create($element) { | |
$el = $element; | |
data = $el.data('range-dropdown'); | |
$from = $(data.from); | |
$to = $(data.to); |
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 $tooltip = $('.tooltip'); | |
$('.box').mouseenter(function () { | |
var $this = $(this); | |
var offset = $this.offset(); | |
var width = $this.width(); | |
var height = $this.height(); | |
var centerX = offset.left + width / 2; | |
var centerY = offset.top + height / 2; |
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
<!-- no-animation class is required --> | |
<!-- set data-circle with a value for either a complete or half animation: --> | |
<!-- 1 - for complete --> | |
<!-- 0 - for half --> | |
<a class="button-circle no-animation" data-circle="1" href="#">1</a> |
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 $ = jQuery; | |
// make sure your element has overflow set | |
var $element = $('[data-scroll-box]'); | |
$element.scrollTop('1000000'); | |
$element.scrollLeft('1000000'); | |
var scrollHeight = $element.prop('scrollHeight'); | |
var scrollWidth = $element.prop('scrollWidth'); |
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 | |
public function catchallAction($req) | |
{ | |
$redirects = Yaml::parse(file_get_contents(__DIR__ . '/../Resources/config/redirects.yml')); | |
if (isset($redirects[$req])) { | |
return new RedirectResponse('/' . $redirects[$req], 301); | |
} |
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 | |
require_once(ABSPATH . 'wp-admin/includes/media.php'); | |
require_once(ABSPATH . 'wp-admin/includes/file.php'); | |
require_once(ABSPATH . 'wp-admin/includes/image.php'); | |
$url = 'http://wordpress.org/about/images/logos/wordpress-logo-stacked-rgb.png'; | |
$title = "Anything you want"; | |
$postId = 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
function isElementInViewport (el) { | |
if (typeof jQuery === "function" && el instanceof jQuery) { | |
el = el[0]; | |
} | |
var rect = el.getBoundingClientRect(); | |
return ( | |
(rect.top + rect.height) >= 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
/*------------------------------------*\ | |
#RESPONSIVE STICKY FOOTER | |
/*------------------------------------*/ | |
html, | |
body | |
display: table | |
height: 100% | |
width: 100% |
NewerOlder