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
/** | |
* Validates a 16 digit credit card number | |
* | |
* @param string ccnum Any 16 digit number as a string | |
* @return boolean Whether or not it Validates | |
*/ | |
function checkCCNum(ccnum) { | |
if (ccnum.length !== 16 || ! /^\d+$/.test(ccnum)) { | |
return false; | |
} |
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 $(query) { | |
return Array.from(document.querySelectorAll(query)); | |
} | |
$('link').filter(link = > ![ | |
'icon', | |
'stylesheet', | |
'next', | |
'prev' | |
].some(rel => link.relList.contains(rel))).reduce((links, link) => { |
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
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:c8858e4f4633f3e5f364b25a539986bb2e23d409] |
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 | |
/** | |
* @author Chris Zuber | |
* @copyright 2016, Chris Zuber | |
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License, version 3 (GPL-3.0) | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License | |
* as published by the Free Software Foundation, either version 3 | |
* of the License, or (at your option) any later version. | |
* |
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
Show hidden characters
{ | |
"presets": ["es2015"], | |
"sourceMaps": true, | |
"only": "*.js", | |
"compact": true, | |
"comments": false | |
} |
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
export {default as dePrefix} from './deprefixer.es6'; | |
export * from './polyfills/array/modules.es6'; | |
export * from './polyfills/string/modules.es6'; | |
export * from './polyfills/element/modules.es6'; | |
export * from './polyfills/css/modules.es6'; | |
export * from './polyfills/promises.es6'; | |
export * from './polyfills/fetch.es6'; | |
export * from './polyfills/mutationobserver.es6'; |
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
.eslintrc | |
.eslintignore | |
.travis.yml | |
zq.js | |
README.md | |
polyfills.js |
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 | |
$timer = new \shgysk8zer0\Core\Timer(); | |
$console = new \shgysk8zer0\Core\Console(); | |
$header = new \shgysk8zer0\Core\Headers(); | |
$html = new \shgysk8zer0\DOM\HTML(); | |
$svg = new \shgysk8zer0\DOM\SVG(); | |
$unicode = new \shgysk8zer0\Core\Unicode(); | |
$chars = new \shgysk8zer0\Core\ArrayObject([ | |
'BLACK_SUN_WITH_RAYS', | |
'WHITE_STAR', |
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
{ | |
"BLACK_SUN_WITH_RAYS": { | |
"char": "\u2600", | |
"dec": 9728, | |
"hex": 2600, | |
"entity": "" | |
}, | |
"CLOUD": { | |
"char": "\u2601", | |
"dec": 9729, |
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
Array.prototype.loop = function* (times = Infinity) { | |
while (times-- > 0) { | |
for (let el of this) { | |
yield el; | |
} | |
} | |
}; |