Skip to content

Instantly share code, notes, and snippets.

View hochan222's full-sized avatar
😀
Developer

hochan Lee hochan222

😀
Developer
View GitHub Profile
@hochan222
hochan222 / contribute_rush00.sh
Last active October 24, 2020 15:16
How to contribute rush00?
# ======================================================================================================
# * Please PR by adding it according to the format below this!
# * Two functions created will help you in adding test cases.
# * We will reflect after review :)
# *
# * < Function: customEvaluation >
# *
# * When adding a test case, use this function to add it.
# *
# * @param string The name of rush file to run.
@hochan222
hochan222 / settings.json
Created October 24, 2020 16:14
.vscode/settings.json
{
"42header.email": "holee@student.42.fr",
"42header.username": "holee",
"editor.tabSize": 4,
"editor.insertSpaces": false,
"editor.renderWhitespace": "all",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
}
@hochan222
hochan222 / Makefile
Last active October 25, 2020 07:59
Basic Assembler Makefile
NAME = libasm.a
SAVE = -g3 -fsanitize=address
FLAGS = -Wall -Wextra -Werror $(SAVE)
DIR_SRCS = ./src/
SRC = ft_strlen.s
SRCS = $(addprefix $(DIR_SRCS), $(SRC))
OBJS = $(SRCS:%.s=%.o)
@hochan222
hochan222 / timeout.sh
Last active October 26, 2020 12:29
mac bash shell timeout
(echo 'hello world') & sleep 1; kill $! 2> /dev/null || :
@hochan222
hochan222 / ft_math.scss
Created October 28, 2020 09:47
math for scss
/*
** File: ft_math
** Description: This is the math library you need in css.
** Connect: hochan222 - https://github.com/hochan222
**
** List: factorial, sin, cos, tan
*/
/*
** factorial
@hochan222
hochan222 / shell_color.md
Last active December 1, 2020 16:56
shell_color

word

  • BLUE: \033[1;34m
  • RED: \033[1;31m
  • CLEAR: \033[0m
### word
RED_COLOR="\033[31m"
LIGHT_RED_COLOR="\033[31m\033[01m"
GREEN_COLOR="\033[32m"
@hochan222
hochan222 / getAcceptLanguage.cpp
Created March 31, 2021 11:05
Accept-Language
std::string
Request::getAcceptLanguage()
{
if (this->m_content_type != "")
return (this->m_content_type);
std::map<std::string, std::string>::const_iterator it;
it = this->m_headers.find("Accept-Language");
// `Accept-Language Header` not exist
@hochan222
hochan222 / cash_clear.sh
Last active April 21, 2021 03:53
cash clear
rm -rf ~/Library/Application\ Support/Code/User/workspaceStorage \
rm -rf ~/Library/Application\ Support/Slack/Service\ Worker/CacheStorage \
rm -rf ~/Library/Application\ Support/discord/Cache \
rm -rf ~/Library/Application\ Support/Code/CachedData \
rm -rf ~/Library/Developer/CoreSimulator
@hochan222
hochan222 / leak_check.sh
Last active April 26, 2021 14:05
leak check
while 1 ; do leaks [ps] ; sleep 3 ; clear ; done
@hochan222
hochan222 / .env
Created May 6, 2021 13:41
.env for translated-content
CONTENT_TRANSLATED_ROOT=/Users/tonybyeon/Desktop/translated-content/files
EDITOR=code