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
_ |
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
<?php | |
function val($array, $key) | |
{ | |
if (!$array) return null; | |
if (!isset($array[$key])) return null; | |
return $array[$key]; | |
} |
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
/* | |
Make a jQuery plugin | |
@param string name - Name of plugin | |
@param string extend - Name of parent plugin to extend | |
@param function onInit(element, instance) - a function that initialize the plugin instance on the element. To export methods, assign the functions to the instance. | |
@param object defaults - a set of default values which can be accessed through instance.options | |
Example: | |
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
_ |
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
String.prototype.getFileExtension = function() | |
{ | |
var ret = (/[.]/.exec(this)) ? /[^.]+$/.exec(this) : undefined; | |
if (ret && ret.length) ret = ret[0]; | |
return ret; | |
} | |
if (typeof String.prototype.startsWith != 'function') | |
{ |
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
_ |
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
_ |
NewerOlder