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 | |
| /** | |
| * @author kas-cor <[email protected]> | |
| * @link http://github.com/kas-cor repositories | |
| */ | |
| namespace cls; | |
| class Smsru { |
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 | |
| /** | |
| * @author kas-cor <[email protected]> | |
| * @link http://github.com/kas-cor repositories | |
| */ | |
| namespace cls; | |
| class Mail { |
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 jsMod = {}; | |
| $(function () { | |
| /** | |
| * Loading modules | |
| */ | |
| [ | |
| "module1.js", | |
| "module2.js", | |
| "module3.js" |
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 toFixed($number, $fix = 2) { | |
| $arr = explode('.', $number); | |
| return isset($arr[1]) ? floatval($arr[0] . "." . substr($arr[1], 0, $fix)) : $number; | |
| } | |
| // Test | |
| foreach ([ | |
| 1 => 1.123456, |
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
| window.jQuery || document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>'); | |
| document.addEventListener("DOMContentLoaded", function () { | |
| $(function () { | |
| var elem = "scroll-to-top"; // id object | |
| var img = "//path/to/img/file.png"; // url to img | |
| var obj; | |
| $("body").append('<div id="' + elem + '"></div>'); | |
| obj = $("#" + elem); | |
| $(obj).css({ | |
| "display": "none", |
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 | |
| namespace app\components; | |
| use yii\base\Component; | |
| use yii\httpclient\Client; | |
| use yii\httpclient\Exception; | |
| /** | |
| * Class Smsru |
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 isIE() { | |
| return (navigator.userAgent).indexOf("MSIE") != -1 || (navigator.userAgent).indexOf("Trident") != -1; | |
| } |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtKh067D6Qe+QDw4nJPFDYPcA3xloUHx/iOWRpzwpyEkB0cjNmzxQFaAFo3006nxsMKt17lEuj8Cjtl3mV6BTH00i+XPs88brlcXwU8nnpXlOnH8yMRPiGnN/VXpwSgL8MNVp9M1AZnlR0BPhbIuJ/Ua8Y8whMJL5bfaX3L2Q7MNuHagAqMlKk9T5zQKxVSNaJxKsCGg+DP3o5FKg94ksF/QHkoiAWD4wF+/GkgZGr3LOJei0yTGSRX5cScIkLy0kgjNaCfd+0ijXZEozYo7g5onsTFIDsjU413dQq21Ax1rlDo4JP84+b8P7bPfla5L5VToQ+sNX8Q1bc3Ot0Ivs7 [email protected] |
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
| @echo off | |
| echo Memory usage gt 200 MB | |
| tasklist /nh /fi "Session ne 0" /fi "Memusage gt 200000" | |
| echo . | |
| echo Memory usage gt 300 MB | |
| tasklist /nh /fi "Session ne 0" /fi "Memusage gt 300000" | |
| echo . | |
| echo Memory usage gt 400 MB | |
| tasklist /nh /fi "Session ne 0" /fi "Memusage gt 400000" | |
| echo . |