- Does the code work?
- Description of the project status is included.
- Code is easily understand.
- Code is written following the coding standarts/guidelines (React in our case).
- Code is in sync with existing code patterns/technologies.
- DRY. Is the same code duplicated more than twice?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#set -x # Uncomment to DEBUG | |
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
source "$SCRIPT_DIR/logger.sh" | |
logger token "$@" # controlled by DEBUG=token,* | |
logger refresh "$@" # controlled by DEBUG=refresh,* | |
# terminal colors and utility functions, like: cl_grey, cl_reset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# shellcheck disable=SC2034 | |
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
# shellcheck disable=SC1090 source=commons.sh | |
source "$SCRIPT_DIR/commons.sh" | |
logger dependencies "$@" # register own debug tag & logger functions | |
#set -x # Uncomment to DEBUG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# shellcheck disable=SC2155,SC2034,SC2059 | |
# get script directory | |
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
# is allowed to use macOS extensions (script can be executed in *nix environment) | |
use_macos_extensions=false | |
if [[ "$OSTYPE" == "darwin"* ]]; then use_macos_extensions=true; fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# shellcheck disable=SC2086 | |
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
# include other scripts | |
# shellcheck disable=SC1090 source=dependencies.sh | |
source "$SCRIPT_DIR/dependencies.sh" | |
# shellcheck disable=SC1090 source=commons.sh | |
source "$SCRIPT_DIR/commons.sh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
container_name=${CI_CONTAINER_NAME:="hvc-csp"} | |
container_port=${CI_CONTAINER_PORT:=8081} | |
# include other scripts | |
# shellcheck disable=SC1090 source=./dependencies.sh | |
source "$SCRIPT_DIR/dependencies.sh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## build production version | |
# https://hub.docker.com/_/node | |
# FROM node:16 as build-dev | |
# FROM node:16-alpine as build-dev | |
FROM cypress/base:16 as build-dev | |
WORKDIR /app | |
# copy project source code into docker container folder | |
# .dockerignore configures what to skip during the execution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here's a sample binary tree node class: | |
open class BinaryTreeNode constructor(var value: Int) { | |
var left: BinaryTreeNode = Empty | |
protected set | |
var right: BinaryTreeNode = Empty | |
protected set | |
fun insertLeft(leftValue: Int): BinaryTreeNode { | |
check(leftValue >= 0) { "Expected only positive values" } | |
this.left = BinaryTreeNode(leftValue) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { glob } from 'glob' | |
import fs from 'node:fs' | |
const cwd = { | |
message: `Current working directory (ex. ~/project, ../project, ./project):`, | |
type: `autocomplete`, | |
limit: 10, | |
choices: [ | |
/* force prompts to render 10 lines */ | |
{ title: `Current working directory`, value: process.cwd() }, |