Skip to content

Instantly share code, notes, and snippets.

View iberianpig's full-sized avatar

Kohei Yamada iberianpig

View GitHub Profile
#!/usr/bin/env ruby
Dir.glob("#{ENV['HOME']}/works/**").each do |dir|
next unless File.exists?("#{File.expand_path(File.join(dir, '.git'))}")
Dir.chdir(dir) do
system("nippo.rb")
end
end
@amashigeseiji
amashigeseiji / vim-keybind_on_google-spreadsheet
Last active May 11, 2021 08:08
googlespreadsheetをvimキーバインドで操作したかったので設定してみた(要feedSomeKey_3.js) ※以下の設定をvimperatorrcにコピーすればhjklでの移動、insert-mode/normal-modeの切り替えとか出来ます
command! -nargs=+ lazy autocmd VimperatorEnter .* <args>
"googlespreadshet{{{
autocmd LocationChange '((drive|docs)\.google\.com).*(/spreadsheet/).*[0-9]+$' <C-j>
"insert-modeでの<esc>キーはspreadsheetでのエスケープキーにする(insert-modeは抜けない)
lazy fmaps -u='((drive|docs)\.google\.com).*(/spreadsheet/).*[0-9]+$' -modes=i <esc>
"insert-mode/normal-modeの切り替え(iでinsert-mode/<C-j>でnormal-mode)
inoremap -u='((drive|docs)\.google\.com).*(/spreadsheet/).*[0-9]+$' <C-j> <esc>
@teppeis
teppeis / tenkaichi-git.md
Last active April 29, 2023 14:58
天下一gitconfig大会

天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。

ぎっとぎとにしてやんよ

DojoCat

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
@Gab-km
Gab-km / github-flow.ja.md
Last active July 1, 2025 15:44 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@tatsuro-ueda
tatsuro-ueda / GitHub Pagesの開設のしかた.md
Created September 3, 2012 10:49
GitHub Pagesの開設のしかた

##GitHub Pagesの開設のしかた(2012年9月版)

  1. username.github.comという名前のリポジトリをつくる

  2. つくったリポジトリに入る

  3. 「Admin」をクリック

  4. 下にスクロール

@w0ng
w0ng / .Xresources-hybrid
Last active August 22, 2023 14:05
Terminal colourscheme for use in hybrid.vim
! Hybrid Terminal Colours. Uses the palette from Tomorrow-Night:
! https://github.com/chriskempson/tomorrow-theme/blob/master/vim/colors/Tomorrow-Night.vim
! vim: ft=xdefaults
*background: #1D1F21
*foreground: #C5C8C6
! black
*color0: #282A2E
*color8: #373B41
! red
@shokai
shokai / gsay
Created June 8, 2012 01:52
Mac/Linuxでsay(喋らせる)系コマンド
#!/bin/sh
TMP=/tmp/gsay.mp3
curl --silent --user-agent "Safari/1.0" "http://translate.google.com/translate_tts?q=$1&tl=ja" > $TMP && afplay $TMP && rm -f $TMP
@chetan
chetan / yardoc_cheatsheet.md
Last active October 17, 2025 13:49
YARD cheatsheet
@tjh
tjh / character_set_and_collation.rb
Created January 31, 2012 16:07
Convert all Rails table column collation and character set
#!/usr/bin/env ruby
# Put this file in the root of your Rails project,
# then run it to output the SQL needed to change all
# your tables and columns to the same character set
# and collation.
#
# > ruby character_set_and_collation.rb
DATABASE = ''
@qrush
qrush / Inconsolata-dz-Powerline.otf
Created January 11, 2012 16:50
vim-powerline patched fonts