Posts
Q&A
@types/react๋ฅผ ์ธ์ํ์ง ๋ชปํ๋ ์๋ฌ
์ ๋ ๋ฐ๋ผํ๋ค๊ฐ,react version 18๋ก ์ค์นํ๋๋ฐ ์ ๋์ด์ ๊ทธ๋ ๊ฒ ์ฌ์ฉํ๊ณ ์์ต๋๋ค (v17๋ก๋ ์ต์ ๋ฒ์ ์ด๋ ์ด๋ฐ ์ ๋ฐ ๋ฒ์ ์กฐํฉ์ ํด๋ด๋ ํด๊ฒฐ์ฑ ์ ๋ชป ์ฐพ์์ต๋๋ค) "dependencies": { "@chakra-ui/react": "^2.8.2", "@emotion/react": "^11.11.3", "@emotion/styled": "^11.11.0", "firebase-admin": "^12.0.0", "framer-motion": "^11.0.5", "next": "^12.0.7", "react": "^18.2.0", "react-dom": "^18.2.0", "styled-components": "^5.3.3" }, "devDependencies": { "@types/node": "^16.11.13", "@types/react": "^18.2.55", "@types/styled-components": "^5.1.18", "@typescript-eslint/eslint-plugin": "^5.8.0", "@typescript-eslint/parser": "^5.8.0", "babel-eslint": "^10.1.0", "babel-plugin-styled-components": "^2.0.2", "eslint": "^8.52.0",
- 0
- 3
- 2.7K
Q&A
์ฌ์ฉํ์๋ zsh ํ ๋ง๊ฐ ๋ญ์์?
์์ค์ฝ๋ ์ฃผ์๋ ์ฌ๊ธฐhttps://github.com/totuworld/blahx2/tree/start
- 0
- 2
- 417
Q&A
ํ๊ธํฐํธ๊ฐ ๊นจ์ง๋๋ค
For ์์ดํจ๋ ์ฌ์ฉ์ ์ ๋ ์ถํด๊ทผ๊ธธ์ ์์ดํจ๋์์ ๋ณด๋ค๋ณด๋ ํ๊ฒฝ์ด ์กฐ๊ธ ๋ฌ๋์ต๋๋ค. ๋น์ทํ ๊ฒฝ์ฐ๊ฐ ์์๋๋ฐ ์๋์ฒ๋ผ ์์ดํจ๋ ๊ธฐ๋ณธ ํฐํธ๋ก ์ค์ ํ๋ ๋์ด์. def get_font_family(): """ ์์คํ ํ๊ฒฝ์ ๋ฐ๋ฅธ ๊ธฐ๋ณธ ํฐํธ๋ช ์ ๋ฐํํ๋ ํจ์ """ import platform system_name = platform.system() # colab ์ฌ์ฉ์๋ system_name์ด 'Linux'๋ก ํ์ธ if system_name == "Darwin" : # font_family = "AppleGothic" font_family = "Apple SD Gothic Neo" elif system_name == "Windows": font_family = "Malgun Gothic" else: # Linux # colab์์๋ runtime์ ์ฌ์์ ํด์ผํฉ๋๋ค. # ๋ฐํ์์ ์ฌ์์ ํ์ง ์๊ณ ํฐํธ ์ค์น๋ฅผ ํ๋ฉด ๊ธฐ๋ณธ ์ค์ ํฐํธ๊ฐ ๋ก๋๋์ด ํ๊ธ์ด ๊นจ์ง๋๋ค. !apt-get update -qq !apt-get install fonts-nanum -qq > /dev/null import matplotlib.font_manager as fm fontpath = '/usr/share/fonts/truetype/nanum/NanumBarunGothic.ttf' font = fm.FontProperties(fname=fontpath, size=9) fm._rebuild() font_family = "NanumBarunGothic" return font_family
- 2
- 2
- 1.4K