Skip to content

Instantly share code, notes, and snippets.

Shannon Wynter swynter-ladbrokes

View GitHub Profile
@swynter-ladbrokes
swynter-ladbrokes / Output
Last active Aug 29, 2015
Cross namespace tick handler doesn't work as I'd hope...
View Output
#php main.php
Registering tick function as Tick\Thing::tick()
* Tick
* Tick
Do something
Do something else
@swynter-ladbrokes
swynter-ladbrokes / etcdctl
Last active Jun 9, 2020
Basic bash completion for etcdctl
View etcdctl
#!bash
_etcdctl_list() {
local IFS=$'\n'
local wd="$cur"
local -a tokens
if ! etcdctl ls "$wd" &> /dev/null; then
wd=$(dirname "$wd")
fi
View Benchmark.php
<?php
class Benchmark {
private $task_duration = 5;
private $tasks = [];
private $results = [];
private $duation = 0;
public function __construct() {
You can’t perform that action at this time.