Skip to content
View git.sh
# Show graph of commits with abbreviated hashes and commit messages
git log --oneline --decorate --all --graph
# Show entire repo's changes one at a time to decide which to stage and which not.
git add -p
# Record conflict resolving. https://git-scm.com/blog/2010/03/08/rerere.html
git config --global rerere.enabled true
# Merge, but always add an extra merge commit instead of just moving the branch reference.
View ImmutableContainer.php
<?php
interface ImmutableContainer
{
/**
* @param string $key
* @param callable $resolver
*
* @return static
*/
View foo.php
<?php
class Importer
{
/**
* @return $this
*/
public function setBaseUrl($url)
{
$this->baseUrl = $url;
View finishers.txt
07:00 - 4498 - Yannick Vanceulebroeck
07:01 - 107 - Steven Gerard De Vlieger
07:01 - 10943 - Paul Mertens
07:01 - 4395 - Wim Spiessens
07:02 - 3911 - Christian Clauwaert
07:02 - 4376 - Bart Van Nijlen
07:02 - 9660 - Ivo Cesar Steyaert
07:03 - 1647 - Jan Vandekerckhove
07:03 - 189 - Martino Corneillie
07:03 - 6961 - stef nullens
View example.php
$client = new \Http\Adapter\Client($adapter);
$psrResponse = $client->get('https://api.github.com/users/hannesvdvreken');
View HttpAdapter.php
/**
* Sends a PSR request
*
* @param \Psr\Http\Message\RequestInterface $request
* @param array $options
*
* @return \Psr\Http\Message\ResponseInterface
*/
public function sendRequest(RequestInterface $request, array $options = []);
View travis.sh
composer config github-oauth.github.com ${GH_TOKEN}
View rejection_mail.txt
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
$context = stream_context_create([], ['notification' => $callback]);
$resource = fopen($source, 'r', null, $context);
View DownloadCommand.php
<?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;
Something went wrong with that request. Please try again.