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
Potherca / README.md
Created Aug 24, 2019
Searching for a generic documentation block convention
View README.md

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
Potherca / README.md
Last active Aug 19, 2019
BATS Assertion Libraries comparison
View README.md

"Who would dare assert that we know all there is to be known?" ~ Galileo Galilei

Introduction

At the time of this writing there are 3 separate libraries that offer assertions for the Bash Automated Testing System (otherwise known as BATS).

These are:

@Potherca
Potherca / README.md
Last active Aug 16, 2019
Feature Toggles in PHP
View README.md

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

@Potherca
Potherca / README.md
Last active Aug 13, 2019
AVNLIPPP -- Average variable name length in popular PHP projects
View README.md
@Potherca
Potherca / README.md
Last active Aug 11, 2019
Scripts to check for (and execute) updates to the `plantuml-stdlib` codebase
View README.md

The PlantUML Standard Library makes it possible to use popular icons in PlantUML with zero effort.

The plantuml-stdlib code as based on other projects.

As there were changes in some of those repos that were not (yet) in plantuml-stdlib, I decided to open some merge-requests to update things.

Because I don't like to do thnings manually that could be automated, I spend some time creating two BASH scripts:

@Potherca
Potherca / README.md
Last active Jul 23, 2019
HOWTO: Skip files outside PhpStorm project in Xdebug sessions
View README.md

Introduction

In PHP development environments, it is not entirely uncommon to use an auto_prepend_file to add development-specific functionality to an application. Usually such a file is used for several projects at the same time. This means the prepend file resides somewhere in a more high-level location.

A more common practice is to use Xdebug te debug PHP code.

When combining these two with PhpStorm this will lead to the prepend file being marked as "not mapped".

Problem

@Potherca
Potherca / .editorconfig
Created Jul 19, 2019
The `.editorconfig` file that I currently use (my personal `~/.editorconfig` file)
View .editorconfig
# ==============================================================================
# This file is for unifying the coding style for different editors and IDEs
#
# For full details see: http://editorconfig.org/
#
# An explanation of all available properties can be found at:
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
# ==============================================================================
@Potherca
Potherca / README.md
Last active Jul 12, 2019
jsfiddle-5zbdwu9n-dockerhub-pull-for-gitlab-group
View README.md
@Potherca
Potherca / 52-gamification-mechanics-and-elements.md
Last active Jun 29, 2019
52 Gamification Mechanics and Elements as proposed by Andrzej Marczewski (from gamified.uk)
View 52-gamification-mechanics-and-elements.md

Periodic-Table-of-Gamification-Elements

52 GAMIFICATION MECHANICS AND ELEMENTS

Below is a list of various elements and mechanics that support different User Types and contexts.

General

Name Description
You can’t perform that action at this time.