Skip to content

Instantly share code, notes, and snippets.

@pandazx
pandazx / .rubocop.yml
Created February 19, 2018 00:23
Ruby構文の静的チェックツールRubocopの設定ファイル
# 1メソッド100行以下
Metrics/MethodLength:
Max: 100
# コメントに日本語許可
Style/AsciiComments:
Enabled: false
# メソッドの戻り値にreturn許可
Style/RedundantReturn:
@pandazx
pandazx / template.rb
Last active February 19, 2018 00:23
Rubyスクリプトのテンプレートファイル
#
# Rubyスクリプトのテンプレートファイル
#
require 'optparse'
require 'fileutils'
# コマンドライン引数の読み込み
def parse_args(argv)
conf = {}
@pandazx
pandazx / geohash_test.rb
Created March 6, 2015 10:25
Geohashの計算ロジックの勉強
# coding: utf-8
#
# Geohash encode/decode Test for tmp binary
#
#
LEVEL = 8
LENGTH = LEVEL*5/2
def encode(lon, str, min, max)
@pandazx
pandazx / .vimrc
Last active July 26, 2016 02:05
vim conf
" show line number
set number
" Disable auto indent when type return key
autocmd Filetype * set formatoptions-=r
" Set comment color scheme to light blue
highlight Comment ctermfg=6
" 前回開いた位置で開く