This file contains 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 | |
return (new RequestSigner( | |
new ConsumerKey('consumer_key'), | |
new ConsumerSecret('consumer_secret') | |
))->withAccessToken( | |
new AccessToken('token_key'), | |
new TokenSecret('token_secret') | |
)->sign($request); // Returns a signed PSR7 request you can use in any PSR7 capable HTTP client |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit bootstrap="vendor/autoload.php" colors="true"> | |
<testsuites> | |
<testsuite name="Vendor Test Suite"> | |
<directory>vendor/noxie/shizzle/tests/</directory> | |
</testsuite> | |
</testsuites> | |
<filter> | |
<whitelist> | |
<directory suffix=".php">vendor/noxie/shizzle/src/</directory> |
This file contains 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 Composer\Autoload\ClassLoader; | |
use PhpParser\BuilderFactory; | |
use PhpParser\ParserFactory; | |
use RuntimeException; | |
final class Generator | |
{ | |
/** |
This file contains 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 | |
$s | |
->lift(function () { | |
return new CutOperator(' '); | |
}) | |
->map('json_decode') | |
->hydrate('Resource') | |
->subscribeCallback(function ($x) { | |
echo "-" . $x . "-\n"; |
This file contains 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
{ | |
"config": { | |
"sort-packages": true | |
} | |
} |
This file contains 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 | |
$counters = $this->loopInfoProvider->getCounters(); | |
$this->loopInfoProvider->resetTotals(); | |
$this->loopInfoProvider->resetTicks(); | |
foreach ([ | |
'streams.read.current' => $counters['streams']['read']['current'], | |
'streams.read.total' => $counters['streams']['read']['total'], | |
'streams.read.ticks' => $counters['streams']['read']['ticks'], |
This file contains 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 | |
new Resolver( | |
'8.8.8.8:53', | |
new CachedExecutor( | |
new RetryExecutor( | |
new Executor( | |
$cache, | |
new Parser(), | |
new BinaryDumper() |
This file contains 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
machine: | |
php: | |
version: 7.0.4 | |
dependencies: | |
cache_directories: | |
- vendor | |
- ~/.composer/cache | |
- composer install --no-scripts --no-progress | |
deployment: | |
production: |
This file contains 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
source 'https://rubygems.org' | |
gem 'capistrano', '~> 3.1' |
This file contains 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
<html> | |
<form action="http://localhost:1337/" method="post" enctype="multipart/form-data"> | |
<input type="text" name="name[]" /><br> | |
<input type="text" name="name[]" /><br> | |
<input type="text" name="name[]" /><br> | |
<input type="text" name="name[]" /><br> | |
<input type="text" name="name[]" /><br> | |
<input type="text" name="name[]" /><br> | |
<input type="text" name="name[]" /><br> | |
<input type="text" name="name[]" /><br> |