Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Working, working, working...

Ben Peachey Potherca

👨‍💻
Working, working, working...
View GitHub Profile
@Potherca
Potherca / index.html
Created Nov 24, 2020
Warner Bros Cartoons Opening Titles
View index.html
<base href="https://www.closinglogos.com/page/Looney_Tunes_IDs">
<h1>Warner Bros Cartoons Opening Titles</h1>
<h2><span>1st Logo</span><span>1930</span></h2>
<img src="/images/c/ca/D8GRkegIVUr5QRLPz68zug13084.jpeg"/>
<img src="/images/1/17/2534c53da7f68f8e0fe3cd03f26d3c90.jpeg"/>
<img src="/images/0/02/VwNAulJwe0fGIPCqGZbbnQ68032.png"/>
<img src="/images/3/31/0add3a153d3a8fa36c54915c89b6274a.png"/>
@Potherca
Potherca / implementation-checklist.md
Last active Nov 24, 2020
Implementation checklist
View implementation-checklist.md

Implementation checklist

  1. Who will benefit by the implementation of the ticket?
    The end user? Other developers? Other systems?

  2. What do you need to edit in the code to implement the ticket?
    Which classes or component need to be touched?

  3. How do you plan on implementing this ticket?
    Which steps do you need to take? Break it down into small chunks.

@Potherca
Potherca / compile-lynx-wasm.sh
Last active Nov 20, 2020
Steps to compile the Lynx web browser to Web Assembly
View compile-lynx-wasm.sh
# Sources used in figuring this out:
#
# - https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm
# - https://emscripten.org/docs/compiling/Building-Projects.html#building-projects
# Set up Emscripten SDK
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk/
./emsdk install latest
./emsdk activate latest
View hello3.c
#include <stdio.h>
#include <emscripten/emscripten.h>
int main(int argc, char ** argv) {
printf("Hello World\n");
}
#ifdef __cplusplus
extern "C" {
#endif
@Potherca
Potherca / README.md
Last active Nov 14, 2020
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 is 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 things manually that could be automated, I spend some time creating two BASH scripts:

@Potherca
Potherca / README.md
Last active Nov 4, 2020
The search for a Regex to match BEM CSS class-names
View README.md

The search for a Regex to match BEM CSS class-names

TL;DR

Use this regular expression to match BEM class-names:

^\.[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$
View README.md
@Potherca
Potherca / README - Fair Finance Guide International.md
Last active Oct 24, 2020
Dutch Fair Finance Guide Scores (eerlijkegeldwijzer.nl) - Total scores
View README - Fair Finance Guide International.md

Introduction

Fair Finance Guide International (FFGI) is an international civil society network initiated by Oxfam, that seeks to strengthen the commitment of banks and other financial institutions to social, environmental and human rights standards.

Every year, the FFGI publishes records of how financial institutions perform on a set of subjects.

For the Netherlands these results are published at https://eerlijkegeldwijzer.nl/

The website shows the scores for each company per subject but does not show a total.

@Potherca
Potherca / README.md
Last active Oct 21, 2020
LinkedIn Profile revision strategy
View README.md
@Potherca
Potherca / README.md
Last active Oct 13, 2020
Create a branch on Github without access to a local git repo using http://hurl.eu/
View README.md

Ever had the need to create a branch in a repo on Github without wanting (or being able) to access a local repo?

With the aid of [the Github API][1] and [hurl.eu][2] this is a piece of cake!

Just follow these steps:

  1. Open [http://hurl.eu/][2]
  2. Find the revision you want to branch from. Either on Github itself or by doing a GET request from Hurl: https://api.github.com/repos/<AUTHOR>/<REPO>/git/refs/heads
  3. Copy the revision hash
  4. Do a POST request from Hurl to https://api.github.com/repos/<AUTHOR>/<REPO>/git/refs with the following as the POST body :
You can’t perform that action at this time.