Skip to content

Instantly share code, notes, and snippets.

View lunastera's full-sized avatar
🏠
Working from home

Arashi UNO lunastera

🏠
Working from home
View GitHub Profile
@lunastera
lunastera / Dockerfile
Last active February 24, 2020 10:05
CUDAイメージに任意のPythonを入れる
FROM nvidia/cuda:10.1-base-ubuntu16.04 AS base
ENV LANG C.UTF-8
ENV PYTHON_VERSION 3.7.6
ENV PATH /python/$PYTHON_VERSION:$PATH
# Install depenedent packages
RUN apt-get autoclean
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
@lunastera
lunastera / HatenaQuiz.scala
Last active June 15, 2019 17:13
はてなインターン2019のクイズとそのテスト
import scala.io.StdIn
object HatenaQuiz {
def rot(n: Int)(str: String): String =
for {
c: Char <- str
} yield {
val cAddN = c.toByte + n
c match {
case upper: Char if upper.isUpper =>