Skip to content

Instantly share code, notes, and snippets.

View partrita's full-sized avatar
🎯
Focusing on hobby

Taeyoon Kim partrita

🎯
Focusing on hobby
View GitHub Profile
@partrita
partrita / README.md
Created July 20, 2024 01:04
Much better font rendering for windows

Requirements

  • Pretendard font, install both static and variable version
  • MacType: 폰트 렌더링 엔진을 FreeType로 바꿔줍니다.
  • noMeiryoUI: 시스템 폰트를 바꿔주는 역할을 합니다.

How to

Open noMeiryoUI and set Pretendard font for UI.

@partrita
partrita / sensor.ino
Last active July 12, 2024 08:10
My arduino sensor kit code
//==============================
// 미세먼지, 온습도 관측 프로젝트
//==============================
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <DHT11.h>
#if defined(ARDUINO) && ARDUINO >= 100
#define printByte(args) write(args);
#else
@partrita
partrita / README.md
Last active July 18, 2024 00:53
Getting Started with Neovim Using NvChad
@partrita
partrita / init.vim
Last active July 19, 2024 11:50
My minimal neovim setup. Neovim and Vim-plug installation needs.
call plug#begin()
Plug 'preservim/NERDTree'
Plug 'junegunn/fzf'
Plug 'catppuccin/nvim', { 'as': 'catppuccin' }
Plug 'itchyny/lightline.vim'
call plug#end()
" Shortcut configs
@partrita
partrita / README.md
Last active May 23, 2024 13:59
Getting started komorebi(a tiling window manager that works as an extension to Microsoft's Desktop Window Manager in Windows)
@partrita
partrita / README.md
Created May 14, 2024 01:58
Text to audio with StyleTTS2.

How to use

  1. Make directory of txt file in it.
input/
├── 1.txt
└── 2.txt

0 directories, 2 files
@partrita
partrita / README.md
Last active July 23, 2024 07:48
A keyboard favor computing

This is my configuration files of these programs.

  • Kanata: A cross-platform software keyboard remapper for Linux, macOS and Windows.
  • Komorebi: Tiling Window Management for Windows.
  • Amethyst: Automatic tiling window manager for Mac.
  • Pop! OS Tiling also works with Ubuntu.
@partrita
partrita / pixi.toml
Last active April 25, 2024 13:01
`pixi.toml` file for pytorch
[project]
name = "my-ml-project"
description = "A project that does ML stuff"
authors = ["Your Name <your.name@gmail.com>"]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64"]
[tasks]
train-model = "python train.py"
evaluate-model = "python test.py"
@partrita
partrita / check_CUDA.md
Created April 19, 2024 00:49
Check CUDA version

nvidia GPU driver?

NVIDIA 그래픽 카드(혹은 GPU)와 컴퓨터 운영 체제(OS) 간의 통신을 관리하고 제어하는 소프트웨어로 NVIDIA GPU를 컴퓨터에서 올바르게 인식하고 제어, 리소스를 최적화하고, 그래픽 작업을 처리하기 위해 GPU에 명령을 전달하는 역할

CUDA(Computed Unified Device Architecture)란 뭘까?

CUDA는 C/C++ 프로그래밍 언어를 기반으로 하며, GPU에서 병렬 코드를 작성하고 실행할 수 있는 풍부한 라이브러리와 도구를 제공, CUDA는 GPU 컴퓨팅에서 일종의 컴파일러 역할을 수행한다.

CUDA는 2개의 API를 가지고 있는데, 하나는 runtime API이고 다른 하나는 driver API이다. 각 API가 각자의 version을 가지고 있다. nvidia-smi는 runtime API로 GPU 드라이버에 의해 설치된다. nvccCUDA toolkit에 의해 설치된다.

nvidia GPU 정보 확인

@partrita
partrita / lineplot.py
Created April 1, 2024 02:59
lineplot with errorbar and T-test
import warnings
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from scipy import stats
df = pd.read_csv("../input/tumor_growth.csv")
df.head()