Skip to content

Instantly share code, notes, and snippets.

import random
import os
def remove_directory(dir_path):
try:
shutil.rmtree(dir_path)
print(f"{dir_path} 디렉토리와 그 내용이 성공적으로 삭제되었습니다.")
except FileNotFoundError:
print(f"{dir_path} 디렉토리가 존재하지 않습니다.")
except Exception as e:
@font-face {
font-family: 'NanumSquareNeoLight';
src: url(//hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-aLt.eot);
src: url(//hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-aLt.eot?#iefix) format("embedded-opentype"), url(//hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-aLt.woff) format("woff"), url(//hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-aLt.ttf) format("truetype");
}
@font-face {
font-family: 'NanumSquareNeo';
src: url(//hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.eot);
src: url(//hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.eot?#iefix) format("embedded-opentype"), url(//hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.woff) format("woff"), url(//hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.ttf) format("truetype");
@apwlq
apwlq / JetBrains-Mono.css
Last active May 7, 2024 01:06 — forked from Albert221/JetBrains-Mono.css
CSS for using JetBrains Mono on the Web. Simply copy&paste it to your stylesheet.
@font-face {
font-family: 'JetBrains Mono';
src: url('//cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Bold-Italic.woff2') format('woff2'),
url('//cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Bold-Italic.woff') format('woff');
font-weight: 700;
font-style: italic;
font-display: swap;
}
@font-face {
@apwlq
apwlq / server-optimization-guide-ko.md
Created March 12, 2024 00:43 — forked from aroxu/server-optimization-guide-ko.md
Minecraft Server Optimization Guide (Korean)

시작 하기 앞서, 이 가이드는 이 Spigot MC 최적화 가이드를 보기 쉽게 한글화 한것임을 알립니다.

bukkit.yml

  • spawn-limits
    기본값: monsters:70, animals:10, water-animals:15, water-ambient:20, ambient:15
    최적화 값: monsters:50, animals:8, water-animals:7, water-ambient:10, ambient:1
    성능에 미치는 영향: 높음

    ➫ "플레이어 당 몹"(플레이어 한명당 비례하게 생기는 몹의 양) 값이 낮을수록 몹이 적다는 것을 의미합니다. 너무 낮게 설정하는 것을 피하세요. 그렇지 않으면 눈에 띄게 몹이 부족할 수 있습니다.

@apwlq
apwlq / ansi-colors-discord.md
Created January 2, 2024 04:10 — forked from kkrypt0nn/ansi-colors-discord.md
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m

\u001b is the unicode escape for ESCAPE/ESC, meant to be used in the source of your bot (see ). If you wish to send colored text without using your bot you need to copy the character from the website.

@apwlq
apwlq / 📊 Weekly development breakdown
Last active October 22, 2023 00:50
📊 주간 개발 분석
XML 4 mins █████████████░░░░░░░░ 62.4%
Kotlin 2 mins ███████▉░░░░░░░░░░░░░ 37.6%