Skip to content

Instantly share code, notes, and snippets.

@yokochi
yokochi / .vimrc
Last active August 29, 2015 14:20
vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@yokochi
yokochi / physics.rb
Created February 3, 2014 06:07
初速度と角度を与えて、飛距離、高さ、滞空時間を求めるスクリプト
#!/usr/bin/env ruby
# -*- encoding:utf-8 -*-
class Physics
# 重力加速度
GRAVITY = 9.8
# speed: 初速度 単位m/s
# deg: 角度 θ
@yokochi
yokochi / svn_oneline.sh
Last active March 9, 2016 09:49
svn log を1行で見やすいようにする
#!/bin/bash
# [例]
# $ svn log -l3
# ------------------------------------------------------------------------
# r715 | test | 2012-01-16 10:57:02 +0900 (月, 16 1 2012) | 2 lines
#
# capture 10秒に変更
#
# ------------------------------------------------------------------------