View rejection_mail.txt
1 2 3 4 5 6 7 8 9 10
Hi {{ first_name }},
 
We're sorry to inform you that we didn't select one of your proposal(s) to speak at {{ conference }}.
 
Here's a discount coupon, though: [XYXYXY](https://tickets.someconf.com/buy?coupon=XYXYXY)
 
Hope to see you at {{ conference }} in {{ month }}!
 
Cheers,
John Doe
View stream_context.php
1 2
$context = stream_context_create([], ['notification' => $callback]);
$resource = fopen($source, 'r', null, $context);
View DownloadCommand.php
1 2 3 4 5 6 7 8 9
<?php
namespace Demo;
use League\Flysystem\Filesystem;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
View example.php
1 2 3 4 5 6 7 8 9 10
$client = new Guzzle\Http\Client();
$client->setBaseUrl('https://www.googleapis.com/analytics/v3/management');
foreach ($accounts as $account) {
$endpoint = "accounts/{$account->id}/webproperties";
$requests[] = $client->get($endpoint);
}
$responses = $client->send($request);
View example_bad.php
1 2 3 4 5 6 7 8 9 10
<?php
$client = new \GuzzleHttp\Client();
if ('production' !== getenv('APP_ENV')) {
$client->addSubscriber($logSubscriber);
$client->addSubscriber($debugBarSubscriber);
}
return $client;
View example_bad.php
1 2 3 4 5 6 7
<?php
return [
'key 1' => 'value 1',
'key 2' => 'value 2',
'key 3' => 'value 3'
];
View example_good.php
1 2 3 4 5 6 7 8
<?php
return [
'key 1' => 'value 1',
'key 2' => 'value 2',
'key 3' => 'value 3',
'key 4' => 'value 4',
];
View example_good.js
1 2 3
var angular = require('angular');
var bower = require('bower');
var gruntContribSass = require('grunt-contrib-sass');
View example_bad.js
1 2 3
var angular = require('angular');
var bower = require('bower');
var gruntContribSass = require('grunt-contrib-sass');
View example_bad.json
1 2 3 4
{
"key" : "value 1",
"changed_key": "value 2"
}
Something went wrong with that request. Please try again.