Skip to content

Instantly share code, notes, and snippets.

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

Kento Nagata ngtk

🏠
Working from home
View GitHub Profile
@z80oolong
z80oolong / 00_TMUX_FIX.md
Last active October 4, 2021 22:50
tmux 2.5 以降において East Asian Ambiguous Character を全角文字の幅で表示する

tmux 2.5 以降において East Asian Ambiguous Character を全角文字の幅で表示する

告知 (2019/03/15, 2020/04/29)

これまで、本稿の Gist にて公開しておりました [tmux 2.5][TMUX] 以降において [East Asian Ambiguous Character][EAWA] を全角文字の幅で表示する為の差分ファイルについて、差分ファイルの分量が多くなったことに伴い、今後は以下の [Github][GITH] のリポジトリにて [tmux][TMUX] の [East Asian Ambiguous Character][EAWA] 対応差分ファイルを公開することと致します。

また、今後 [East Asian Ambiguous Character][EAWA] 対応の [tmux][TMUX] の導入を御考えの方は、後述する [Linuxbrew][BREW] を用いた差分ファイルの適用及びインストール若しくは、 [AppImage パッケージ][APPR]を用いたインストールを御勧め致します。

@shrkw
shrkw / niagara_rule.ja.md
Last active February 5, 2016 07:50
ナイアガラ ルール 日本語 意訳。ルールは20xx年発売 ドイツ版に基づく。
'##::: ##:'####::::'###:::::'######::::::'###::::'########:::::'###::::
 ###:: ##:. ##::::'## ##:::'##... ##::::'## ##::: ##.... ##:::'## ##:::
 ####: ##:: ##:::'##:. ##:: ##:::..::::'##:. ##:: ##:::: ##::'##:. ##::
 ## ## ##:: ##::'##:::. ##: ##::'####:'##:::. ##: ########::'##:::. ##:
 ##. ####:: ##:: #########: ##::: ##:: #########: ##.. ##::: #########:
 ##:. ###:: ##:: ##.... ##: ##::: ##:: ##.... ##: ##::. ##:: ##.... ##:
 ##::. ##:'####: ##:::: ##:. ######::: ##:::: ##: ##:::. ##: ##:::: ##:
..::::..::....::..:::::..:::......::::..:::::..::..:::::..::..:::::..::
@sunaot
sunaot / writing_unit_test.md
Last active February 20, 2022 06:57
テストを書くか書かないかの判断の話

ユニットテストでテストを書くか書かないかの判断の話

お題

メソッドの出力の結果が、true か false のどちらでも返ってくる可能性がある場合、assert 文を書く時は true の場合だけで良いのだろうか

テストとは

まず、基本の考えとしてなぜテストをするのか?というのがあります。

@voluntas
voluntas / webrtc.rst
Last active December 1, 2025 17:32
WebRTC コトハジメ
@DaveWoodCom
DaveWoodCom / fixXcode6OnElCapitan.sh
Last active September 8, 2023 21:02
Script to fix Xcode 6.x so that it will run on El Capitan
#!/bin/bash
## Copyright (C) 2015 Cerebral Gardens http://www.cerebralgardens.com/
##
## Permission is hereby granted, free of charge, to any person obtaining a copy of this
## software and associated documentation files (the "Software"), to deal in the Software
## without restriction, including without limitation the rights to use, copy, modify,
## merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
## permit persons to whom the Software is furnished to do so, subject to the following
## conditions:

ペアプロの心得

休憩をとる

1.定期的に休憩をとっていますか? ペアプログラミングは、精神的な体力を消耗します。定期的に休憩をとってリフレッシュすることがとても大切です。

謙虚になる

2.「色々な実装方針がある」という認識がありますか?

@onk
onk / .rubocop.yml
Last active January 15, 2018 02:30
僕の使っている .rubocop.yml
# rubocop v0.35.0 から inherit_gem という機能が増えたので gem にしました
# https://github.com/onk/onkcop
inherit_gem:
onkcop: "config/rubocop.yml"
@azu
azu / ghqs.zsh
Last active February 16, 2021 09:37
ghq+ghs
# Require
# ghq: https://github.com/motemen/ghq
# ghs: https://github.com/sona-tar/ghs
# ghq get + ghq look(cd repo)
# Usage: gcd git://example.com/repo.git
function gcd {
if [ ! -n "$1" ]; then
echo "Usage: gcd git://example.com/repo.git"
return;
@JunichiIto
JunichiIto / alias_matchers.md
Last active September 5, 2025 14:24
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
@shrkw
shrkw / my-requirements-towards-my-job.md
Last active September 15, 2020 00:36
ぼくが職場に求めるもの、もしくは、組織を作るときに大切にしたいこと。該当する項目が増えるほど、楽しく働けると思う。今後も思いついた時に更新。

転職するときに考えること

軸はいろいろある。

キャリアカウンセラーの壁に貼ってあるバッド・カデルの図

https://www.waicrew.com/2015/02/07/

  • "なにをするか"