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
# pip module - atlassian-python-api, markdownify | |
from atlassian import Confluence | |
from markdownify import markdownify as md | |
page = confluence.get_page_by_id(261095431, expand='body.storage') | |
body_html = page['body']['storage']['value'] | |
body_markdown = md(body_html) |
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
import smtplib | |
import mimetypes | |
import os | |
from email.message import EmailMessage | |
# References | |
# https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-8361e398-8af4-4e97-b147-6c6c4ac95353 | |
# https://docs.python.org/ko/3/library/email.examples.html#email-examples |
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
.graddle | |
build/ | |
bin/ | |
#IDEA | |
out/ | |
.idea | |
*.iws | |
*.iml | |
*.ipr |
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
ZonedDateTime utcTime = ZonedDateTime.now(ZoneId.of("UTC")); | |
System.out.println("협정 세계시 : " + utcTime); | |
ZonedDateTime seoulTime = utcTime.withZoneSameInstant(ZoneId.of("Asia/Seoul")); | |
System.out.printf("Seoul : " + seoulTime); |
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
import os | |
import sys | |
from collections import OrderedDict | |
from configparser import ConfigParser | |
from configparser import ParsingError | |
import json | |
import click | |
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
import time | |
from datetime import datetime | |
import pytz # $ pip install pytz | |
from tzlocal import get_localzone # $ pip install tzlocal | |
# get local timezone | |
local_tz = get_localzone() | |
# test it |
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
import sys | |
reload(sys) -> ? | |
sys.setdefaultencoding(‘utf-8’) | |
name = unicode(name) |