Skip to content

Instantly share code, notes, and snippets.

View omega-takai's full-sized avatar
🏠
Working from home

TAKAI Tomonari omega-takai

🏠
Working from home
View GitHub Profile
{
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"css.validate": false,
"scss.validate": false,
"stylelint.validate": ["css", "scss"]
}
@omega-takai
omega-takai / FigmaPageOrganize.md
Last active October 31, 2022 01:40
aaaaaaaaa

Page Organize

FigmaのPageの使い方毎回違うために関係各位の学習コストが発生してる。これを低減するため、Pageの使い方にルールを設ける。またワークフローの一部にPageの使い分けを用いることで業務効率化に寄与できるのではないか?と考えます。

Page提案

  • 📝 README
  • 💻 Ready for development
  • ―――――――――――
  • 🎨 Flow
$ git grep 'time_t' -- '*.[ch]'

Looks for time_t in all tracked .c and .h files in the working directory and its subdirectories.

$ git grep -e '#define' --and \( -e MAX_PATH -e PATH_MAX \)

Looks for a line that has #define and either MAX_PATH or PATH_MAX.

ファイルの作成日を確認する

$ git log --reverse --date=short -- {file/to/path}

ファイルの最終更新日を確認する

$ git log -1 --date=short -- {file/to/path}

人数カウント

if(length(prop("MeToo")) > 0, length(replaceAll(prop("MeToo"), "[^,]", "")) + 1, 0)

Git Log

$ git log --pretty=format:' %Cgreen(%cr) %Cred%h - %Creset %s %C(bold blue)<%an>%Creset' --follow {path/to/file}
$ git log branchA..branchB --merges --pretty=tformat:"%h %ad %s" --date=format:%Y/%m/%d
// React Newline to break (nl2br)
{this.props.text.split('\n').map((item, key) => {
return <Fragment key={key}>{item}<br/></Fragment>
})}
@omega-takai
omega-takai / npm-scripts.json
Created February 12, 2024 02:10
npm scriptsでファイルやフォルダを削除するときに、もうrimrafやdel-cliみたいなnpmモジュールをインストールしなくても、こうやって書けば大丈夫っぽい。
{
"scripts": {
"clean": "node -e \"fs.promises.rm('script.js', {force: true})\"",
"clean": "node -e \"fs.promises.rm('../dist', {recursive: true, force: true})\""
}
}
@omega-takai
omega-takai / .zshrc
Last active October 15, 2025 03:41
alias
source /Users/takai/.config/op/plugins.sh
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# alias shell
alias pn=pnpm
# alias git
alias gst='git status'
alias gb='git branch -vv'