Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
I wonder what this button does…

Ben Peachey Potherca

🤔
I wonder what this button does…
View GitHub Profile
@Potherca
Potherca / README.md
Created Jun 3, 2022
Useful resources for learning regular epressions
View README.md

Learning RegEx

Games

  • Slash\Escape The first and only slasher themed text based RegEx learning game.

Learn

  • Regex Learn Step by step, from zero to advanced.
  • RegexOne Learn Regular Expressions with simple, interactive exercises.
@Potherca
Potherca / README.md
Last active Apr 19, 2022
Markdown Template for Daily Scrum meetings
View README.md

Daily Scrum Template

When taking part of a Daily Scrum as Scrum Master, I find it handy to take notes. This makes sure I can hand over the role, if need be. It also means I don't have to rememeber everything as I can look things up in my notes later.

Below is the structure I use as format or "template" for taking notes.

Some things of importance:

@Potherca
Potherca / README.md
Last active Mar 20, 2022
Emoji Popularity per Year
View README.md
View README.md

For a project at my employers we are working with the PHP Easy RDF library.

In order to help other developers understand how to do some basic things in Easy RDF, I have created an example that shows how to read a RDF file, find a node, remove that node or a property from that node and write the result back to the file, using Flysystem.

The Turtle document used in this example is an edited version of the test fixture used in the Solid Link Metadata Tests Suite.

A static HTML has been provided, as well as some quick-and-dirty PHP with a live example (also used to generate the HTML output).

To see the HTML visit https://bl.ocks.org/Potherca/raw/7ab3c4a8d1eca011ef4b4e884b878da0/

View README.md

Local Web Worker

Under normal circumstances, a Web Worker should be passed a URL of the script to execute. However, a local function can also be used

This is done by converting a function to a string, converting that string to a Blob, and converting that Blob to an Object URL.

Code

The code to do this would look a bit like this:

@Potherca
Potherca / README.md
Last active Dec 11, 2021
RoyalUr.net dice randomness distribution
View README.md

RoyalUr.net dice randomness distribution

Code for a CodePen that throws the dice from RoyalUr.net a given number of times and shows how the result matches the expected distribution of randomness.

@Potherca
Potherca / README.md
Last active Dec 3, 2021
Nextcloud and PHP version compatibility
View README.md

Nextcloud, PHP, and PHPUnit version compatibility

This document shows which version of Nextcloud supported which version(s) of PHP, with which version of PHPUnit.

Given that Nextcloud supports the following PHP versions:

Nextcloud EOL 7.1 7.2 7.3 7.4 8.0 8.1
23 2022-12
22 2022-07
View index.html
<meta charset="UTF-8">
<meta property="og:image" content="https://user-images.githubusercontent.com/195757/143425843-2cd178e6-7190-4555-90a3-33977aeb86d1.png"/>
<meta property="og:title" content="Hoor wie klikt daar kinderen?"/>
<meta property="og:description" content="Een fijne Sinterklaas gewenst, iedereen!"/>
<title>Hoor wie klikt daar kinderen?</title>
<body>
<div class="door">
<div class="door-front">
@Potherca
Potherca / README.md
Created Nov 23, 2021
PHPUnit and PHP version compatibility
View README.md

PHPUnit and PHP version compatibility

This document shows which version of PHPUnit supported which version(s) of PHP.

As stated on the Supported Versions page on the PHPUnit website:

Support means that bugs will be fixed for a version of PHPUnit.

Support for major version X ends two years after its initial release (when major version (X+2) is released).