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
# install | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# uninstall | |
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" |
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
import time | |
from selenium import webdriver | |
from selenium.webdriver.chrome.service import Service | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.support.ui import WebDriverWait | |
from webdriver_manager.chrome import ChromeDriverManager | |
class Crawler: |
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
<code_scheme name="KMU_CAPSTONE_TEAM_40_CODE_STYLE_CONFIG" version="173"> | |
<option name="AUTODETECT_INDENTS" value="true" /> | |
<option name="OTHER_INDENT_OPTIONS"> | |
<value> | |
<option name="USE_TAB_CHARACTER" value="true" /> | |
</value> | |
</option> | |
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="5" /> | |
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="3" /> | |
<option name="IMPORT_LAYOUT_TABLE"> |
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
module.exports = { | |
env: { | |
es2021: true, | |
node: true, | |
}, | |
parser: '@typescript-eslint/parser', | |
plugins: ['@typescript-eslint', 'prettier', 'import'], | |
extends: ['prettier'], | |
overrides: [], | |
parserOptions: { |
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
/** | |
* Number utils class for global use case with better performance. | |
* For additional functions, please make it `static` to make | |
* code consistent. | |
*/ | |
export class NumberUtils<T> extends Array<T> { | |
/** | |
* A Range function that returns an array of incremental numbers. | |
* Range index starts from `0` by default. | |
* |
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
module.exports = { | |
env: { | |
es2021: true, | |
node: true, | |
}, | |
extends: ['prettier'], | |
overrides: [], | |
plugins: ['prettier'], | |
parserOptions: { | |
ecmaVersion: 'latest', |
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
#!/bin/bash | |
echo "[WARN] Removing all docker resources..." | |
read -p "Do you want to continue? [y/n] ? " -r ARG | |
if [[ $ARG =~ ^[Yy]$ ]]; then | |
[ $(docker ps | wc -l) -ne 1 ] && \ | |
echo "\n[INFO] Stopping containers..." && \ | |
docker stop $(docker ps -aq) |
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
FROM node:16-alpine AS deps | |
WORKDIR /app | |
COPY package.json pnpm-lock.yaml ./ | |
RUN npm i -g pnpm && \ | |
pnpm i --frozen-lockfile | |
FROM node:16-alpine AS builder | |
WORKDIR /app |