Skip to content

Instantly share code, notes, and snippets.

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

Shigeru Hagiwara hgwr

🏠
Working from home
View GitHub Profile
@hgwr
hgwr / install-textlint.sh
Created August 17, 2019 14:47
install textlint full packages
npm install -g "textlint"
npm install -g "@textlint-ja/textlint-rule-no-insert-dropping-sa"
npm install -g "@textlint-rule/textlint-rule-no-invalid-control-character"
npm install -g "prh"
npm install -g "spellchecker"
npm install -g "textlint-rule-abbr-within-parentheses"
npm install -g "textlint-rule-common-misspellings"
npm install -g "textlint-rule-date-weekday-mismatch"
npm install -g "textlint-rule-en-capitalization"
npm install -g "textlint-rule-footnote-order"
@hgwr
hgwr / rspec.sh
Created August 23, 2019 00:15
run rspec and show results and coverages
#!/bin/bash
export CIRCLE_ARTIFACTS=.
export COVERAGE=true
export CI=true
export DISABLE_SPRING=true
export ENABLE_COV=true
export RAILS_ENV=test
logifle=~/tmp/rspec_`date +'%Y%m%d-%H%M%S'`.log
bundle exec rspec 2>&1 | tee $logifle
@hgwr
hgwr / generate_icns.sh
Created August 28, 2019 07:01
generate macOS app icons
#!/usr/bin/env bash
#
# convert big png to macOS app icon sets
#
set -o errexit
set -o pipefail
set -o nounset
trap 'echo "Ctrl-C captured and exit."; exit 1' INT
@hgwr
hgwr / .tmux.conf
Last active December 31, 2020 09:31
.tmux.conf
# tmux cheat sheet
#
# 新規セッション開始: tmux
# 名前をつけて新規セッション開始: tmux new -s <セッション名>
# セッションの一覧表示: tmux ls
# 接続クライアントの一覧表示: tmux lsc
# セッションを再開 ※-t <対象セッション名>でセッション名の指定も可能: tmux a
# セッションを終了 ※-t <対象セッション名>でセッション名の指定も可能: tmux kill-session
# tmux全体を終了: tmux kill-server
# その他コマンドを実行: tmux [command [flags]]
@hgwr
hgwr / install-npm-packages.sh
Created December 30, 2019 00:18
install-npm-packages.sh
npm install -g npm
npm install -g yarn
npm install -g textlint
npm install -g @textlint-ja/textlint-rule-no-insert-dropping-sa
npm install -g textlint-rule-en-capitalization
npm install -g textlint-rule-general-novel-style-ja
npm install -g textlint-rule-ja-hiragana-fukushi
npm install -g textlint-rule-ja-hiragana-hojodoushi
npm install -g textlint-rule-ja-hiragana-keishikimeishi
npm install -g textlint-rule-ja-no-abusage

レビューに関する本からの抜書きメモ

2016年9月頃のメモ

Code Complete 第2版 21.3

  • インスペクションは、欠陥の修正ではなく欠陥の検出に重点を置く。
  • レビューアは、インスペクションミーティングに備えて準備を行い、発見された問題をリストにまとめてミーティングに向かう。
  • レビューアはそれぞれ、設計やコードのエラーをあらかじめ洗い出しておく。レビューアはチェックリストを基に、設計やコードの調査方針を決定する。
  • 1時間でレビューするのは、1時間に100行ほど?

scrum 関連の本からの抜書きメモ

2016年頃

  1. アジャイル開発とスクラム
  2. SCRUM BOOT CAMP THE BOOK
  3. カンバン ソフトウェア開発と変革
  4. TODO アジャイルな見積と計画づくり
@hgwr
hgwr / .emacs.sample
Last active February 21, 2021 23:53
git-grep - a grep-find variant
;; grep-find
(when (file-exists-p "/usr/bin/egrep")
(setq grep-command "egrep -n -i ")
(setq grep-find-command "find . -type f \! -path '*/node_modules/*' \! -path '*/build/coverage/*' \! -path '*/public/*' \! -path '*/vendor/bundle/ruby/*' \! -path '*/.git/*' \! -path '*/.svn/*' \! -path '*/tmp/*' \! -path '*/log/*' \! -name '*~' -print0 | xargs -0 egrep -I -n -i "))
(require 'git-grep)