Skip to content

Instantly share code, notes, and snippets.

View SeiwonPark's full-sized avatar

Seiwon Park SeiwonPark

View GitHub Profile
@SeiwonPark
SeiwonPark / brew.sh
Created December 11, 2023 07:42
Homebrew install/uninstall
# 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)"
@SeiwonPark
SeiwonPark / crawler.py
Last active June 6, 2023 01:23
python crawler base code
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:
@SeiwonPark
SeiwonPark / configStyle.xml
Created April 25, 2023 13:35
Java Config Style XML file
<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">
@SeiwonPark
SeiwonPark / .eslintrc.js
Last active May 15, 2023 09:55
eslint + prettier + import order for React.js
module.exports = {
env: {
es2021: true,
node: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier', 'import'],
extends: ['prettier'],
overrides: [],
parserOptions: {
@SeiwonPark
SeiwonPark / NumberUtils.ts
Created March 21, 2023 07:13
NumberUtils.ts
/**
* 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.
*
@SeiwonPark
SeiwonPark / .eslintrc.js
Last active April 24, 2023 19:30
eslint + prettier for typescript
module.exports = {
env: {
es2021: true,
node: true,
},
extends: ['prettier'],
overrides: [],
plugins: ['prettier'],
parserOptions: {
ecmaVersion: 'latest',
@SeiwonPark
SeiwonPark / reset.sh
Last active May 14, 2023 17:23
reset.sh
#!/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)
@SeiwonPark
SeiwonPark / Dockerfile
Created February 13, 2023 13:01
react.Dockerfile
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