Skip to content

Instantly share code, notes, and snippets.

View Bovey0809's full-sized avatar
🎯
Focusing

背对疾风吧 Bovey0809

🎯
Focusing
View GitHub Profile
@anna-hope
anna-hope / torchtext_pandas_datasets.py
Created May 30, 2019 18:36
Torchtext dataset and iterator wrappers for Pandas DataFrames
from typing import Union, Dict
import pandas as pd
from torchtext.data import (Field, Example, Iterator, BucketIterator, Dataset)
from tqdm import tqdm
class DataFrameExampleSet:
def __init__(self, df: pd.DataFrame, fields: Dict[str, Field]):
self._df = df
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 23, 2024 12:12
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+