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 / 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 / Kanata_setup.md
Last active April 21, 2025 06:24
A keyboard favor computing

Introduction

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.
  • Rectangle Mac: Automatic tiling window manager for Mac.

๋ฐฉํ–ฅํ‚ค ๋ฌธ์ œ

@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 <[email protected]>"]
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 ๋“œ๋ผ์ด๋ฒ„์— ์˜ํ•ด ์„ค์น˜๋œ๋‹ค. nvcc๋Š” CUDA 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()
@partrita
partrita / scRNA-seq_DataLoad.md
Last active March 29, 2024 02:50
snippet of scRAN-seq data load

GSE์— ์ €์žฅ๋œ ๋ฐ์ดํ„ฐ์—์„œ ๋งŽ์ด ๋ณด์ด๋Š” ์œ ํ˜•

  1. ๋‹ค์Œ๊ณผ ๊ฐ™์ด 3๊ฐœ์˜ ํŒŒ์ผ๋กœ ๊ตฌ์„ฑ(10X MEX ๋ฐ์ดํ„ฐ ์œ ํ˜•)
  • barcodes.tsv.gz, features.tsv.gz, and matrix.mtx.gz
  1. hdf5 ํฌ๋ฉง์˜ ๋‹จ์ผ ํŒŒ์ผ

Seurat์„ ์‚ฌ์šฉํ•ด ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

10X MEX ํ˜•ํƒœ ๋ฐ์ดํ„ฐ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ