Skip to content

Instantly share code, notes, and snippets.

View koki0702's full-sized avatar

Koki Saitoh koki0702

View GitHub Profile
@koki0702
koki0702 / deep_learning_from_scratch.py
Created February 22, 2022 01:45
書籍『ゼロから作るDeep Learning―Pythonで学ぶディープラーニングの理論と実装』で使用されるコードまとめ(一部変更あり)。
import numpy as np
class Sigmoid:
def __init__(self):
self.y = None
def __call__(self, x):
return self.forward(x)
def forward(self, x):
FROM nvidia/cuda:9.0-base-ubuntu16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cuda-command-line-tools-9-0 \
cuda-cublas-dev-9-0 \
cuda-cudart-dev-9-0 \
cuda-cufft-dev-9-0 \
cuda-curand-dev-9-0 \
cuda-cusolver-dev-9-0 \
@koki0702
koki0702 / init.el
Last active August 9, 2018 08:53
My init.el for emacs
;; 日本語の設定(UTF-8)
(set-language-environment 'Japanese)
(prefer-coding-system 'utf-8)
;; 警告音もフラッシュも全て無効
(setq ring-bell-function 'ignore)
;; バックアップファイルを作らないようにする
(setq make-backup-files nil)
;; 終了時にオートセーブファイルを消す
(setq delete-auto-save-files t)
@koki0702
koki0702 / mail_command_from_mac.sh
Last active December 16, 2015 10:28
This shell script enable your MacOSX to send e-mail from 'mail' command through a gmail account. You don't worry about 'Outbound Port 25 Blocking'
#!/bin/sh
# Shell script to mail for mac OSX
# =====================================================================
# This shell script enable your MacOSX to send e-mail from 'mail' command
# through a gmail account.
# Set your gmail address and password below
#
# c.f http://www.happytrap.jp/blogs/2012/02/25/8313/
@koki0702
koki0702 / pb
Last active December 16, 2015 10:28 — forked from hitode909/pb
#! /bin/sh
# 改行コードを削除して、クリップボードに格納する
tr -d '\n' | pbcopy