Skip to content

Instantly share code, notes, and snippets.

View eiel's full-sized avatar

HIMURA Tomohiko eiel

View GitHub Profile

この記事はそんな広島 Advent Calendar 2017の13日目の記事です。

明日は、Ando Mitsuakiさんのそんな広島 Advent Calendar 2017 を作りながら思ったことです。 私が予想するに、2017年の広島のAdvent Calendarが作成されず、どうして作成されなかったのか考察をする記事が投稿されるはずです。

明日の記事が公開される前に、どうして2017年のAdvent Calendarが作成されなかったのか、予想をしたいと思う。

  1. 毎年作っているeielさんに「今年は作らないんですか?」という話がこなかった
  2. eielさんが忙しく、もしカレンダーが埋まらなかったときに、対処する術を持たないと判断したため。
@eiel
eiel / Cargo.toml
Last active August 6, 2017 05:22
Rustで「ゼロからつくるDeep Learning」 p26 2.3.2 重みとバイアスの導入
[package]
name = "rust-nn"
version = "0.1.0"
authors = ["Tomohiko Himura <eiel.hal@gmail.com>"]
[dependencies]
nalgebra = "0.12.3"
@eiel
eiel / say.hs
Created November 11, 2016 16:22
{-# LANGUAGE MultiParamTypeClasses #-}
import Text.Printf
data Hello = Hello
data Goodbye = Goodbye
data Teacher = Teacher String
data Friend = Friend String
class Say a b where
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eiel
eiel / hoge.ipynb
Last active September 24, 2016 09:57
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eiel
eiel / Build.sbt
Last active August 10, 2016 11:38
akka stream で backpressureをdelayをつかって体験してみる - http://blog.eiel.info/blog/2016/08/08/ltdd-28-akka-stream/
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream" % "2.4.8"
)
@eiel
eiel / MaybeT.hs
Created July 3, 2016 12:40
MaybeTについて学んだ
module Main where
import System.Environment
import Data.Maybe
import Control.Monad.Trans.Maybe
import Control.Monad.Trans.Class
-- sample >>= fromMaybe (putStrLn "not found")
sample1= do
@eiel
eiel / chatwork-api-swagger.yaml
Last active January 27, 2021 10:06
ChatWork APIのSwagger
swagger: '2.0'
info:
title: ChatWork API
version: v1
# the domain of the service
host: api.chatwork.com
# array of all schemes that your API supports
schemes:
- https
# will be prefixed to all paths
@eiel
eiel / random_problem.rb
Last active May 3, 2016 01:57 — forked from Nyoho/random_problem.rb
重複のない整数対の配列を作る
def random_problem(n)
a = [*1..5]
a.product(a)
.shuffle[0..n]
.each do |e0, e1|
puts "$#{e0} + #{e1} = $ \n\n \\vfill"
end
end