This file contains hidden or 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
private $_link = null; | |
/** | |
* Private function connect() | |
* This function is the basic code for the call to mySQLi. Returns a link to server. | |
* @return object | |
*/ | |
private function connect() | |
{ | |
if ( $this->_link === null ) |
This file contains hidden or 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
/** | |
* Private function connect() | |
* This function is the basic code for the call to mySQLi. Returns a link to server. | |
* @return object | |
*/ | |
private function connect() | |
{ | |
$link = new mysqli( $GLOBALS['db_host'], $GLOBALS['db_user'], $GLOBALS['db_pass'], $GLOBALS['db_db'] ) or die( mysqli_error( $link ) ); | |
$link->set_charset( 'utf8' ); |
This file contains hidden or 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 my_wp_is_mobile() { | |
static $is_mobile; | |
if ( isset($is_mobile) ) | |
return $is_mobile; | |
if ( empty($_SERVER['HTTP_USER_AGENT']) ) { | |
$is_mobile = false; | |
} elseif ( | |
strpos($_SERVER['HTTP_USER_AGENT'], 'Android') !== false |
This file contains hidden or 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
Problem 1 | |
- suncat/mobile-detect-bundle dev-master requires mobiledetect/mobiledetectlib 2.7.* -> satisfiable by mobiledetect/mobiledetectlib[2.7.6, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.7.5]. | |
- suncat/mobile-detect-bundle dev-master requires mobiledetect/mobiledetectlib 2.7.* -> satisfiable by mobiledetect/mobiledetectlib[2.7.6, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.7.5]. | |
- Can only install one of: mobiledetect/mobiledetectlib[dev-master, 2.7.6]. | |
- Can only install one of: mobiledetect/mobiledetectlib[dev-master, 2.7.0]. | |
- Can only install one of: mobiledetect/mobiledetectlib[dev-master, 2.7.1]. | |
- Can only install one of: mobiledetect/mobiledetectlib[dev-master, 2.7.2]. | |
- Can only install one of: mobiledetect/mobiledetectlib[dev-master, 2.7.3]. | |
- Can only install one of: mobiledetect/mobiledetectlib[dev-master, 2.7.4]. | |
- Can only install one of: mobiledetect/mobiledetectlib[dev-master, 2.7.5]. |
This file contains hidden or 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
return $(".pop-listfriend > div").removeClass("hide"), $(".pop-listfriend > div").addClass("hide"), $(".pop-listfriend > div.listAll").removeClass("hide"), !1 |
This file contains hidden or 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
#!/bin/bash | |
find . -maxdepth 1 -type d -not -path "." -exec tar -zcvf {}.tar.gz {} \; |
This file contains hidden or 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
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
# that enables you to choose a character from a menu of options. If you are on Lion | |
# try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
# for input. | |
# | |
# It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
# it's a nightmare to deal with in Sublime Text 2 if you're running Vintage (Vim) mode, | |
# as it means you cannot press and hold h/j/k/l to move through your file. You have | |
# to repeatedly press the keys to navigate. |
This file contains hidden or 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
/** | |
* | |
* Everyday hours shortcode handler. | |
* See https://github.com/MZAWeb/business-hours-plugin/wiki/Shortcodes | |
* | |
* @param $atts | |
* | |
* @return mixed|null | |
*/ | |
public function shortcode_table( $atts ) { |
This file contains hidden or 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="json2.js"></script> | |
<script type="text/javascript" src="easyXDM.js"></script> | |
<script type="text/javascript"> | |
var socket = new easyXDM.Socket({ | |
onReady: function(){ | |
socket.postMessage(document.body.scrollHeight) | |
} | |
}); | |
</script> |