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
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
______ ______ ______ __ __ __ ______ | |
/\ == \ /\ __ \ /\__ _\ /\ \/ / /\ \ /\__ _\ | |
\ \ __< \ \ \/\ \ \/_/\ \/ \ \ _"-. \ \ \ \/_/\ \/ | |
\ \_____\ \ \_____\ \ \_\ \ \_\ \_\ \ \_\ \ \_\ | |
\/_____/ \/_____/ \/_/ \/_/\/_/ \/_/ \/_/ | |
This is a sample Slack bot built with Botkit. |
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
<body background="../image/drama.jpg" marginwidth="0" marginheight="0"> | |
<br> | |
<center><h2>阿部 寛のドラマ出演</h2></center> | |
<div align="center"> | |
<table border="1" width="700"> | |
<tbody><tr> | |
<td align="LEFT"><strong>2016年10月22日</strong></td> | |
<td align="LEFT"><strong>「<a href="http://www.nhk.or.jp/dodra/sniffer/" target="_blank">スニッファー 嗅覚捜査官あ</a>」</strong></td> | |
</tr> | |
<tr> |
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
2つのエンコーディング間に互換性がない場合に発生する例外。 | |
エンコーディングの異なる文字列を連結しようとした場合などに発生します。 | |
"あ".encode("EUC-JP") + "あ".encode("UTF-8") | |
#=> Encoding::CompatibilityError: incompatible character encodings: EUC-JP and UTF-8 |
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
cucumber Couldn't load 2.1/gherkin_lexer_en | |
This workaround has worked for me. After bundle install, remove the gherkin gem: | |
gem uninstall gherkin --force | |
Reinstall the gem (it may take a while): | |
gem install gherkin --platform ruby -v 2.12.2 | |
Go to the folder of the gem inside your ruby installation directory. Something like this: |
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
WARNING: cannot load such file -- 2.3/gherkin_lexer_en | |
Couldn't load 2.3/gherkin_lexer_en | |
The $LOAD_PATH was: | |
c:/jenkins/workspace/xxx | |
<省略> | |
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gherkin-2.12.2/lib | |
C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.2.0/gherkin-2.12.2 | |
<省略> |
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
puts "Hello World" |
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
class HelloWorld { | |
public static void main (String[] Args){ | |
System.out.Println("Hello World"); | |
} | |
} |
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
#-*- coding: utf-8 -*- | |
@test | |
Feature: テスト | |
Scenario: ○○のテスト | |
Given "A業務" 文書のワークフロー状態を完了にする |
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
# coding: utf-8 | |
steps_for :test do | |
step ":doc 文書のワークフロー状態を完了にする:" do |doc, table| | |
send ":user でログインする", "システム管理者" | |
send "ログアウトする" | |
end |
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
C:\slack\botkit>node bot.js | |
Error: Specify token in environment |