I hereby claim:
- I am jasondmoss on github.
- I am jasondmoss (https://keybase.io/jasondmoss) on keybase.
- I have a public key ASBlMWKxMIlj9MvXXxjG0FXSg4nsYECnDAMHYLQPA5BZMgo
To claim this, I am signing this object:
<?php | |
/** | |
* Browser Redirection. | |
* | |
* @param string $url Redirect destination. | |
* @param integer $code Redirect code. | |
* | |
* Codes: | |
* |
### | |
## Rename file extensions | |
## | |
## EG. renameExt old new | |
### | |
function renameExt() { | |
for file in *.$1 | |
do | |
mv -- "$file" "$(expr "$file" : '\(.*\)\.'$1).$2" |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* Custom pagination. | |
* | |
* @param integer $total Total number of pages | |
* @param boolean $echo Echo or return result? | |
* | |
* @return void | |
* @access public |
<?php | |
/** | |
* Get current user's IP address | |
* | |
* @return string | |
* @access public | |
*/ | |
function getIp() | |
{ |
<?php | |
/** | |
* Get post slug | |
* | |
* @param integer $objectId (Optional) Post ID | |
* @param boolean $echo (Optional) Whether to echo or return value. | |
* | |
* @return string | |
* @access public |
<?php | |
/** | |
* Get current URL | |
* | |
* @param boolean $echo (Optional) Whether to echo or return value. | |
* | |
* @return string | |
* @access public | |
*/ |
<?php | |
/** | |
* Check if a file/folder is writable. If not, the function tries to make | |
* it writable. | |
* | |
* @param string $file | |
* @param string $mode | |
* | |
* @return File |
/** | |
* Concatenate individual arrays into single array for easier manipulation. | |
* | |
* @param {Array} Individual arrays; as many as required. | |
* | |
* @returns {Array} Concatenated array. | |
*/ | |
function mergeArrays() | |
{ | |
return [].concat.apply([], arguments); |
<?php | |
/** | |
* Whether a post is a child of a parent | |
* | |
* @param mixed $parent Page ID, slug or title | |
* | |
* @return boolean | |
* @access public | |
*/ |