Skip to content

Instantly share code, notes, and snippets.

View dsdanielpark's full-sized avatar
🏄‍♂️
Believe in your potential. May the Force be with us.

MinWoo(Daniel) Park dsdanielpark

🏄‍♂️
Believe in your potential. May the Force be with us.
View GitHub Profile
@dsdanielpark
dsdanielpark / tech_blog.md
Created April 10, 2023 13:15
using remix
@dsdanielpark
dsdanielpark / streamlit.md
Last active April 11, 2023 13:39
about streamlit landing page
  1. Install streamlit
pip install streamlit 
pip install streamlit-chat
  1. check status
@dsdanielpark
dsdanielpark / docker.md
Last active June 1, 2023 09:27
making docker file
@dsdanielpark
dsdanielpark / convert.md
Created April 6, 2023 08:19
Converting String-formatted Arrays Back to Array Objects in Multidimensional Embedded Arrays from CSV Files

When a multidimensional embedded array is saved as a string in a CSV file, you can load it back and convert the string-formatted array into an array object.

def convert(item):
    item = item.strip()  
    item = item[1:-1]   
    item = np.fromstring(item, sep=' ') 
    return item
@dsdanielpark
dsdanielpark / vram.md
Last active March 27, 2023 14:02
When you need to clean vram cache
import gc
gc.collect()

import torch
torch.cuda.empty_cache()

tf.keras.backend.clear_session()

poetry init

poetry add [django]

poetry build

@dsdanielpark
dsdanielpark / ipykernel.md
Last active March 7, 2023 06:43
ipykernel install
python -m ipykernel install --user --name myvenv --display-name myvenv
@dsdanielpark
dsdanielpark / diagram.md
Last active April 11, 2023 13:43
UML class diagram and packages diagram