Skip to content

Instantly share code, notes, and snippets.

View suzuki86's full-sized avatar
😄

suzuki86 suzuki86

😄
View GitHub Profile
@suzuki86
suzuki86 / show-git-branches.md
Last active January 5, 2022 06:38
Git の各ブランチの最終更新日、ブランチ名、コミットしたユーザー名を最終更新日が古い順に一覧で表示する
git branch -a --sort=authordate --format="%(authordate:relative)%09%(refname)%09%(authorname)"
@suzuki86
suzuki86 / fish_prompt.fish
Created July 19, 2018 03:40
~/.config/fish/functions/fish_prompt.fish
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
set -g fish_prompt_pwd_dir_length 0
set_color magenta
echo -n (date '+%Y-%m-%d %H:%I:%S')
echo -n ' '
# User
set_color $fish_color_user
@suzuki86
suzuki86 / highlight.css.scss.erb
Last active July 3, 2016 12:05
CSS template of middleman for syntax highlight.
<%= Rouge::Themes::Github.render(:scope => '.highlight') %>
.highlight {
padding: 10px;
}
.highlight {
line-height: 120%;
pre, code {
overflow-x: scroll;
@suzuki86
suzuki86 / holidays2016.php
Created May 8, 2016 06:53
2016年の日本の祝日
<?php
$holidays = array(
'2016-01-01' => '元日',
'2016-01-11' => '成人の日',
'2016-02-11' => '建国記念の日',
'2016-03-20' => '春分の日',
'2016-03-21' => '振替休日',
'2016-04-29' => '昭和の日',
'2016-05-03' => '憲法記念日',