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
| #include "base94.h" | |
| void base94_encode(const unsigned char *plain, unsigned char *code) { | |
| // high * 2^64 | low | |
| unsigned long long value | |
| = ((unsigned long long)plain[1] << 56) | ((unsigned long long)plain[2] << 48) | |
| | ((unsigned long long)plain[3] << 40) | ((unsigned long long)plain[4] << 32) |
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 isBinary($str) { | |
| return mb_check_encoding($str, 'UTF-8'); | |
| } |
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
| let submit = function(target) { | |
| // 表单校验 | |
| that.gFormItem = that.findInputs(form); | |
| if (that.isAllpass(that.gFormItem)) { | |
| // 提前定位,防止提示被遮挡 | |
| that.focus(target); | |
| that.passCall.call(that, form, target); | |
| } | |
| }; | |
| // 一级截取 |
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 | |
| /** | |
| * Created by PhpStorm. | |
| * User: Auoor | |
| * Date: 2019/3/14 | |
| * Time: 20:41 | |
| */ | |
| declare(strict_types=1); | |
| namespace SnowFlake; |
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 | |
| use Exception; | |
| use Swoole\Client; | |
| use Swoole\WebSocket\Server; | |
| // https://github.com/swoole/swoole-src/blob/master/examples/websocket/WebSocketClient.php | |
| class WebSocketClient | |
| { | |
| const VERSION = '0.1.4'; |
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
| $ composer require nhzex/tp-swoole @dev -vvv --ignore-platform-reqs | |
| ```josn | |
| "repositories": { | |
| "local-package": { | |
| "type": "path", | |
| "url": "../package/" | |
| }, | |
| } | |
| ``` |
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 | |
| # composer require nhzex/zsw-core | |
| use Swoole\Runtime; | |
| use unzxin\zswCore\Process\BaseSubProcess; | |
| use unzxin\zswCore\ProcessPool; | |
| use function HuangZx\ref_get_prop; | |
| require_once __DIR__ . '/../vendor/autoload.php'; |
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
| \/\*\* | |
| \* Created by \S+?\. | |
| \* User: \S+? | |
| \* Date: \S+? | |
| \* Time: \S+? | |
| \*\/\s |
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
| - java.net.BindException: Address already in use: bind | |
| https://youtrack.jetbrains.com/issue/IDEA-238995 | |
| https://intellij-support.jetbrains.com/hc/en-us/community/posts/360009005139/comments/360002524640 | |
| ``` | |
| net stop winnat | |
| net start winnat | |
| ``` |
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 PHPSTORM_META { | |
| override(\Imi\App::getBean(0), map([ | |
| '' => '@', | |
| 'FileCache' => Imi\Cache\Handler\File::class, | |
| 'RedisCache' => Imi\Cache\Handler\Redis::class, | |
| 'RedisHashCache' => Imi\Cache\Handler\RedisHash::class, | |
| 'DefaultRuntimeModeHandler' => Imi\Core\Runtime\Handler\DefaultRuntimeModeHandler::class, | |
| 'CronCalculator' => Imi\Cron\CronCalculator::class, |
OlderNewer