- docker pull bitnami/postgresql
- docker run --name postgresql-server -e POSTGRESQL_PASSWORD=pass bitnami/postgresql:latest
Code is clean if it can be understood easily โ by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
Since we want to keep this challenge rather less time consuming, we want you to create a small React app and display popular repositories of the week from Github. The user should have an opportunity to filter the repositories by the programming language of choice.
That would be nice to see some information about the repositories such as repository name, descriptions, etc.
- Please have a look at Github documentation to find out the desired endpoint.
- Feel free to experiment anything concerning the styles.
import React, { useState, useEffect } from 'react'; | |
const ImageLoad = React.memo(({ src, placeholder, alt = "" }) => { | |
const [loading, setLoading] = useState(true); | |
const [currentSrc, updateSrc] = useState(placeholder); | |
useEffect(() => { | |
// start loading original image | |
const imageToLoad = new Image(); | |
imageToLoad.src = src; |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
docker image dockerdev-enp.bin.cloud.barco.com/tfnnxt/system-manager-open-api:0.0.1-setup-NET0101-589-85e5dd9bb4-jenkins-10 | |
docker image dockerdev-enp.bin.cloud.barco.com/tfnnxt/wall-space:0.0.0-ui-screen-work-flow-b3533838a9-jenkins-5 |
// Creating subarrays for input array given based on variable size k.
// Example: Input: [8, 2, 4, 20] & k=2 it should output to[[8, 2], [2, 4], [4, 20]]
const subArr = (arr, k) => {
return arr.map((a, i) => {
return arr.slice(i, k + i).length === k ? arr.slice(i, k + i) : '';
}).filter((a) => a.length);
}