This file contains 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 | |
# | |
# Nginx - new server block | |
# Functions | |
ok() { echo -e '\e[32m'$1'\e[m'; } # Green | |
die() { | |
echo -e '\e[1;31m'$1'\e[m' | |
exit 1 | |
} |
This file contains 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
/** | |
* | |
* @param {Object} firstObj | |
* @param {Object} secondObj | |
* @return {Boolean} | |
*/ | |
function checkIfEqualObjects(firstObj, secondObj) { | |
// Find the keys and their values in both of the objects | |
const firstArr = Object.entries(firstObj), | |
secondArr = Object.entries(secondObj); |
This file contains 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
/* JavaScript Array Methods */ | |
let emojis; | |
function resetEmojis() { | |
emojis = ["one", "two", "three", "four"]; | |
} |
This file contains 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
/** | |
* | |
* Date: 08/03/2022 | |
* Task: 04 | |
* Author: Ali Raza (ali.dev@pk.see.biz) | |
* | |
*/ | |
function printTable(num) { |
This file contains 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
/** | |
* | |
* Date: 08/03/2022 | |
* Task-06: Get second largest number from array | |
* Author: Ali Raza (ali.dev@pk.see.biz) | |
* | |
*/ | |
/** | |
* |