Skip to content

Instantly share code, notes, and snippets.

View iorionda's full-sized avatar

Iori ONDA iorionda

  • Freelance
  • Tokyo/Japan
View GitHub Profile
AllCops:
Exclude:
- 'vendor/**/*'
- 'db/schema.rb'
RunRailsCops: true
DisplayCopNames: true
Style/AccessModifierIndentation:
Enabled: false
import numpy as np
import scipy.ndimage as nd
import PIL.Image
from google.protobuf import text_format
import caffe
import sys
import os
import shutil
# a couple of utility functions for converting to and from Caffe's input image layout
@iorionda
iorionda / gist:dd49f85a9588e2dea7d0
Last active August 29, 2015 14:24
議事録テンプレート

Title

日時

参加者

目的

結論

@iorionda
iorionda / file0.txt
Created June 23, 2015 06:29
Errno::EMFILE: Too many open files - getcwd に悩まされた時 ref: http://qiita.com/iorionda/items/4d301e5d5b115a018ba8
An error occurred
Errno::EMFILE: Too many open files - getcwd
occurred at /foo/project_root/vendor/bundle/gems/rspec-core-2.99.2/lib/rspec/core/formatters/base_formatter.rb:208:in `expand_path'
begin_time = Time.now.instance_eval { '%s.%03d' % [strftime('%Y/%m/%d %H:%M:%S'), (usec / 1000.0).round] }
end_time = Time.now.instance_eval { '%s.%03d' % [strftime('%Y/%m/%d %H:%M:%S'), (usec / 1000.0).round] }
@iorionda
iorionda / gh_issue.rb
Last active August 29, 2015 14:16 — forked from mtsmfm/gh_issue.rb
require 'active_support'
require 'active_support/core_ext/object/to_query'
require 'active_support/core_ext/string/strip'
params = {
title: '問題を一言で',
labels: %w(bug),
body: <<-EOS.strip_heredoc
## 出す前に確認しよう
#!/usr/bin/env bash
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
done
gem list
gem install bundler
}
@iorionda
iorionda / file0.txt
Created November 27, 2014 09:05
Mac OS X 上で clamd を動かす ref: http://qiita.com/iorionda/items/885f270ee64434e45d2c
% brew install clamav
@iorionda
iorionda / file0.txt
Created November 11, 2014 08:58
複数の version がインストールされている Formula を切り替える ref: http://qiita.com/iorionda/items/14d4ff8df7ba2c4bf178
% brew switch <formula> <version>
@iorionda
iorionda / generate_contacts.rb
Created November 11, 2014 07:23
宛先を作る
require 'faker'
require 'spreadsheet'
require 'fileutils'
require 'i18n'
require 'optparse'
def parse_options
option = {}
OptionParser.new do |opt|
opt.on('-c VALUE', '--count', 'counts') {|v| option[:size] = v}