Skip to content

Instantly share code, notes, and snippets.

let b:switch_custom_definitions = [ \ ["describe", "context", "specific", "example"], \ ['before', 'after'], \ ['be_true', 'be_false'], \ ['get', 'post', 'put', 'delete'], \ ['==', 'eql', 'equal'], \ { '.should_not': '.should' }, \ ['.to_not', '.to'], \ { '([^. ]+).should(_not|)': 'expect(\1).to\2' }, \ { 'expect(([^. ]+)).to(_not|)': '\1.should\2' },

function! s:do_rails_autocmd()
if !exists("b:rails_root")
return
endif
let buf = rails#buffer()
let type = "-" . buf.type_name()
let path = '/' . buf.name()
if path =~ '[ !#$%\,]'
let path = ''

最終更新(2013-07-11)

変更内容

  • vimrcの設定の変更
    • 個人的に使用頻度の低いプラグインを削除
    • 間違った説明文を修正
  • リポジトリの名前を変更
  • 使わないプラグインの削除
    • rsense
NeoBundleLazy 'Shougo/unite.vim', {
\ 'autoload' : {
\ 'commands' : [ {
\ 'name' : 'Unite',
\ 'complete' : 'customlist,unite#complete_source'},
\ 'UniteBookmarkAdd', 'UniteClose', 'UniteResume',
\ 'UniteWithBufferDir', 'UniteWithCurrentDir', 'UniteWithCursorWord',
\ 'UniteWithInput', 'UniteWithInputDirectory']
\ }}
@alpaca-tc
alpaca-tc / 2013-09-09-cookpad_intern.mkd
Last active December 22, 2015 15:28
インターンの案 ver.1

価値を言葉にする

  • 仮説
    • [朝食 レシピ]のキーワードで検索する人は7,400
    • [+早い, +簡単]等の共起キーワードで検索する人は400ぐらいだが、それぞれを含めると十分なボリュームがある
      • つまり、ユーザーは朝食にスピードを求めている。
    • しかし、現状のサイトでは検索にステップが必要で、レシピを決めるステップに時間が掛かっている。
  • ユーザー想定
    • 共働きで、朝食、夕食を作る主婦。朝が忙しい(もう少し具体的にした方がいいかな?)
  • 問題点
augroup AlpacaTags
autocmd!
if exists(':Tags')
autocmd BufWritePost Gemfile TagsBundle
autocmd BufEnter * TagsSet
" 毎回保存と同時更新する場合はコメントを外す
" autocmd BufWritePost * TagsUpdate
endif
augroup END

ヒント

上司A「Array#include?と、マッチ(=~)をうまく使えば結果が分かるかもしれない」

my_domains = { 
  'www.hitparade.jp/wp/wp-login.php' => 'Nothing',
  'www.voxofjoy.com/wp-login.php' => 'Nothing',
}
target_list.each do |line|
NeoBundle 'Shougo/vimproc', {
\ 'build' : {
\ 'mac' : 'make -f make_mac.mak',
\ 'unix' : 'make -f make_unix.mak',
\ },
\ }
if has("lua")
NeoBundleLazy 'Shougo/neocomplete', { 'autoload' : {
\ 'insert' : 1,