This file contains 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
#! /bin/sh | |
# 改行コードを削除して、クリップボードに格納する | |
tr -d '\n' | pbcopy |
This file contains 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
#!/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/ |
This file contains 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
;; 日本語の設定(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) |
This file contains 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: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 \ |
This file contains 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 numpy as np | |
class Sigmoid: | |
def __init__(self): | |
self.y = None | |
def __call__(self, x): | |
return self.forward(x) | |
def forward(self, x): |