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 | |
| interface Executable | |
| { | |
| public function execute(): void; | |
| } | |
| abstract class AbstractExecutable |
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
| version: "3" | |
| services: | |
| zookeeper: | |
| image: 'bitnami/zookeeper:latest' | |
| ports: | |
| - '2181:2181' | |
| environment: | |
| - ALLOW_ANONYMOUS_LOGIN=yes | |
| kafka: | |
| image: 'bitnami/kafka:latest' |
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
| apiVersion: v1 | |
| metadata: | |
| name: rest-socket-service | |
| spec: | |
| type: NodePort | |
| selector: | |
| app: nodejs-deployment | |
| ports: | |
| - nodePort: 30165 | |
| port: 3000 |
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
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func dequeue(chan1 chan int, result chan string) { | |
| for val := range chan1 { | |
| fmt.Println(val) |
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
| $stream = stream_socket_client("tcp://127.0.0.1:1235", $errno, $errstr); | |
| if (!$stream) { | |
| echo "{$errno}: {$errstr}\n"; | |
| die(); | |
| } | |
| $payload = 'hello world'; | |
| fwrite($stream, $payload); | |
| /*stream_socket_shutdown($stream, STREAM_SHUT_WR); |
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\Concrete\Library\Cache; | |
| use App\Traits\CacheableQuery; | |
| use Cache; | |
| use Illuminate\Database\ConnectionInterface; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Database\Query\Builder; |
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 | |
| /** | |
| * | |
| */ | |
| interface IJsonAble extends JsonSerializable | |
| { | |
| /** | |
| * @return array | |
| */ |
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 | |
| require_once 'vendor/autoload.php'; | |
| /** | |
| * | |
| */ | |
| interface Renderer |
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 Value | |
| { | |
| /** | |
| * @var string | |
| */ | |
| private $value; |
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 | |
| interface Command | |
| { | |
| public function execute(); | |
| } |