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 -e | |
: ${PHP_VERSION:="8.2"} | |
: ${NODE_VERSION:="20"} | |
: ${APP_REPO:="https://github.com/laravel/laravel.git"} | |
: ${MYSQL_ROOT_PASSWORD:=$(openssl rand -base64 32)} | |
: ${MYSQL_ICSP_USER:="icspdbadmin"} | |
: ${MYSQL_ICSP_DATABASE:="icspdb"} | |
: ${MYSQL_ICSP_PASSWORD:=$(openssl rand -base64 32)} |
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
#!/bin/bash | |
# Original script https://raw.githubusercontent.com/vitodeploy/vito/main/install/install.sh | |
export DEBIAN_FRONTEND=noninteractive | |
export NEEDRESTART_MODE=a | |
echo "Enter username" | |
read USERNAME | |
echo "Enter domain" |
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
/** | |
* @description REQUIRED!! | |
* Create a function to tests if given | |
* parameters are equal | |
* @note | |
* this function with be used to test your outputs :D | |
* if you fail to create this function | |
* you're score will be 0 automatically | |
*/ | |
const assertEqual = (output, expected) => output === expected |
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 React from "react" | |
import {Link} from "react-router-dom" | |
import { useScrollToView } from "./useScrollToView" | |
export default function Anchor() { | |
useScrollToView() | |
return ( | |
<div> | |
<nav> | |
<Link to="#about">About using React Router</Link> | |
<a href="#about">About using html anchor tag</a> |