diff --git a/Gemfile b/Gemfile index 3be9c3cd812e..a6c8abdab6b9 100644 --- a/Gemfile +++ b/Gemfile @@ -1,2 +1,7 @@ source "https://rubygems.org" -gemspec +gemspecs +gem "minimal-mistakes-jekyll" +gem 'tzinfo' +gem 'tzinfo-data' +gem 'jekyll-redirect-from' +gem "webrick", "~> 1.8" diff --git a/_config.yml b/_config.yml index af7d57221b02..d7620742f5eb 100644 --- a/_config.yml +++ b/_config.yml @@ -12,31 +12,32 @@ # theme : "minimal-mistakes-jekyll" # remote_theme : "mmistakes/minimal-mistakes" -minimal_mistakes_skin : "default" # "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise" +minimal_mistakes_skin : "aqua" # "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise" # Site Settings -locale : "en-US" +locale : "ko-KR" rtl : # true, false (default) # turns direction of the page into right to left for RTL languages -title : "Site Title" -title_separator : "-" -subtitle : # site tagline that appears below site title in masthead -name : "Your Name" -description : "An amazing website." -url : # the base hostname & protocol for your site e.g. "https://mmistakes.github.io" +title : "찬영's blog" +title_separator : "|" +subtitle : "small positive action" +# site tagline that appears below site title in masthead +name : "Chanyeong Park" +description : "박찬영은 오늘도 달린다." +url : "https://Park-Chanyeong.github.io" baseurl : # the subpath of your site, e.g. "/blog" repository : # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes" teaser : # path of fallback teaser image, e.g. "/assets/images/500x300.png" -logo : # path of logo image to display in the masthead, e.g. "/assets/images/88x88.png" +logo : "/assets/images/pouyo.jpg" masthead_title : # overrides the website title displayed in the masthead, use " " for no title -breadcrumbs : # true, false (default) +breadcrumbs : true words_per_minute : 200 enable_copy_code_button : # true, false (default) copyright : # "copyright" name, defaults to site.title copyright_url : # "copyright" URL, defaults to site.url comments: - provider : # false (default), "disqus", "discourse", "facebook", "staticman", "staticman_v2", "utterances", "giscus", "custom" + provider : "disqus" # false (default), "disqus", "discourse", "facebook", "staticman", "staticman_v2", "utterances", "giscus", "custom" disqus: - shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname- + shortname : "chanyeong-blog" discourse: server : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org facebook: @@ -68,7 +69,7 @@ reCaptcha: atom_feed: path : # blank (default) uses feed.xml hide : # true, false (default) -search : # true, false (default) +search : true # true, false (default) search_full_content : # true, false (default) search_provider : # lunr (default), algolia, google lunr: @@ -84,7 +85,7 @@ google: # SEO Related google_site_verification : bing_site_verification : -naver_site_verification : +naver_site_verification : "94c74fa2a6bdb12816c3aad9807170389874aeb8" yandex_site_verification : baidu_site_verification : @@ -105,60 +106,44 @@ social: # Analytics analytics: - provider : # false (default), "google", "google-universal", "google-gtag", "custom" + provider : "google-gtag" # false (default), "google", "google-universal", "google-gtag", "custom" google: - tracking_id : - anonymize_ip : # true, false (default) + tracking_id : "G-VKN4GMJ13Y" + anonymize_ip : false # true, false (default) # Site Author author: - name : "Your Name" - avatar : # path of avatar image, e.g. "/assets/images/bio-photo.jpg" - bio : "I am an **amazing** person." - location : "Somewhere" - email : + name : "Chanyeong Park" + avatar : "/assets/images/chan.gif" + bio : "박찬영의 멈추지 않는 질주" + location : "Seoul, Republic of Korea" + email : "pcy7805@naver.com" links: - - label: "Email" + - label: "pcy7805@naver.com" icon: "fas fa-fw fa-envelope-square" - # url: "mailto:your.name@email.com" - - label: "Website" + url: "pcy7805@naver.com" + - label: "Naver blog" icon: "fas fa-fw fa-link" - # url: "https://your-website.com" - - label: "Twitter" - icon: "fab fa-fw fa-twitter-square" - # url: "https://twitter.com/" - - label: "Facebook" - icon: "fab fa-fw fa-facebook-square" - # url: "https://facebook.com/" + url: "https://blog.naver.com/pcy7805" - label: "GitHub" icon: "fab fa-fw fa-github" - # url: "https://github.com/" - - label: "Instagram" - icon: "fab fa-fw fa-instagram" - # url: "https://instagram.com/" - + url: "https://github.com/Park-Chanyeong" + - label: "Youtube" + icon: "fab fa-fw fa-youtube" + url: "https://youtube.com" # Site Footer footer: links: - - label: "Twitter" - icon: "fab fa-fw fa-twitter-square" - # url: - - label: "Facebook" - icon: "fab fa-fw fa-facebook-square" - # url: - label: "GitHub" icon: "fab fa-fw fa-github" - # url: - - label: "GitLab" - icon: "fab fa-fw fa-gitlab" - # url: - - label: "Bitbucket" - icon: "fab fa-fw fa-bitbucket" - # url: - - label: "Instagram" - icon: "fab fa-fw fa-instagram" - # url: + url: "https://github.com/Park-Chanyeong" + - label: "Naver blog" + icon: "fas fa-fw fa-link" + url: "https://blog.naver.com/pcy7805" + - label: "Youtube" + icon: "fab fa-fw fa-youtube" + url: "https://youtube.com" # Reading Files @@ -227,7 +212,7 @@ sass: # Outputting permalink: /:categories/:title/ -timezone: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones +#timezone: Asia/Seoul # Pagination with jekyll-paginate @@ -263,6 +248,7 @@ plugins: - jekyll-gist - jekyll-feed - jekyll-include-cache + - jekyll-redirect-from # mimic GitHub Pages with --safe whitelist: @@ -271,6 +257,7 @@ whitelist: - jekyll-gist - jekyll-feed - jekyll-include-cache + - jekyll-redirect-from # Archives @@ -290,16 +277,16 @@ tag_archive: type: liquid path: /tags/ # https://github.com/jekyll/jekyll-archives -# jekyll-archives: -# enabled: -# - categories -# - tags -# layouts: -# category: archive-taxonomy -# tag: archive-taxonomy -# permalinks: -# category: /categories/:name/ -# tag: /tags/:name/ +jekyll-archives: + enabled: + - categories + - tags + layouts: + category: archive-taxonomy + tag: archive-taxonomy + permalinks: + category: /categories/:name/ + tag: /tags/:name/ # HTML Compression @@ -320,6 +307,13 @@ defaults: layout: single author_profile: true read_time: true - comments: # true + comments: true share: true related: true + show_date : true + toc: true + toc_sticky: true + toc_label: 목차 + toc_icon: "fa-solid fa-mug-saucer" + author_profile: false +date_format: "%Y-%m-%d" diff --git a/_data/navigation.yml b/_data/navigation.yml index 6f30866f3bed..04bb9e2fe76a 100644 --- a/_data/navigation.yml +++ b/_data/navigation.yml @@ -1,7 +1,33 @@ # main links main: - - title: "Quick-Start Guide" - url: https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/ + - title: "Category" + url: /categories/ + - title: "Tag" + url: /tags/ + - title: "By Year" + url: /year-archive/ + - title: "Search" + url: /search/ + +docs: + - title: "대목차" + children: + - title: "Category" + url: /categories/ + - title: "Tag" + url: /tags/ + - title: "대목차2" + children: + - title: "Category" + url: /categories/ + - title: "Tag" + url: /tags/ + +counts: + - title: "카테고리" + use: true + - title: "태그" + use: true # - title: "About" # url: https://mmistakes.github.io/minimal-mistakes/about/ # - title: "Sample Posts" diff --git a/_includes/nav_list b/_includes/nav_list index d25f9e9480bc..ef4e810f0723 100644 --- a/_includes/nav_list +++ b/_includes/nav_list @@ -1,27 +1,59 @@ +{% assign navigation = site.data.navigation[include.nav] %} + +{% assign categories_max = 0 %} +{% for category in site.categories %} + {% if category[1].size > categories_max %} + {% assign categories_max = category[1].size %} + {% endif %} +{% endfor %} + +{% assign tags_max = 0 %} +{% for tag in site.tags %} + {% if tag[1].size > tags_max %} + {% assign tags_max = tag[1].size %} + {% endif %} +{% endfor %} + diff --git a/_pages/404.md b/_pages/404.md new file mode 100644 index 000000000000..a509bb3ab9a6 --- /dev/null +++ b/_pages/404.md @@ -0,0 +1,8 @@ +--- +title: "Page Not Found" +excerpt: "Page not found. Your pixels are in another canvas." +sitemap: false +permalink: /404.html +--- + +![](https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FrVuWa%2Fbtq0BDkP0Hm%2FL2l03RrUxkUvo3Owtw4vv1%2Fimg.gif) \ No newline at end of file diff --git a/_pages/category-archive.md b/_pages/category-archive.md new file mode 100644 index 000000000000..b8ade6a0e381 --- /dev/null +++ b/_pages/category-archive.md @@ -0,0 +1,7 @@ +--- +title: "Category" +layout: categories +permalink: /categories/ +author_profile: true +sidebar_main : true +--- diff --git a/_pages/search.md b/_pages/search.md new file mode 100644 index 000000000000..9a05649273fd --- /dev/null +++ b/_pages/search.md @@ -0,0 +1,5 @@ +--- +title: Search +layout: search +permalink: /search/ +--- \ No newline at end of file diff --git a/_pages/tag-archive.md b/_pages/tag-archive.md new file mode 100644 index 000000000000..8455559f08e5 --- /dev/null +++ b/_pages/tag-archive.md @@ -0,0 +1,7 @@ +--- +title: "Tag" +layout: tags +permalink: /tags/ +author_profile: true +sidebar_main : true +--- diff --git a/_pages/year-archive.md b/_pages/year-archive.md new file mode 100644 index 000000000000..6f8570368b79 --- /dev/null +++ b/_pages/year-archive.md @@ -0,0 +1,6 @@ +--- +title: "연도별" +permalink: /year-archive/ +layout: posts +author_profile: true +--- diff --git a/_posts/2024-10-02-first.md b/_posts/2024-10-02-first.md new file mode 100644 index 000000000000..99c950bcfd8d --- /dev/null +++ b/_posts/2024-10-02-first.md @@ -0,0 +1,34 @@ +--- +layout: single +title: "첫 포스팅 입니다." +--- + + + + + +# 오늘 블로그 첫 오픈했어요! +열심히 기록하겠습니다. + + +toc- 포스팅 안에 스크롤 할때마다 목차 변하는 거 +샵 두개 넣으면 세컨헤딩이 됨. +샵 세개 넣으면 세부 목차가 됨. + +# 샵 하나는 제일 큰 목차 +와우 + +## 큰 목차 1번 +### 작은 세부 목차 1번 +됐나? +### 작은 세부 목차 2번 +됐을까 +### 작은 세부 목차 3번 +됐기를 +# 와우 2 +와우 2 + + +**실시간으로 반영이 되는거냐?** + +![pouyo](../images/2024-10-02-first/pouyo.jpg){: .img-width-half .align-center} diff --git a/_posts/2024-10-02-test1.md b/_posts/2024-10-02-test1.md new file mode 100644 index 000000000000..eadf45bede2a --- /dev/null +++ b/_posts/2024-10-02-test1.md @@ -0,0 +1,483 @@ +--- +layout: single +title: "테스트용" +categories: python +tag: [python, blog, jekyll] +search: true +redirect_from: + - /python11/ +--- + +**[공지사항]**[블로그 신규 업데이트 안내 드립니다.(테스트용)](https://park-chanyeong.github.io) +{: .notice--danger} + +**[공지사항]**[블로그 신규 업데이트 안내 드립니다.(테스트용)](https://park-chanyeong.github.io) +{: .notice--primary} + + + +추가 잘됐나? +{: .align-right} + + + +
+

공지사항입니다.

+ +
+ +수정수정.. + +[버튼입니다.](https://google.com){: .btn .btn--danger} + +{% include video id="q0P3TSoVNDM" provider="youtube" %} #유튜브영상 + + +# 블로그 수정 + + +```python +x = [i for i in range(10)] +print(x) +x_2 = [i * i for i in range(10)] +print(x_2) +x_3 = [[i,j*2] for i in [10,2,3,1] for j in [2,4]] +print(x_3) +``` +## 큰 목차 1번 +### 작은 세부 목차 1번 +됐나? +### 작은 세부 목차 2번 +됐을까 +### 작은 세부 목차 3번 +됐기를 + [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] + [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] + [[10, 4], [10, 8], [2, 4], [2, 8], [3, 4], [3, 8], [1, 4], [1, 8]] + +```python +# Program to count the number of each vowels +# string of vowels +vowels = 'aeiou' + +ip_str = 'Hello, have you tried our tutorial section yet?' + +# make it suitable for caseless comparisions +ip_str = ip_str.casefold() + +# make a dictionary with each vowel a key and value 0 +count = {}.fromkeys(vowels,0) + +# count the vowels +for char in ip_str: + if char in count: + count[char] += 1 + +print(count) + +```python +y = [ i for i in range(30) if i%2 == 0] +print(y) +y_2 = [ i *10 for i in range(20) if i%3 == 0] +print(y_2) +y_3 = [[i , j*2] for i in [10,2,3,1] for j in [2,4] if i!=j] +print(y_3) +``` + + [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28] + [0, 30, 60, 90, 120, 150, 180] + [[10, 4], [10, 8], [2, 8], [3, 4], [3, 8], [1, 4], [1, 8]] + + + +```python +a = ['a ', 'b', 'c', 'd', 'e'] +b = ['1', '2', '3', '4', '5'] +x = [i + j for i in a for j in b] +print(x) + +``` + + ['a 1', 'a 2', 'a 3', 'a 4', 'a 5', 'b1', 'b2', 'b3', 'b4', 'b5', 'c1', 'c2', 'c3', 'c4', 'c5', 'd1', 'd2', 'd3', 'd4', 'd5', 'e1', 'e2', 'e3', 'e4', 'e5'] + + + +```python +x = [ i for i in range(50) if i%2==0 if i%3==0] +print(x) +``` + + [0, 6, 12, 18, 24, 30, 36, 42, 48] + + + +```python +a = 5 +if a > 3: + print(a +2) +else: + print(a- 2) + +b = 7 +if b == 7: + print(b+2) +else: + print(b-2) +``` + + 7 + 9 + + + +```python +x = [4,10,9] +for a in x: + print(a) +``` + + 4 + 10 + 9 + + + +```python +for a in [4,10,9]: + print(a) +``` + + 4 + 10 + 9 + + + +```python +def my_func_1(): + a = 2 + b = 3 + print( a +b) + +my_func_1() +``` + + 5 + + + +```python +def my_func_2(p,q): + print(p+q) +my_func_2(3,4) +``` + + 7 + + + +```python +def my_func_3(p,q): + r = p + q + return r +k = my_func_3(3,4) +print(k) +``` + + 7 + + + +```python +def my_func_3(p , q): + r = p +q + s = p-q + return (r,s) +k, l = my_func_3(5,2) +print(k,l) +``` + + 7 3 + + + +```python +%reset +#스코프 + +a = 123 + +def show_number(): + b = 456 + print(a, b) +show_number() +print(a) +print(b) +``` + + Once deleted, variables cannot be recovered. Proceed (y/[n])? y + 123 456 + 123 + + + + --------------------------------------------------------------------------- + + NameError Traceback (most recent call last) + + ~\AppData\Local\Temp\ipykernel_17360\134477457.py in + 9 show_number() + 10 print(a) + ---> 11 print(b) + + + NameError: name 'b' is not defined + + + +```python +a = 123 +def show_arg(a): + print("Local:", a) +show_arg(456) +print("Global:", a) + +``` + + Local: 456 + Global: 123 + + + +```python +a = 123 +def set_global(): + global a + a = 456 + print("Global:", a) +set_global() +print("global:", a) +``` + + Global: 456 + global: 456 + + + +```python +my_list = [ 1,2,3,4,5] +print(my_list[2]) +my_tuple = (1,2,3,4,5) +print(my_tuple[3]) + +a = 5 +b = 2 +if a ==5: + print(a+b) + +for m in my_list: + print(m+1) + +def add(p, q): + return p + q +print(add(a,b)) +``` + + 3 + 4 + 7 + 2 + 3 + 4 + 5 + 6 + 7 + + + +```python +import matplotlib.pyplot as plt +import numpy as np + +x = np.linspace(-5,5) +print(x) +print(len(x)) +``` + + [-5. -4.79591837 -4.59183673 -4.3877551 -4.18367347 -3.97959184 + -3.7755102 -3.57142857 -3.36734694 -3.16326531 -2.95918367 -2.75510204 + -2.55102041 -2.34693878 -2.14285714 -1.93877551 -1.73469388 -1.53061224 + -1.32653061 -1.12244898 -0.91836735 -0.71428571 -0.51020408 -0.30612245 + -0.10204082 0.10204082 0.30612245 0.51020408 0.71428571 0.91836735 + 1.12244898 1.32653061 1.53061224 1.73469388 1.93877551 2.14285714 + 2.34693878 2.55102041 2.75510204 2.95918367 3.16326531 3.36734694 + 3.57142857 3.7755102 3.97959184 4.18367347 4.3877551 4.59183673 + 4.79591837 5. ] + 50 + + + +```python +x = np.linspace(-5,5) +y = 2 * x +plt.plot(x,y) +plt.show() +``` + + +​ +![png](output_16_0.png) +​ + + + +```python +#그래프 꾸미기 + +x = np.linspace(-5,5) +y_1 = 2 *x +y_2 = 3 *x + +#축의 라벨 +plt.xlabel("x value", size=14) +plt.ylabel("y value", size=14) + +#그래프의 타이틀 +plt.title("MY Graph") + +#그리드표시 +plt.grid() + +#플롯 시에 범례와 선의 스타일을 지정 +plt.plot(x, y_1, label="y1") +plt.plot(x, y_2, label="y2", linestyle = "dashed" ) +plt.legend() #범례 + +plt.show() + + +``` + + +​ +![png](output_17_0.png) +​ + + + +```python +x = np.array([1.2, 2.4, 0.0, 1.4, 1.5, 0.3, 0.7]) +y = np.array([2.4, 1.4, 1.0, 0.1, 1.7, 2.0, 0.6]) + +plt.scatter(x,y) +plt.grid() +plt.show() +``` + + +​ +![png](output_18_0.png) +​ + + + +```python +#히스토그램 + +data = np.array([0,1,1,2,2,2,3,3,4,5,6,6,7,7,7,8,8,9]) +plt.hist(data, bins=20) #bins는 기둥의 수 +plt.show() +#멤버의 수에 따라 bins로 모양을 조정 +``` + + +​ +![png](output_19_0.png) +​ + + + +```python +x = np.linspace(-5,5) +y = (x-1)**2 -3 +plt.xlabel("x val", size = 14) +plt.ylabel("y val", size = 14) +plt.grid() +plt.plot(x,y, label = "Y") +plt.show() +``` + + +​ +![png](output_20_0.png) +​ + + + +```python +#수학의 함수를 파이썬의 함수로 구현 + +def my_func(x): + return 3*x + 2 +x = 4 #글로벌변수 +y = my_func(x) +print(y) +``` + + 14 + + + +```python +def func_1(a): + return 3*a**2 + 2*a + 1 +x = 3 +y = func_1(x) +print(y) +``` + + 34 + + + +```python +def func_2(b): + return 4*x + 1 +x= 3 +y = func_2(x) +print(y) +``` + + 13 + + + +```python +def my_func(x): + a = 3 + return x**a + +x = np.linspace(-2,2) +y = my_func(x) + +plt.plot(x,y) +plt.xlabel("x", size = 14) +plt.ylabel("y", size = 14) +plt.grid() +plt.show() +``` + + +​ +![png](output_24_0.png) +​ + + + +```python + +``` diff --git a/_posts/2024-10-04-Seaborn.md b/_posts/2024-10-04-Seaborn.md new file mode 100644 index 000000000000..61174647c96a --- /dev/null +++ b/_posts/2024-10-04-Seaborn.md @@ -0,0 +1,15 @@ +--- +layout: single +title: "시각화 라이브러리 Seaborn 개념, 실습" +categories: python +tag: [python, blog, seaborn] +search: true +--- + +**[Seaborn]**[개념 및 실습](https://park-chanyeong.github.io) +{: .notice--primary} + + + + + diff --git a/_posts/2024-10-06-django1.md b/_posts/2024-10-06-django1.md new file mode 100644 index 000000000000..338b7b621c43 --- /dev/null +++ b/_posts/2024-10-06-django1.md @@ -0,0 +1,124 @@ +--- +layout: single +title: "Wordcloud 개념과 Python 실습" +categories: python +tag: [python, blog, Wordcloud, 프로그래머스4기] +search: true +typora-root-url: ../ +--- + + + +**[Wordcloud]**[개념 및 실습](https://park-chanyeong.github.io) +{: .notice--primary} + + + +# 1. What is WordCloud + +--- + +자주 등장하는 텍스트를 중요도나 인기도를 고려해 표현한 것. + +![blog1](/images/2024-10-06-django1/blog1-1728213117542-14.jpg) + +파이썬에서 전처리한 정보와 Wordcloud 라이브러리를 바탕으로 Wordcloud 생성 가능 + +wordcloud는 파이썬의 텍스트 클라우드 라이브러리로, 이를 기반으로 텍스트 구름을 그릴 수 있음. + +konlpy는 한국어 형태소 분석기 라이브러리로, 주어진 문장에서 명사 등을 뽑아 내는 데에 사용 가능 + +# 2. Python 실습해보기 + +--- + + + +## 2-1 필수 라이브러리 다운 + +```bash +%pip install wordcloud +%pip install konlpy +``` + + + + + +## 2-2 WordCloud 만들기 + +다음과 같은 순서로 시각화를 진행해 보겠습니다. + +1. KoNLPy 라이브러리로 한국어 문장을 전처리 +2. Counter를 이용해 빈도수 측정 +3. WordCloud를 이용해 시각화 + +```py +# 시각화에 쓰이는 라이브러리 +import matplotlib.pyplot as plt # 그래프, 이미지 등을 시각화하는 라이브러리 +from wordcloud import WordCloud # 워드클라우드(단어 빈도를 시각화) 생성에 사용하는 라이브러리 + +# 횟수를 기반으로 딕셔너리 생성 +from collections import Counter # 각 단어의 빈도수를 계산하는 데 사용되는 클래스 + +# 문장에서 명사를 추출하는 형태소 분석 라이브러리 +from konlpy.tag import Hannanum # 한글 텍스트에서 명사 등 품사를 분석하는 라이브러리 + +# 워드클라우드를 만드는 데 사용할 애국가 가사입니다. +national_anthem = """ +동해물과 백두산이 마르고 닳도록 +하느님이 보우하사 우리나라 만세 +무궁화 삼천리 화려 강산 +대한 사람 대한으로 길이 보전하세 +남산 위에 저 소나무 철갑을 두른 듯 +바람 서리 불변함은 우리 기상일세 +무궁화 삼천리 화려 강산 +대한 사람 대한으로 길이 보전하세 +가을 하늘 공활한데 높고 구름 없이 +밝은 달은 우리 가슴 일편단심일세 +무궁화 삼천리 화려 강산 +대한 사람 대한으로 길이 보전하세 +이 기상과 이 맘으로 충성을 다하여 +괴로우나 즐거우나 나라 사랑하세 +무궁화 삼천리 화려 강산 +대한 사람 대한으로 길이 보전하세 +""" + +# Hannanum 객체를 생성한 후, .nouns() 메서드를 통해 명사를 추출합니다. +# (자바가 설치되어 있지 않으면 에러가 발생할 수 있습니다.) +hannanum = Hannanum() # Hannanum 객체 생성 +nouns = hannanum.nouns(national_anthem) # 애국가 가사에서 명사 추출 + +# 추출된 명사 중 길이가 1 이상인 단어만 필터링합니다. +words = [noun for noun in nouns if len(noun) > 1] # 단어 길이가 1을 넘는 명사만 추출 +words[:10] # 첫 10개의 명사를 확인 + +# Counter를 이용해 각 단어의 개수를 세줍니다. +counter = Counter(words) # 단어의 빈도를 계산하여 딕셔너리 형태로 반환 +counter # 단어별 빈도 확인 + +# WordCloud를 이용해 텍스트 구름을 만들어봅시다. +wordcloud = WordCloud( + font_path='C:/Windows/Fonts/malgun.ttf', # 한글 폰트 경로 지정 (Windows 사용 시) + width=800, height=400, + background_color='white' +) + +# 단어 빈도 데이터를 바탕으로 워드클라우드 생성 +img = wordcloud.generate_from_frequencies(counter) + +# 워드클라우드를 이미지로 출력 +plt.figure(figsize=(10, 5)) +plt.imshow(img, interpolation='bilinear') +plt.axis('off') # 축을 숨김 +plt.show() + +``` + +### 주요 코드 설명: + +- **Hannanum**: `konlpy` 라이브러리의 한국어 형태소 분석기. 텍스트에서 명사만 추출합니다. +- **Counter**: 단어의 빈도수를 계산하는 클래스. +- **WordCloud**: 단어 빈도를 시각적으로 표현하는 파이썬 라이브러리. +- **matplotlib**: 이미지를 시각화할 때 사용됩니다. + diff --git a/_sass/minimal-mistakes.scss b/_sass/minimal-mistakes.scss index ba9d13d5df2f..d4057954e0a3 100644 --- a/_sass/minimal-mistakes.scss +++ b/_sass/minimal-mistakes.scss @@ -35,3 +35,6 @@ @import "minimal-mistakes/archive"; @import "minimal-mistakes/sidebar"; @import "minimal-mistakes/print"; + +/* google font */ +@import url('https://fonts.googleapis.com/css2?family=Gamja+Flower&family=Jua&display=swap'); \ No newline at end of file diff --git a/_sass/minimal-mistakes/_page.scss b/_sass/minimal-mistakes/_page.scss index e33888400eed..9038e5a2cdad 100644 --- a/_sass/minimal-mistakes/_page.scss +++ b/_sass/minimal-mistakes/_page.scss @@ -36,12 +36,12 @@ body { .page { @include breakpoint($large) { float: inline-end; - width: calc(100% - #{$right-sidebar-width-narrow}); + width: calc(100%); padding-inline-end: $right-sidebar-width-narrow; } @include breakpoint($x-large) { - width: calc(100% - #{$right-sidebar-width}); + width: calc(100%); padding-inline-end: $right-sidebar-width; } diff --git a/_sass/minimal-mistakes/_utilities.scss b/_sass/minimal-mistakes/_utilities.scss index cd6e94b7fd1d..a418fa5556f6 100644 --- a/_sass/minimal-mistakes/_utilities.scss +++ b/_sass/minimal-mistakes/_utilities.scss @@ -566,3 +566,10 @@ pre { opacity: 1; } } + + + +.img-width-half { + height: 50%; + width: 50% +} \ No newline at end of file diff --git a/_sass/minimal-mistakes/_variables.scss b/_sass/minimal-mistakes/_variables.scss index 2a3258735264..20b958e44731 100644 --- a/_sass/minimal-mistakes/_variables.scss +++ b/_sass/minimal-mistakes/_variables.scss @@ -14,10 +14,9 @@ $doc-font-size-x-large: $doc-font-size * 1.375 !default; /* paragraph indention */ $paragraph-indent: false !default; // true, false (default) $indent-var: 1.3em !default; - /* system typefaces */ $serif: Georgia, Times, serif !default; -$sans-serif: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", +$sans-serif: -apple-system, BlinkMacSystemFont, "Jua","Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif !default; $monospace: Monaco, Consolas, "Lucida Console", monospace !default; @@ -53,7 +52,6 @@ $h-size-3: 1.125em !default; // ~18px $h-size-4: 1.0625em !default; // ~17px $h-size-5: 1.03125em !default; // ~16.5px $h-size-6: 1em !default; // ~16px - /* Colors ========================================================================== */ diff --git a/assets/images/chan.gif b/assets/images/chan.gif new file mode 100644 index 000000000000..e670f41db4e2 Binary files /dev/null and b/assets/images/chan.gif differ diff --git a/assets/images/pouyo.jpg b/assets/images/pouyo.jpg new file mode 100644 index 000000000000..5ff8daf5ac76 Binary files /dev/null and b/assets/images/pouyo.jpg differ diff --git a/docs/_pages/category-archive.md b/docs/_pages/category-archive.md index 4cb3860e91be..123e2d68fc0f 100644 --- a/docs/_pages/category-archive.md +++ b/docs/_pages/category-archive.md @@ -3,4 +3,5 @@ title: "Posts by Category" layout: categories permalink: /categories/ author_profile: true +sidebar_main : true --- diff --git a/googledbfe7cf10dfe1721.html b/googledbfe7cf10dfe1721.html new file mode 100644 index 000000000000..b10cce246541 --- /dev/null +++ b/googledbfe7cf10dfe1721.html @@ -0,0 +1 @@ +google-site-verification: googledbfe7cf10dfe1721.html \ No newline at end of file diff --git a/images/2024-10-02-first/pouyo.jpg b/images/2024-10-02-first/pouyo.jpg new file mode 100644 index 000000000000..5ff8daf5ac76 Binary files /dev/null and b/images/2024-10-02-first/pouyo.jpg differ diff --git a/images/2024-10-06-django1/blog1-1728212973072-12.jpg b/images/2024-10-06-django1/blog1-1728212973072-12.jpg new file mode 100644 index 000000000000..6de0c549e709 Binary files /dev/null and b/images/2024-10-06-django1/blog1-1728212973072-12.jpg differ diff --git a/images/2024-10-06-django1/blog1-1728213117542-14.jpg b/images/2024-10-06-django1/blog1-1728213117542-14.jpg new file mode 100644 index 000000000000..6de0c549e709 Binary files /dev/null and b/images/2024-10-06-django1/blog1-1728213117542-14.jpg differ diff --git a/images/2024-10-06-django1/blog1.jpg b/images/2024-10-06-django1/blog1.jpg new file mode 100644 index 000000000000..6de0c549e709 Binary files /dev/null and b/images/2024-10-06-django1/blog1.jpg differ diff --git a/images/2024-10-06-django1/pouyo.jpg b/images/2024-10-06-django1/pouyo.jpg new file mode 100644 index 000000000000..5ff8daf5ac76 Binary files /dev/null and b/images/2024-10-06-django1/pouyo.jpg differ diff --git a/images/pouyo.jpg b/images/pouyo.jpg new file mode 100644 index 000000000000..5ff8daf5ac76 Binary files /dev/null and b/images/pouyo.jpg differ diff --git a/minimal-mistakes-jekyll.gemspec b/minimal-mistakes-jekyll.gemspec index e6f14e845094..5d4a93df7bd0 100644 --- a/minimal-mistakes-jekyll.gemspec +++ b/minimal-mistakes-jekyll.gemspec @@ -23,7 +23,8 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency "jekyll-gist", "~> 1.5" spec.add_runtime_dependency "jekyll-feed", "~> 0.1" spec.add_runtime_dependency "jekyll-include-cache", "~> 0.1" - + spec.add_runtime_dependency "jekyll-redirect-from", "~> 0.1" + spec.add_development_dependency "bundler" spec.add_development_dependency "rake", ">= 12.3.3" end