Skip to content

Instantly share code, notes, and snippets.

View Kipsora's full-sized avatar
💭
I may be slow to respond.

Jiacheng Yang Kipsora

💭
I may be slow to respond.
View GitHub Profile
@Kipsora
Kipsora / audioset_download.py
Created November 2, 2021 14:57
Scripts for downloading audios of the AudioSet with multiple threads
import argparse
import dataclasses
import functools
import multiprocessing.dummy
import os
import tempfile
from typing import Tuple, IO, Optional
import tqdm
import youtube_dl
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
ARG UID=1000
ARG GID=1000
ARG USER_NAME
ARG USER_PASSWORD
RUN apt update -y
RUN apt install -y openssh-server
RUN apt install -y rsync
@Kipsora
Kipsora / UniquePtrSet.cpp
Created March 7, 2020 16:52
C++ Unique Pointer Set
template <class T>
class pointer_compare: public std::less<T> {
public:
class helper;
typedef std::true_type is_transparent;
bool operator ()(const helper &&a, const helper &&b) const;
};
@Kipsora
Kipsora / suavit.zsh-theme
Last active October 18, 2025 03:42
My ZSH Theme
function prompt_char {
git branch >/dev/null 2>/dev/null && echo '▶' && return
hg root >/dev/null 2>/dev/null && echo '▶' && return
echo '▶'
}
function virtualenv_info {
[[ -n "$VIRTUAL_ENV" ]] && echo '('${VIRTUAL_ENV:t} "[%F{yellow}$(basename $(dirname $VIRTUAL_ENV))%f]"') '
}