Skip to content

Instantly share code, notes, and snippets.

@masayoshi
masayoshi / .gvimrc
Created January 8, 2012 16:45
masay0shi's vim settings
" display settings for gvim
" ----------------------
colorscheme railscasts
set showtabline=2
" window size
if has("win32")
au GUIEnter * simalt ~x
else
set transparency=8
@masayoshi
masayoshi / .vimrc
Created January 8, 2012 07:04
Vim standard setting
" URL: http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good choice.
" If you're a more advanced user, building your own .vimrc based
" on this file is still a good idea.
"------------------------------------------------------------
" Features {{{1
"
@masayoshi
masayoshi / spec_helper.rb
Created March 21, 2011 04:39
spec_helper for rspec, spork and guard
# -*- coding: utf-8 -*-
require 'rubygems'
require 'spork'
Spork.prefork do
# Loading more in this block will cause your tests to run faster. However,
# if you change any configuration or code from libraries loaded here, you'll
# need to restart spork for it take effect.
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
@masayoshi
masayoshi / rails3-tmplate.rb
Created January 8, 2011 13:52
rails3 tmplate
# Application Generator Template
# Usage: rails new app_name -m rails3-tmplate.rb
puts "Modifying a new Rails app ..."
#----------------------------------------------------------------------------
# Configure
#----------------------------------------------------------------------------
if yes?('Would you like to use RSpec instead of Test::Unit? (yes/no)')