This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+import sys | |
from ikalog import inputs | |
from ikalog import outputs | |
from ikalog.utils import IkaUtils | |
@@ -50,6 +51,15 @@ class IkaConfig: | |
# source.start_video_file(name='video.avi') | |
# source.set_frame_rate(10) | |
+ if len(sys.argv) > 1: # 引数を指定した場合はその引数のファイルを読み込んで再生 | |
+ print('input from sys.args') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'hpricot' | |
require 'pp' | |
url = 'http://weather.livedoor.com/forecast/rss/primary_area.xml' | |
source = File.open('./primary_area.xml').read | |
doc = Hpricot(source) | |
cities = doc.search('city').map do |c| | |
[c['title'], c['id']].join(' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capybara/dsl' | |
require 'capybara/poltergeist' | |
require 'digest/md5' | |
class UriWorker | |
include Sidekiq::Worker | |
sidekiq_options retry: false | |
Capybara.register_driver :poltergeist do |app| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'tapp/configuration' | |
require 'tapp/deprecated' | |
require 'tapp/object_extension' | |
require 'tapp/printer' | |
class TraceDumper | |
attr_accessor :trace_point, :depth | |
def initialize | |
@depth = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/sekiguchi.ryoichi/dotfiles/dot.vim/bundle/vimproc/autoload/vimproc.vim, line 1500 | |
Vim(call):E118: Too many arguments for function: <SNR>37_print_error | |
Your vimproc binary is too old! | |
Please re-compile it. | |
/Users/sekiguchi.ryoichi/dotfiles/dot.vim/bundle/vimproc/plugin/vimproc.vim, line 1500 | |
Vim(call):E118: Too many arguments for function: <SNR>36_print_error | |
Your vimproc binary is too old! | |
Please re-compile it. | |
Press ENTER or type command to continue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use parent qw/Hoge::Fuga/; | |
sub new { | |
my ($class, @args) = @_; | |
my $self = $class->SUPER::new(@_); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compiling callback-7.c | |
installing default libraries | |
compiling generator.c | |
compiling callback-8.c | |
installing default generator libraries | |
linking shared-object json/ext/generator.bundle | |
compiling parser.c | |
installing default parser libraries | |
linking shared-object json/ext/parser.bundle | |
compiling complex.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autodetach on | |
bell_msg "^G" | |
defkanji utf-8 | |
defencoding utf-8 | |
encoding utf-8 utf-8 | |
defscrollback 10000 | |
escape ^Jj | |
startup_message off | |
vbell off | |
#caption always "%{= wb} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wk} [%l] %{=b wb}%y/%m/%d(%D) %{=b wm}%c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROMPT="%% " | |
local RF=$'%{\e[1;33m%}' | |
local DF=$'%{\e[m%}' | |
RPROMPT=$RF"[%~]"$DF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.before(:each) do | |
Mongoid.master.collections.select{ |c| c.name !~ /system\./ }.each { |c| c.drop } | |
end |
NewerOlder