Skip to content

Instantly share code, notes, and snippets.

View jangsoopark's full-sized avatar
:octocat:
asdf

jangsoo park jangsoopark

:octocat:
asdf
View GitHub Profile
@jangsoopark
jangsoopark / nvm_quick_start.md
Created November 22, 2024 02:35 — forked from falsy/nvm_quick_start.md
NVM(Node Version Manager) 맥OS에서 설치 & 사용하기

NVM(Node Version Manager) Quick Start

맥OS에서 NVM 사용하기

NVM 설치

1. 설치

$ sudo curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
import numpy as np
import torch
import random
def set_random_seed(random_seed):
torch.manual_seed(random_seed)
torch.cuda.manual_seed(random_seed)
torch.cuda.manual_seed_all(random_seed) # if use multi-GPU
@jangsoopark
jangsoopark / cvae.ipynb
Last active May 22, 2024 16:34
CVAE.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

tasks.json과 launch.json 은 .vscode 디렉토리 하에 복사

libavcodec/h264dec.c

  • h264_decode_frame ( ... ) 함수가 H264 Decoding Entrypoint로 보임
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
typedef struct Deque
{
int* buffer;
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
typedef struct Queue
{
int* buffer;
@jangsoopark
jangsoopark / Scan.py
Created May 30, 2023 07:15 — forked from enjoylife/Scan.py
Python implementation of SCAN: A Structural Clustering Algorithm for Networks
# -*- coding: utf-8 -*-
"""
SCAN: A Structural Clustering Algorithm for Networks
As described in http://ualr.edu/nxyuruk/publications/kdd07.pdf
"""
from collections import deque
import numpy as np
from scipy.sparse import csr_matrix
" -------------------------------------------------------------
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
set nocompatible
set autoindent
set smartindent