Skip to content

Instantly share code, notes, and snippets.

View WyriHaximus's full-sized avatar
🐉
Breathing Fire

Cees-Jan Kiewiet WyriHaximus

🐉
Breathing Fire
View GitHub Profile
<?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
<?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>
<?php
use Composer\Autoload\ClassLoader;
use PhpParser\BuilderFactory;
use PhpParser\ParserFactory;
use RuntimeException;
final class Generator
{
/**
<?php
$s
->lift(function () {
return new CutOperator(' ');
})
->map('json_decode')
->hydrate('Resource')
->subscribeCallback(function ($x) {
echo "-" . $x . "-\n";
{
"config": {
"sort-packages": true
}
}
<?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'],
<?php
new Resolver(
'8.8.8.8:53',
new CachedExecutor(
new RetryExecutor(
new Executor(
$cache,
new Parser(),
new BinaryDumper()
machine:
php:
version: 7.0.4
dependencies:
cache_directories:
- vendor
- ~/.composer/cache
- composer install --no-scripts --no-progress
deployment:
production:
source 'https://rubygems.org'
gem 'capistrano', '~> 3.1'
<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>