Skip to content

Instantly share code, notes, and snippets.

Avatar

Yoshiaki Kawazu kawaz

View GitHub Profile
@mono0926
mono0926 / commit_message_example.md
Last active March 21, 2023 05:06
[転載] gitにおけるコミットログ/メッセージ例文集100
View commit_message_example.md
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active March 20, 2023 18:07
tmux shortcuts & cheatsheet
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@voluntas
voluntas / shiguredo.rst
Last active March 17, 2023 03:36
時雨堂コトハジメ
View shiguredo.rst
@STAR-ZERO
STAR-ZERO / gist:5928936
Last active March 15, 2023 03:53
動的にiTerm2の背景画像を変える
View gist:5928936

動的にiTerm2の背景画像を変える

こんな感じのをzshrcに書く。この場合、@キーで画像が変わる。

image_list=("画像1" "画像2") # 絶対パス
image_index=1
bg() {
    if [ -z "$BUFFER" ]; then
        if test $image_index -eq 2; then
@sandren
sandren / tailwind.md
Last active March 1, 2023 20:35
Tailwind CSS best practices
View tailwind.md

Tailwind CSS best practices

Utility classes

  1. When writing a string of multiple utility classes, always do so in an order with meaning. The "Concentric CSS" approach works well with utility classes (i.e,. 1. positioning/visibility 2. box model 3. borders 4. backgrounds 5. typography 6. other visual adjustments). Once you establish a familiar pattern of ordering, parsing through long strings of utility classes will become much, much faster so a little more effort up front goes a long way!

  2. Always use fewer utility classes when possible. For example, use mx-2 instead of ml-2 mr-2 and don't be afraid to use the simpler p-4 lg:pt-8 instead of the longer, more complicated pt-4 lg:pt-8 pr-4 pb-4 pl-4.

  3. Prefix all utility classes that will only apply at a certain breakpoint with that breakpoint's prefix. For example, use block lg:flex lg:flex-col lg:justify-center instead of block lg:flex flex-col justify-center to make it very clear that the flexbox utilities are only applicable at the

@Gab-km
Gab-km / github-flow.ja.md
Last active March 1, 2023 16:10 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
View github-flow.ja.md

GitHub Flow

31 Aug 2011

git-flowの問題点 (Issues with git-flow)

私は人々にGitを教えるためにあちこちを飛び回っているが、最近のほぼすべてのクラスやワークショップで git-flow についてどう思うかを尋ねられた。私はいつも、git-flowは素晴らしいと思うと答えている。何百万ものワークフローを持ったシステム(Git)を提供し、ドキュメントもあるし、よくテストされている。フレキシブルなワークフローは、実に容易なやり方で多くの開発者の役に立つ。標準的なものになりつつあり、開発者はプロジェクトや企業の間を移動しつつこの標準的なワークフローに馴染むことができる。

@kawaz
kawaz / select-finder-items.swift
Created February 8, 2023 06:47
Finderでファイルを選択状態にするスクリプト。複数も可。
View select-finder-items.swift
#!/usr/bin/swift
import AppKit
let urls = CommandLine.arguments.dropFirst(1).map { URL(fileURLWithPath: $0) }
NSWorkspace.shared.activateFileViewerSelecting(urls)
@mugi-uno
mugi-uno / remote-work-style-check.md
Last active October 10, 2022 11:26
リモートワークスタイルチェック
View remote-work-style-check.md

リモートワークスタイルチェック

昨今の社会情勢の影響もありリモートワークを導入する企業・チームが増えてきましたが、 一口に「リモートワーク」といってもさまざまなスタイルがあります。

企業側と働く側のミスマッチを防ぐため、リモートワークにおける観点を列挙してみました。

リモートワーク比重度

どの程度リモートワークに比重を置いて導入しているかのチェックリストです。

@voluntas
voluntas / zig_quic.md
Last active September 17, 2022 10:53
2022 年の夏休みに Zig で QUIC を実装してオープンソースとして公開するお手伝い
View zig_quic.md

2022 年の夏休みに Zig で QUIC を実装してオープンソースとして公開するお手伝い

こちらの応募は終了しました、冬も募集予定です。

成果

@dreampuf
dreampuf / main.go
Last active April 27, 2022 03:43
Golang SSHAgent Usage Example
View main.go
package main
/*
Golang SSHAgent Usage
https://orebibou.com/2019/03/golang%E3%81%A7ssh-agent%E3%81%8B%E3%82%89%E9%8D%B5%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%81%A6ssh%E6%8E%A5%E7%B6%9A%E3%81%99%E3%82%8B/
*/
import (
"fmt"
"golang.org/x/crypto/ssh"