- 0:00 キャプチャ開始
- 0:05 マッチングスタート
- 0:16 マッチング終了
- 0:33 バトル開始
- 3:33 バトル終了
- 4:03 つづける?
- 4:13 やめるを選択
This file contains hidden or 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 'yaml' | |
require 'twitter' | |
#OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE | |
CONFIG_FILE = File.dirname(__FILE__) + "/config.yaml" | |
config_data = YAML.load_file(CONFIG_FILE) | |
stream_client = Twitter::Streaming::Client.new do |config| | |
config.consumer_key = config_data['consumer_key'] |
This file contains hidden or 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
NAME = File.basename(File.dirname(__FILE__)) | |
IMAGE = "#{ENV['USER']}/#{NAME}" | |
DIR = File.dirname(__FILE__) | |
DOCKER_OPT = "" | |
task "status" do | |
puts get_status | |
end |
This file contains hidden or 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
#!/bin/sh | |
echo "echo happy" >> $0 |
検索してでてきたものをそのままやるだけではうまくいかなかったのでメモ。
設定の手順はすでにインターネット上にあるので、このメモはほぼ設定ファイルの内容が書いてあるだけである。
2015/2/1 debian7.7 @ さくらVPS
This file contains hidden or 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
module StartStopDaemon | |
# Start or stop daemon process. | |
# | |
# * command (String or Symbol): | |
# [start] Create new instance with arguments ,call #start and create PID file. | |
# [stop] Call #stop, send TERM signal and remove PID file. | |
# [restart] Do stop and start. | |
# [status] Show whether the process is running nor not. | |
# [-h|--help|help] Show usage. |
This file contains hidden or 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
lambda{ | |
header = lambda{|color| "\e[#{color}m" } | |
footer = lambda{ "\e[0m" } | |
add = lambda{|name| | |
dname = ("d" + name.to_s).to_sym | |
Kernel.send :define_method, dname do |*args| | |
begin | |
print header.call(31) |
This file contains hidden or 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
"---------------- | |
" Enterキー押下時、カーソルの右がとじ括弧だったら括弧の外側で改行 | |
"---------------- | |
function! MyEnterFunc() | |
let pos = getpos('.') | |
let c = getline('.')[pos[2]-1] | |
if(c =~ "[\\)\\]]") | |
return "\<Right>\<Enter>" | |
endif | |
return "\<Enter>" |
NewerOlder