This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]"') ' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import dataclasses | |
import functools | |
import multiprocessing.dummy | |
import os | |
import tempfile | |
from typing import Tuple, IO, Optional | |
import tqdm | |
import youtube_dl |