天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。
- gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
| #!/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 |
| 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> |
| ! 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 |
| #!/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 |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
| #!/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 = '' |