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
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); |
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($_SERVER['REMOTE_ADDR']=='192.168.6.4') | |
{ | |
try{ | |
$refFunc = new ReflectionFunction('RedisSrchKey'); | |
echo $refFunc->getFileName()."@#".$refFunc->getStartLine(); | |
}catch(Exception $e){ | |
echo "Function Does not EXIST"; | |
} | |
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 | |
class Author { | |
private $firstName; | |
private $lastName; | |
public function __construct($firstName, $lastName) { | |
$this->firstName = $firstName; | |
$this->lastName = $lastName; | |
} | |
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 | |
class Author { | |
private $firstName; | |
private $lastName; | |
public function __construct($firstName, $lastName) { | |
$this->firstName = $firstName; | |
$this->lastName = $lastName; | |
} | |
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 | |
class Question { | |
private $author; | |
private $question; | |
public function __construct($question) { | |
$this->question = $question; | |
} | |
public function setAuthor(Author $author) { |
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 | |
interface questionInterface{ | |
public function setAuthor(Author $author); | |
} | |
class Question implements questionInterface { | |
private $author; | |
private $question; | |
public function __construct($question) { | |
$this->question = $question; |
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 | |
interface sessionStorage{ | |
public function get($key); | |
public function set($key,$value); | |
} | |
class fileSessionStorage implements sessionStorage { | |
public function get($key){ | |
... | |
} | |
public function set($key,$value){ |
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
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> | |
</head> | |
<body> | |
<div id="mydiv" ></div> | |
<script src="jquery.myplugin.js" ></script> | |
<script> | |
$("#mydiv").myplugin({ | |
debug: 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
(function($){ | |
$.fn.plugin = function(options){ } | |
})(jQuery); |
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($){ | |
$.fn.plugin = function(options){ } | |
})(jQuery); | |
/** | |
Usage: $("#selector").plugin(options); | |
**/ |
OlderNewer