-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
446b424
commit de6f07b
Showing
20 changed files
with
290 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
layout: post | ||
layout: page | ||
--- | ||
|
||
<ul> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...en/help/_posts/2023-10-14-python.markdown → ...e/basic/_posts/2023-10-14-python.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
layout: list | ||
title: basic | ||
--- |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
category/kr/language/_posts/2023-10-17-image-upload.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
--- | ||
layout: post | ||
title: "이미지 파일 업로드 후 마크다운에" | ||
date: 2023-10-17 18:39:35 +0900 | ||
authors: [KDH, MapleSyrup] | ||
description: "모두가 접근할 수 있는 퍼블릭 권한으로" | ||
thumbnail: https://img.freepik.com/free-vector/images-concept-illustration_114360-298.jpg | ||
--- | ||
|
||
먼저 마크다운에서 이미지를 올리는 방법에 대해 봅시다 | ||
|
||
이 글에서는 내가 가진 이미지를 `이미지 링크`로 가져오는 방법에 대해서 알아봅니다 | ||
|
||
``` | ||
// 순수 | ||
![설명](이미지 링크) | ||
// HTML | ||
<img src="이미지 링크" alt="설명" /> | ||
``` | ||
|
||
# Google Drive | ||
|
||
1. 자신의 구글 계정 하에서 사진들을 구글 드라이브에 업로드 합니다. | ||
2. 사진 하나하나 우클릭하여 `공유`->`일반 액세스: 링크가 있는 모든 사용자` -> `링크 복사` | ||
|
||
[모든 사진을 일일이 해줘야 하는 게 참 번거롭습니다] | ||
|
||
3. 복사된 링크를 마크다운 파일 속 해당 이미지 위치의 `이미지 링크`에 대체합니다 | ||
|
||
``` | ||
// Before | ||
![설명](image_filename.png) | ||
// After | ||
![설명](https://drive.google.com/file/d/1Fk0r5odYB00JqvdvVIxDuyuf2OjZuA_i/view?usp=share_link) | ||
``` | ||
|
||
# AWS S3 | ||
|
||
1. [처음에만] 버킷 생성 및 설정 | ||
|
||
1. AWS S3 bucket을 `모든 퍼블릭 액세스 차단`을 허용하여 생성합니다 | ||
2. 생성한 bucket을 클릭하여 `권한` -> `버킷 정책` -> `편집`에 아래 내용을 넣습니다 | ||
- `{BUCKET_NAME}`에 자신의 bucket 이름으로 대체합니다 | ||
- `변경 사항 저장` 필수 | ||
```json | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Sid": "AddPerm", | ||
"Effect": "Allow", | ||
"Principal": "*", | ||
"Action": "s3:GetObject", | ||
"Resource": "arn:aws:s3:::public-haebom/*" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
2. 이미지 업로드 및 링크 가져오기 | ||
|
||
1. 사진들을 bucket에 업로드합니다 | ||
2. 업로드된 사진을 클릭하여 `속성`-> `객체 개요` ->`객체 URL`을 복사합니다 | ||
3. 복사된 링크를 마크다운 파일 속 해당 이미지 위치의 `이미지 링크`에 대체합니다 | ||
|
||
``` | ||
// Before | ||
![설명](Charts_in_Colaboratory_11_0.png) | ||
|
||
// After | ||
![설명](https://public-haebom.s3.ap-northeast-2.amazonaws.com/library/Charts_in_Colaboratory_11_0.png) | ||
``` | ||
|
||
3. 링크를 잘 보면 `파일 이름이 그대로` 남아 있습니다 | ||
|
||
- 그렇기에 하나의 사진만 링크를 복사해오고 | ||
- 그 이후로는 이미지 링크에서 파일명 외 부분을 복사-붙여넣기하면 됩니다 | ||
|
||
``` | ||
https://public-haebom.s3.ap-northeast-2.amazonaws.com/library/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
category/kr/tool/_posts/2023-10-17-python-jupyter-notebook copy.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
layout: post | ||
title: "Jupyter notebook to markdown" | ||
date: 2023-10-17 18:39:35 +0900 | ||
authors: [KDH, MapleSyrup] | ||
description: "Convert ipynb to md" | ||
thumbnail: https://img.freepik.com/free-vector/app-development-concept-with-desk-desktop_23-2148699345.jpg?w=996&t=st=1697547195~exp=1697547795~hmac=57b8d06f1f5e90e72837915688ae073cdee7e82445c7d0f2ac44315cd43a140e | ||
--- | ||
|
||
노트북 파일을 마크다운 파일로 변환해주는 프로그램을 설치합니다. | ||
|
||
```sh | ||
pip install nbconvert | ||
``` | ||
|
||
파일 이름과 마크다운 형식임을 표기하여 변환합니다. | ||
명령어를 실행한 곳에서 `{NOTEBOOK_FILENAME}.md` 파일이 생성됩니다. | ||
|
||
``` | ||
python -m nbconvert --to markdown {NOTEBOOK_FILENAME}.ipynb | ||
``` | ||
|
||
출력 결과에 사진(그래프)가 있는 경우, 결과 파일과 더불어 사진들이 저장된 폴더가 생성되며 그 폴더 이름 또한 `NOTEBOOK_FILE`입니다. | ||
|
||
이 사진들을 마크다운 결과 파일과 함께 이동시켜야만 이미지를 확인할 수 있습니다. | ||
|
||
마크다운 파일을 열어보면 알 수 있듯이 각 이미지 파일 이름은 `{NOTEBOOK_FILENAME}_{CELL_NUMBER}_{PRINT_ORDER}.png`입니다. | ||
|
||
``` | ||
![png](Charts_in_Colaboratory_files/Charts_in_Colaboratory_3_0.png) | ||
``` |
27 changes: 0 additions & 27 deletions
27
category/kr/tool/_posts/2023-10-17-python-jupyter-notebook.markdown
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.