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 | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.6 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter | |
0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs |
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 | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.6 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter | |
0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs |
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
server { | |
## Your website name goes here. | |
server_name mysite.com www.mysite.com; | |
## Your only path reference. | |
root /var/www/; | |
listen 8080; | |
## This should be in your http block and if it is, it's not needed here. | |
index index.php index.html index.htm ; | |
include conf.d/drop; |
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
<script type="text/javascript" src="http://wphotline.com/evs/player/YXZhZGEtc2hvcnRjb2Rlcy5tcDQ=/?container=evp-Y0Y5PVX9R1"></script><div id="evp-Y0Y5PVX9R1" data-role="evp-video" data-evp-id="YXZhZGEtc2hvcnRjb2Rlcy5tcDQ="></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
<?php | |
/* Copyright 2013 Marc Fowler (email : [email protected]) | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License, version 2, as | |
published by the Free Software Foundation. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
if(get_field('evs_oembed_video_url')) { | |
$evs_location = get_option('evs_location'); | |
$api = $evs_location.'/api.php'; | |
$the_evs_page_url = get_field('evs_oembed_video_url'); | |
$video_thumb_info = wp_remote_post($api, array( | |
'method' => 'POST', | |
'timeout' => 45, | |
'redirection' => 5, |
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 id="fb-root"></div> | |
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script> | |
<script type="text/javascript"> | |
var matched,browser,oldInit=jQuery.fn.init,oldParseJSON=jQuery.parseJSON,rquickExpr=/^(?:[^<]*(<[\w\W]+>)[^>]*|#([\w\-]*))$/;jQuery.fn.init=function(n,t,i){var r;return n&&typeof n=="string"&&!jQuery.isPlainObject(t)&&(r=rquickExpr.exec(n))&&r[1]&&(n.charAt(0)!=="<"&&migrateWarn("$(html) HTML strings must start with '<' character"),t&&t.context&&(t=t.context),jQuery.parseHTML)?oldInit.call(this,jQuery.parseHTML(jQuery.trim(n),t,!0),t,i):oldInit.apply(this,arguments)},jQuery.fn.init.prototype=jQuery.fn,jQuery.parseJSON=function(n){return!n&&n!==null?(migrateWarn("jQuery.parseJSON requires a valid JSON string"),null):oldParseJSON.apply(this,arguments)},jQuery.uaMatch=function(n){n=n.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(m |
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
This is a livecountdown timer jquery script. The concept is simple. | |
1. I have a slider on my homepage that when the counter is counting down shows the slider | |
2. when the countdown timer hits zero, then the slider div is hidden and the video div is displayed in it's place. | |
The primary jquery file livecountdown.js basically does 2 things: | |
1. the countdown timer itself is wrapped in a div ".live_countdown" When the timer is counting down then the ".live_countdown" is displayed, when the countdown timer hits zero, then the ".live_countdown" is faded out to display none | |
*That basically takes care of displaying the timer and removing the timer when it hits zero. | |
**alternately instead of hiding the timer, I can just as easily replace the timer with a 'now playing' graphic or something like that | |
2. The slider carousel is wrapped in a div ".stepcarousel" This slider is displayed while the countdown timer is greater than zero or still counting down |
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 | |
/* | |
* This is a PayPal IPN (Instant Payment Notification) broadcaster | |
* Since PayPal does not provide any straightforward way to add | |
* multiple IPN listeners we'll have to create a central IPN | |
* listener that will broadcast (or filter and dispatch) Instant | |
* Payment Notifications to different destinations (IPN listeners) | |
* | |
* http://codeseekah.com/2012/02/11/how-to-setup-multiple-ipn-receivers-in-paypal/ | |
* |
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 | |
function tumble_addpagecomments() { | |
return array( 'page', 'post' ); | |
} | |
add_filter( 'bp_blogs_record_comment_post_types', 'tumble_addpagecomments' ); |
NewerOlder