Skip to content

Instantly share code, notes, and snippets.

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

Masahiro Yokoyama maguroguma

🏠
Working from home
View GitHub Profile
@dproject21
dproject21 / vending_machine.go
Created September 29, 2018 08:03
20180929 tddbc tokyo golang implementation
package vending
type VendingMachine struct {
haveMoney int
priceList map[string]int
}
func NewVendingMachine() *VendingMachine {
vendingMachine := new(VendingMachine)
m := make(map[string]int)
@dproject21
dproject21 / vending_machine_test.go
Created September 29, 2018 08:01
20180929 tddbc tokyo golang implementation
package vending
import (
"testing"
"github.com/stretchr/testify/assert"
)
func Test500円を入れる(t *testing.T) {
vendingMachine := NewVendingMachine()
@yattom
yattom / vending_machine.md
Last active July 15, 2023 19:14
プログラミングのお題: 自動販売機 (設計進化重視バージョン)

自動販売機のプログラムをTDDで書いてみよう!

飲み物の自動販売機の動きを、プログラムで表現してください。

最終的な自動販売機の全機能は、不確定です。 テスト駆動開発のアプローチを有効活用して、 進化的に設計をどんどん変えていきましょう。

命名のヒント

@voluntas
voluntas / death_march.md
Last active April 20, 2025 15:07
デスマーチが起きる理由 - 3つの指標

デスマーチが起きる理由 - 3つの指標

著者: 青い鴉(ぶるくろ)さん @bluecrow2

これは結城浩さんの運用されていた YukiWiki に当時 Coffee 様 (青い鴉(ぶるくろ)さん)がかかれていた文章です。 ただ 2018 年 3 月 7 日に YukiWiki が運用停止したため消えてしまいました。その記事のバックアップです。

今は 404 ですが、もともとの記事の URL は http://www.hyuki.com/yukiwiki/wiki.cgi?%A5%C7%A5%B9%A5%DE%A1%BC%A5%C1%A4%AC%B5%AF%A4%AD%A4%EB%CD%FD%CD%B3 になります。

昔、自分がとても感銘を受けた文章なので、このまま読めなくなるのはとてももったいないと思い、バックアップとして公開しています。

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 27, 2025 18:05
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@kenmori
kenmori / JavaScript.md
Last active April 23, 2025 06:20
JavaScript練習問題集(ECMAScript2015,2016,2017,2018,2019,2020, 2021, 2022, 2023, 2024, 2025, other Library)

JavaScript練習問題集

JavaScript

更新情報

・constをletに修正、問題を追加(2024/9/27)
・問題を追加(2024/7/20)
・問題を追加(2024/4/12)
@HaleTom
HaleTom / print256colours.sh
Last active April 24, 2025 05:19
Print a 256-colour test pattern in the terminal
#!/bin/bash
# Tom Hale, 2016. MIT Licence.
# Print out 256 colours, with each number printed in its corresponding colour
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163
set -eu # Fail on errors or undeclared variables
printable_colours=256
# GIT heart FZF
# -------------
is_in_git_repo() {
git rev-parse HEAD > /dev/null 2>&1
}
fzf-down() {
fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@"
}
@manabuyasuda
manabuyasuda / GitHubの使い方.md
Last active November 27, 2024 12:45
GitHubの基本操作や用語、便利な機能などをまとめたドキュメントです。

GitHub

用語集

  • repository(リポジトリ):ファイルや変更内容が保存される場所のことで、パソコン内にあるものをローカルリポジトリ、GitHubなどローカル以外のサーバ上にあるものをリモートリポジトリと呼ぶ
  • 作業ディレクトリ:リモートリポジトリをclone(複製)したディレクトリ(ローカルリポジトリ)のことで、作業中のファイルが含まれる
  • ステージングエリア:ローカルリポジトリのなかにあるコミットをする予定のファイルを仮置きしておく場所のこと
  • Gitディレクトリ:ステージングエリアにあるファイルをコミット(登録)して、変更が確定したディレクトリ
  • branch(ブランチ):並行して作業を進めるためにmasterブランチからコミットの流れを分岐すること(最終的にmasterブランチにマージ(合体)される)