Skip to content

Instantly share code, notes, and snippets.

Avatar

Hsiao-Chieh Tsai Hunsin

View GitHub Profile
@Hunsin
Hunsin / jupytorch-cuda.Dockerfile
Last active May 14, 2019
A Jupyter Dockerfile with PyTorch installed
View jupytorch-cuda.Dockerfile
FROM continuumio/anaconda3:2019.03
RUN /opt/conda/bin/conda install pytorch torchvision cudatoolkit=10.0 -y --quiet -c pytorch
RUN /opt/conda/bin/conda install jupyter -y --quiet
RUN mkdir /opt/notebooks
EXPOSE 80
@Hunsin
Hunsin / zipper.go
Last active Jan 5, 2018
Tar and Un-tar Gzip files in Golang
View zipper.go
package main
import (
"archive/tar"
"compress/gzip"
"io"
"io/ioutil"
"log"
"os"
"strings"
@Hunsin
Hunsin / router.go
Last active Nov 23, 2021
The package wraps julienschmidt's httprouter, making it support functions such as middlewares, sub/group routing with same prefix. Written in Go (Golang).
View router.go
package router
import (
"context"
"net/http"
gpath "path"
"github.com/julienschmidt/httprouter"
)