Skip to content

Instantly share code, notes, and snippets.

View Potherca's full-sized avatar
🤔
I wonder what this button does…

Ben Peachey Potherca

🤔
I wonder what this button does…
View GitHub Profile
@Potherca
Potherca / silex-teapot-response.php
Created January 16, 2014 16:00
Simple Silex implementation to return a 418 HTTP Response. For testing purposes, obviously.
<?php
$app = new MySilexApplication();
$app->match('/api/coffee/',
function() use ($app){
$statusCode = 418;
$response = array('status' => 'ok', 'code' => $statusCode, 'message' => 'The HTCPCP Server is a teapot. The responding entity MAY be short and stout.');
return $app->json((object) $response, $statusCode);
}
@Potherca
Potherca / keybase.md
Last active April 16, 2016 18:43
keybase.io PGP key

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@Potherca
Potherca / introduction.md
Last active October 10, 2016 03:31
Popular Coding Convention in PHP on Github - Shortlist

Popular Coding Convention in PHP on Github

For everyone's entertainment I though it might be nice to get PHP added to the [Popular Coding Convention on Github][3] site.

A request [had already been made][1] so I decided to [pick up the gauntlet][2].

My plan of attack is as follows:

@Potherca
Potherca / jison-definition-for-plantuml.md
Last active December 5, 2016 11:46
Jison Grammar for PlantUML State Diagram
@Potherca
Potherca / favlet to transfer github repo ownership.md
Last active December 5, 2016 11:50
Bookmarklet to transfer ownership of a Github repository from "foo" to "foo-contrib"

Every so often I get asked about the origin of my online handle "Potherca".

Where did it come from? What does it mean? How is it pronounced?

This gist contains some of the explanations I give... Mind you, not all of them are 100% true... But so it is online.

@Potherca
Potherca / software-tester.md
Last active January 17, 2017 09:43
Various alternative suggestions for the job title "Software Tester"
@Potherca
Potherca / dabblet.css
Created February 16, 2017 13:59
Simple example of tiling blocks
/**
* Simple example of tiling blocks
*/
div {
background: tomato;
display: inline-block;
width: 10em;
height: 10em;
margin: 1em;
padding: 2em;
@Potherca
Potherca / dabblet.css
Last active March 8, 2017 19:24
Quick mockup for movie night CSS
/**
* Quick mockup for movie night CSS
* See the full effect at http://result.dabblet.com/gist/1bb4d6520814a8d96793/
*/
@import url(http://fonts.googleapis.com/css?family=Codystar);
@import url(http://fonts.googleapis.com/css?family=Ewert);
@import url(http://fonts.googleapis.com/css?family=Monoton);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:700);
@Potherca
Potherca / names-for-abandoned-projects.md
Last active April 10, 2017 12:38
Names developers call projects they no longer support.

Introduction

As part of the effort to keep [my github account][github-potherca] clean, in 2015 I [moved all non-original repositories][gist-favlet-to-transfer-github-repo-ownership] to [a separate organisation named potherca-contrib][potherca-contrib]. This brought my repository count back down to a manageable level.

Since then, my repository count has been steadily growing. To bring those numbers back down again, I decided to move all non-relevant repositories to another separate organisation.

The first question was: how to name that organisation?

Creating a longlist