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 util\data\Sequence; | |
| class Operations extends \util\profiling\Measurable { | |
| private static $range; | |
| static function __static() { | |
| self::$range= range(0, 9999); | |
| } |
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
| --- semantic-2.2.13.js 2017-08-07 18:18:56.000000000 +0200 | |
| +++ src/main/webapp/static/vendor/semantic/semantic.js 2017-09-05 17:27:14.484722700 +0200 | |
| @@ -4564,11 +4564,12 @@ | |
| ; | |
| $.each(values, function(index, value) { | |
| if(module.get.item(value) === false) { | |
| + var escapedValue = module.escape.value(value); | |
| html = settings.templates.addition( module.add.variables(message.addResult, value) ); | |
| $userChoice = $('<div />') | |
| .html(html) |
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 web\frontend\{Handler, Get, Param}; | |
| #[Handler] | |
| class Home { | |
| #[Get] | |
| public function get( | |
| #[Param('name')] |
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" | |
| "os" | |
| "os/exec" | |
| "path/filepath" | |
| "strings" | |
| "syscall" | |
| ) |
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 typemap; | |
| use lang\Value; | |
| use lang\reflect\Package; | |
| use util\Objects; | |
| use util\cmd\Console; | |
| use util\data\unittest\fixtures\Person; | |
| use util\profiling\Timer; | |
| class ForeachMap { |
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 de\thekid\example; | |
| use io\redis\RedisProtocol; | |
| use peer\SocketException; | |
| use web\protocol\{Protocols, Http, WebSockets}; | |
| use web\{Service, Listeners}; | |
| use xp\web\ServeDocumentRootStatically; | |
| class Chat extends Service { | |
| private $connections= []; |
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 io\redis\RedisProtocol; | |
| use websocket\Listeners; | |
| class Chat extends Listeners { | |
| /** @return [:var] */ | |
| public function serve($events) { | |
| $dsn= $this->environment->arguments()[0] ?? 'redis://localhost'; |
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 web; | |
| use lang\FormatException; | |
| /** @see https://tools.ietf.org/html/rfc7578 */ | |
| class MultiPart { | |
| private $request, $boundary; | |
| private $buffer= ''; | |
| public function __construct($request) { |
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 web\frontend\{Frontend, Templates, View}; | |
| use web\session\{InFileSystem, Cookies}; | |
| use web\{Application, Filter, Filters}; | |
| class Uploads extends Application { | |
| /** @return [:var] */ | |
| public function routes() { |
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 unittest; | |
| use io\collections\iterate\{FilteredIOCollectionIterator, ExtensionEqualsFilter} from 'xp-framework/io-collections'; | |
| use io\collections\{FileCollection, FileElement} from 'xp-framework/io-collections'; | |
| use io\streams\LinesIn; | |
| use util\cmd\Console; | |
| function import(string $line): iterable { | |
| $p= strrpos($line, '\\'); |