Skip to content

Instantly share code, notes, and snippets.

View tos-kamiya's full-sized avatar
:octocat:
one by one

Toshihiro Kamiya tos-kamiya

:octocat:
one by one
View GitHub Profile

セマンティック・コミット・メッセージ

あなたをより良いプログラマーにする,コミットメセージのちょっとした変更.

フォーマット: <タイプ>(<スコープ>): <件名>

<スコープ>は省略可能.

@tos-kamiya
tos-kamiya / FizzBuzz.scala
Last active January 9, 2017 02:52 — forked from skht777/FizzBuzz.scala
ScalaのStreamで書いたFizzBuzz
def fizzbuzz(table: Seq[(Int, String)])(i: Int): String = {
val s = table.map { case (num, mes) =>
if (i % num == 0) mes else ""
}.mkString("")
(if (s.isEmpty) i.toString else s)
}
def fizzbuzzStream(table: Seq[(Int, String)]): Stream[String] =
Stream.from(1).map(fizzbuzz(table)(_))
@tos-kamiya
tos-kamiya / romantable.txt
Last active August 9, 2022 03:55 — forked from youcune/romantable.txt
youcune/romantable.txtからフォークさせてもらったAZIK定義ファイル。Google日本語入力、mozcで利用。
- ー
~ ~
, 、
. 。
/ ・
: ー
; っ
[ 「
] 」
a あ