Skip to content

Instantly share code, notes, and snippets.

@apwlq
apwlq / ๐Ÿ“Š Weekly development breakdown
Last active October 22, 2023 00:50
๐Ÿ“Š ์ฃผ๊ฐ„ ๊ฐœ๋ฐœ ๋ถ„์„
XML 4 mins โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 62.4%
Kotlin 2 mins โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‰โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 37.6%
@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 / 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 / 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 {
@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");
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: