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
#!/usr/bin/env ruby | |
def sample(hoge: 'arg1', fuga: 0) | |
puts "hoge => #{hoge}" | |
puts "fuga => #{fuga}" | |
end | |
sample(hoge: "XXX", fuga: "YYY") | |
#=> hoge => "XXX" | |
#=> fuga => "YYY" |
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
#!/usr/bin/env ruby | |
require 'blink1' | |
require 'net/pop' | |
module MailChecker | |
class Blink | |
def self.start | |
self.new(ENV['pop_server'], ENV['pop_port'], ENV['username'], ENV['password']).run |
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 'rubygems' | |
require 'uri' | |
require 'open-uri' | |
require 'net/http' | |
require 'nokogiri' | |
class Wikipedia < Citrus::Plugin | |
def initialize(*args) | |
super | |
@prefix = @config['prefix'] || '\? *?' |
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 Tree < Hash | |
def self.glob(path) | |
tree = Tree.new | |
Dir::glob("#{path}/**/*").sort.each do |dir| | |
next unless File.directory? dir | |
tree[File.dirname(dir)] ||= [] | |
tree[File.dirname(dir)] << File.basename(dir) | |
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
curl -d 'serial=/4332799460503178/' gpkure.herokuapp.com | |
curl -d 'serial=/5369878261627612/' gpkure.herokuapp.com | |
curl -d 'serial=/5303568525959220/' gpkure.herokuapp.com | |
curl -d 'serial=/5349372193995302/' gpkure.herokuapp.com |
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
* Assertion at mono-wsq.c:73, condition `mono_wsq_count (wsq) == 0' not met | |
Stacktrace: | |
Native stacktrace: | |
mono [0x80de96b] | |
[0xb77ba40c] | |
/lib/i686/cmov/libc.so.6(abort+0x188) [0xb7638018] |