Skip to content

Instantly share code, notes, and snippets.

Ben Peachey Potherca

Block or report user

Report or block Potherca

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Potherca / FUNDING.yml
Created Feb 7, 2020
Potherca FUNDING.yml file for on Github
View FUNDING.yml
# These are supported funding model platforms
github: [Potherca] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: potherca # Replace with a single Patreon username
open_collective: potherca # Replace with a single Open Collective username
ko_fi: potherca # Replace with a single Ko-fi username
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: Potherca # Replace with a single Liberapay username
issuehunt: potherca # Replace with a single IssueHunt username
Potherca /
Last active Feb 7, 2020
Automated reproduction of all scenarios related to Dealerdirect/phpcodesniffer-composer-installer issues #105


This gist contains a BASH script that runs through all scenarios related to Dealerdirect/phpcodesniffer-composer-installer issues #105.

For v0.6.0 of phpcodesniffer-composer-installer, all scenario(s) fail.

These are the scenario reported in the issue and the scenario with 'composer run-script'

Potherca /
Last active Jan 26, 2020
Automated reproduction of all scenarios related to Dealerdirect/phpcodesniffer-composer-installer issues #103
Potherca / dabblet.css
Created Dec 17, 2019
The first commented line is your dabblet’s title
View dabblet.css
* The first commented line is your dabblet’s title
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
Potherca /
Last active Dec 10, 2019
A list of capturing and non-capturing groups avaiable in regular expressions

Groups in regular expressions (Capturing and non-capturing)

In regular expressions groups can be used. Different types of groups have different notations.

These notations sometimes only differ as little as one character. This can be confusing.

To make it easier to distinguish between the different group types, they are all listen here.


Potherca / logo-pipeline-components-animated.svg
Last active Oct 5, 2019
Animated SVG version of the Pipeline-Component logo
View logo-pipeline-components-animated.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Potherca / Learning Styles
Created Sep 8, 2019
Comparing various theories regarding learning styles
View Learning Styles

Learning Styles Comparison [1][1]

VARK [2][2]

  • Aural / Auditory (vArk)
  • Kinesthetic (varK)
  • Multimodal (MM)
  • Read/write (vaRk)
  • Visual (Vark)
Potherca /
Created Aug 26, 2019
Minecraft Castle Builder using the Python API by Matt Hawkins (RaspberryPi-spy or RPiSpy)
# Minecraft Python API
# Castle Builder
# This script creates a castle complete
# with moat and perimeter walls.
# Author : Matt Hawkins
Potherca /
Created Aug 24, 2019
Searching for a generic documentation block convention

Documentation block conventions

For most languages a single standard for documenting functions and methods in block comments (a.k.a. doc-blocks) has emerged.

There does not seem to be a definitive convention for documenting bash functions and files. Several different conventions exist

The long list

The following conventions are available:

Potherca /
Last active Aug 16, 2019
Feature Toggles in PHP

If you look on Packagist, [the most popular packages][1] for [Feature toggles][2] are:

  1. qandidate/toggle "Feature toggling for your PHP application." (⬇️ 496.754 / ⭐ 362)
  2. opensoft/rollout "Feature switches or flags for PHP" (⬇️ 354.269 / ⭐ 215)
  3. flagception/flagception "Feature toggle on steroids." (⬇️ 139 265 / ⭐ 24)
  4. joshuaestes/feature-toggle "Provides feature toggle functionality" (⬇️ 61.736 / ⭐ 32)
  5. zumba/swivel "Strategy driven feature toggles" (⬇️ 49.954 / ⭐ 211)

Downloads Stars

You can’t perform that action at this time.