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
| #!/usr/bin/env bash | |
| EXECUTABLE_NAME=php-cs-fixer | |
| EXECUTABLE_COMMAND=fix | |
| CONFIG_FILE=.php_cs | |
| CONFIG_FILE_PARAMETER='--config' | |
| ROOT=`pwd` | |
| # possible locations | |
| locations=( |
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
| (function () { | |
| var MathRandom = Math.random; | |
| Math.random = function() { | |
| var crypto = window.crypto || window.msCrypto; | |
| if (crypto !== undefined) { | |
| return crypto.getRandomValues(new Uint32Array(1))[0] / 4294967296; | |
| } | |
| return MathRandom(); | |
| } | |
| })(); |
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
| var getScroll = function() { | |
| if (window.pageYOffset != undefined) { | |
| return [pageXOffset, pageYOffset]; | |
| } else { | |
| var sx, sy, d = document, | |
| r = d.documentElement, | |
| b = d.body; | |
| sx = r.scrollLeft || b.scrollLeft || 0; | |
| sy = r.scrollTop || b.scrollTop || 0; | |
| return [sx, sy]; |
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
| $.fn.goTo = function() { | |
| $('body').animate({ | |
| scrollTop: $(this).position().top + 'px' | |
| }, 'slow'); | |
| return this; | |
| } |
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
| class Chance | |
| { | |
| private $_aData; | |
| public function addData($sName, $fPercentage) | |
| { | |
| $fPercentage = (float) $fPercentage; | |
| if ($fPercentage < 1 && $fPercentage > 0) { | |
| $fPercentage = $fPercentage * 100; |