Skip to content

Instantly share code, notes, and snippets.

View pretty's full-sized avatar

Stefan Pretty pretty

View GitHub Profile
@pretty
pretty / RetryTest.php
Last active May 16, 2019 13:14 — forked from orottier/RetryTest.php
Retry function for PHP with exponential backoff
<?php
class RetryTest extends TestCase
{
public function setUp()
{
parent::setUp();
// abuse superglobal to keep track of state
$_GET['a'] = 0;
}
@pretty
pretty / 0_reuse_code.js
Created July 7, 2017 05:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console