python setup.py sdist
twine upload dist/*
This file contains hidden or 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
| from pathlib import Path | |
| configured_path = Path(__file__).parent.parent / "cpython" / "installs" / "python-3.11.3" / "lib" / "python3.11" | |
| archive_path = Path(__file__).parent.parent / ".." / "temp" / "cpython-3.11.3" / "Lib" | |
| configured_lib = configured_path | |
| archive_lib = archive_path |
This file contains hidden or 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 tensorflow as tf | |
| from tensorflow.keras.preprocessing import image | |
| from tensorflow.keras.applications import densenet | |
| import numpy as np | |
| def decode_prediction(predicted, char_set, length=2): | |
| l = len(char_set) | |
| chars = [] | |
| for i in range(length): | |
| chars.append(char_set[np.argmax(predicted[i * l : (i + 1) * l])]) |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # pip install selenium playwright | |
| # playwright install | |
| import timeit | |
| import time | |
| import selenium | |
| from selenium.webdriver import Chrome | |
| from selenium.webdriver.chrome.options import Options as ChromeOptions |
This file contains hidden or 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
| emcc side.c -s SIDE_MODULE=1 -o side.wasm -s EXPORT_ALL=1 | |
| emcc main.c side.wasm -s MAIN_MODULE=1 -s EXPORT_ALL=1 -o main.js | |
| # node main.js |
This file contains hidden or 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 numpy as np | |
| import matplotlib.pyplot as plt | |
| def simulate(speed_1, load_ratio=0.4, num_attack_1=5, cooltime_2=1 / 6): | |
| cooltime_1 = 1.0 / speed_1 | |
| load_time = cooltime_1 * load_ratio | |
| attack_time = cooltime_1 - load_time | |
| sub_attack_period = attack_time / num_attack_1 |
This file contains hidden or 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
| // ([행복한 동행] 4대 폭력 예방) 학습하기 --> F12 --> Console --> 아래 코드 복붙 / | |
| // ([건강한 조직 만들기] 아동학대 예방교육)는 형식이 달라서 안 됨 | |
| var form = h_frame.document.form1; | |
| var s = form.action; | |
| var s2 = s.replace(/current_frame_count=([0-9]+)/, "current_frame_count=10"); | |
| form.action = s2; | |
| form.submit(); |
This file contains hidden or 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
| mkuser home=/home/testuser testuser | |
| passwd testuser | |
| chfs -a size=3G /home | |
| chfs -a size=3G /opt |
remote: Permission to <your_repo> denied to <other_user>.
다른 개발자 github credential을 등록해둔 것 때문에 github push시에 permission denied 에러가 발생할 때,
git credential-manager clear
Target Url:
https://github.com
This file contains hidden or 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
| create table tbl (a int); | |
| create table tbl (b char(5)); | |
| create table tbl (c date); | |
| create table tbl (a int, b char(2), c date); | |
| create table tbl (a int not null); | |
| create table account ( | |
| account_number int not null, | |
| branch_name char(15), | |
| primary key(account_number) | |
| ); |
NewerOlder