Skip to content

Instantly share code, notes, and snippets.

@yspkm
yspkm / README.md
Created November 24, 2023 12:20
How to use Doxygen

How to Use Doxygen to Generate Documentation for C++ Code

Introduction

Doxygen is a documentation generator for various programming languages, including C++. This guide will show you how to use Doxygen to generate documentation for a C++ project in a structured and readable format.

Step 1: Install Doxygen

Ensure that Doxygen is installed on your system. You can download it from the official website.

Step 2: Create a Doxygen Configuration File

Navigate to your project's root directory in your command line interface and run the following command to create a default configuration file:

@yspkm
yspkm / README.md
Created December 2, 2023 07:56
Omnetpp

README for Omnetpp Installation

Overview

This README provides detailed instructions for installing Omnetpp and its prerequisites on a Linux system.

Prerequisites

  • Linux Operating System
  • Internet connection
  • Sufficient disk space
@yspkm
yspkm / run.sh
Created December 4, 2023 02:58
kazam mp4 to window11
#!/bin/bash
files=('data_extraction' 'installation' 'simulation_0_setup' 'simulation_1_rungui' 'simulation_2_runcli')
for file in "${files[@]}"; do
ffmpeg -y \
-i "${file}.mp4" \
-c:v libx264 \
-c:a aac -strict experimental -tune fastdecode -pix_fmt yuv420p \
-b:a 192k -ar 48000 "../${file}.mp4"
@yspkm
yspkm / cdnjs
Created December 15, 2023 08:46
CDNJS
https://cdnjs.com/libraries/vue
https://cdnjs.com/libraries/tailwindcss
https://cdnjs.com/libraries/bokeh
@yspkm
yspkm / install.md
Created January 17, 2024 08:00
How to install Julia

Juila 설치 방법

sudo snap install julia --classic

Juila 실행

(base) yosepkim@sony:~$ julia
               _
 _ _ _(_)_ | Documentation: https://docs.julialang.org
@yspkm
yspkm / Dockerfile
Last active January 18, 2024 06:52
NAS 관련 문서
# Dockerfile
#FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-runtime
FROM pytorch/pytorch:2.1.2-cuda12.1-cudnn8-runtime
# Remove any third-party apt sources to avoid issues with expiring keys.
RUN rm -f /etc/apt/sources.list.d/*.list
# Install some basic utilities & python prerequisites
RUN apt-get update -y && apt-get install -y --no-install-recommends\
wget \
#!/bin/bash
python3 -m venv .venv
source .venv/bin/activate
pip3 install --upgrade pip wheel setuptools
pip3 install --index-url https://download.pytorch.org/whl/cu121 \
torch \
torchvision \
torchaudio
import re
def convert_latex(text):
# (1) 블록 수식: \[ ... \] → $$ ... $$
text = re.sub(r'\\\[(.*?)\\\]', r'$$\1$$', text, flags=re.DOTALL)
# (2) 인라인 수식: \( ... \) → $ ... $
#text = re.sub(r'\\\((.*?)\\\)', r'$\1$', text, flags=re.DOTALL)
text = re.sub(r'\\\(\s*(.*?)\s*\\\)', r'$\1$', text, flags=re.DOTALL)
return text