Skip to content

Instantly share code, notes, and snippets.

View shoyan's full-sized avatar

Shohei Yamasaki shoyan

View GitHub Profile
@shoyan
shoyan / rake sample
Created October 4, 2012 00:19
rakeファイルのサンプル
require 'rake'
require 'rspec/core/rake_task'
# RSpec::Core::RakeTask.new(:spec)
# task :default => :spec
task :default do
filelist = FileList['spec/*_spec.rb'].join(' ')
sh "bundle exec rspec #{filelist}"
end
@shoyan
shoyan / simpletest_calc
Created September 14, 2012 10:18
sample is simple test with php4
<?php
require_once('simpletest/autorun.php');
require_once('Calc.php');
class TestOfCalc extends UnitTestCase {
function testCalcAdd() {
$calc = new Calc();
// 1 + 1 = 2
$this->assertEqual($calc->add(1,1), 2);
@shoyan
shoyan / .vimrc
Created August 7, 2012 07:43
.vimrc
set nocompatible
filetype off
set rtp+=~/.vim/vundle.git/
call vundle#rc()
Bundle 'quickrun.vim'
Bundle 'neocomplcache'