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:
| ### | |
| ## Replace blank spaces with underscore for file(s) in current directory | |
| ### | |
| function blankRename() { | |
| ONE=1 # For getting singular/plural right | |
| number=0 # Keeps track of how many files actually renamed | |
| FOUND=0 # Successful return value | |
| # Traverse all files in directory |
| ### | |
| ## Rename file extensions | |
| ## | |
| ## EG. renameExt old new | |
| ### | |
| function renameExt() { | |
| for file in *.$1 | |
| do | |
| mv -- "$file" "$(expr "$file" : '\(.*\)\.'$1).$2" |
| <?php | |
| /** | |
| * Browser Redirection. | |
| * | |
| * @param string $url Redirect destination. | |
| * @param integer $code Redirect code. | |
| * | |
| * Codes: | |
| * |
| /** | |
| * Cache AJAX-included scripts. | |
| */ | |
| $.cachedScript = function (url, options) { | |
| options = $.extend( | |
| options || {}, { | |
| dataType: "script", | |
| cache: true, | |
| url: url | |
| } |
I hereby claim:
To claim this, I am signing this object:
| .reader, | |
| .sr-only, | |
| .text-assistive { | |
| clip: rect(0 0 0 0); | |
| overflow: hidden; | |
| position: absolute; | |
| width: 1px; | |
| height: 1px; | |
| margin: -1px; | |
| padding: 0; |
| /** | |
| * Hide the header while scolling the page down; Show on scroll up or when the | |
| * bottom of the page is reached. | |
| */ | |
| // jshint esversion: 6 | |
| (function (document, window, index) { | |
| "use strict"; | |
| const element = document.querySelector("#myHeaderElement"); |
| /** | |
| * Create a new element with provided attributes. | |
| * | |
| * @param {String} name Element name. | |
| * @param {Object|Array} attrs Element attributes. | |
| * | |
| * @return {Object} Element | |
| */ | |
| // jshint esversion: 6 |
| /** | |
| * Add a class to site header when the page scrolls below marker. Remove the | |
| * class when the page scrolls above marker. | |
| */ | |
| // jshint esversion: 6 | |
| window.addEventListener("scroll", event => { | |
| "use strict"; |
| /** | |
| * 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); |