developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
41
results
Andrew Fletcher
•
This code is from Drupal 9 back-end for a React front-end via REST API.
Working through the output for recently viewed pages... the code structure:
<?php
namespace Drupal\custom\Plugin\GetData\paragraph;
use Drupal\custom\Plugin\GetData\ContentBase;
use Drupal\custom\Plugin\GetData\ParagraphTrait;
use Drupal\node\Entity\Node;
/**
* Provides Recent view pages data.
*
* @GetData(
* id = "recent_view_pages",
* title = @Translation("Recent view pages Data"),
* )
*/
class...
Andrew Fletcher
•
Working from the bases that .DS_Store has not been added to your git repository,...
Andrew Fletcher
•
How do you generate a .pem file from an existing .ppk key?
Is putty on your...
Andrew Fletcher
•
Adding git tag to your actions.
The regular process that I work to is
git add...
Andrew Fletcher
•
If you edit a Drupal contrib module, the next time the module is updated those...
Andrew Fletcher
•
Currently I'm working through an app that has been abandoned by the developers. The client was getting no response from the dev company, when they asked if I could have a look. The app hadn't been updated for 18 months. So of course, a product that hasn't been updated in that timeframe is going to have a suite of npm update issues / conflicts.
What is the difference between dependancy and devDependancy packages?
When you install an npm package using npm install...
Andrew Fletcher
•
First off, this isn't the only method to achieve the outcome of emptying a...
Andrew Fletcher
•
Clear DNS Cache
The DNS (Domain Name Service) cache on your Mac helps browsers...
Andrew Fletcher
•
Changing git push from passphrase? There are several ways to tackle this...
Andrew Fletcher
•
xdebug - failed to solve with frontend dockerfile.v0: failed to create LLB...
Andrew Fletcher
•
Z shell (Zsh) is a Unix shell built on top of bash (the default shell for macOS) with a large number of improvements.
In this article, I'll run through how to configure iTerm2 with ZSH and its dependencies.
Step 1: Install Homebrew
Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple’s macOS.
Before installing Homebrew, we need to install the CLI tools for Xcode. Open your terminal and run the...