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
package main | |
import ( | |
"fmt" | |
"github.com/mattn/go-options" | |
"net/http" | |
"os" | |
"path/filepath" | |
) |
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
package main | |
import ( | |
"fmt" | |
"github.com/stretchr/goweb" | |
"github.com/stretchr/goweb/context" | |
"net/http" | |
) | |
func main() { |
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
source "https://rubygems.org" | |
gem 'capybara' | |
gem 'selenium-webdriver' | |
gem 'sinatra' |
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
source 'https://rubygems.org' | |
gem 'capybara' | |
gem 'rake' | |
gem 'selenium-webdriver' | |
gem 'json' | |
gem 'rmagick' | |
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
(defun gongo:read-datetime () | |
(unless (re-search-forward "\\([0-9]\\{4\\}\\)-\\(0[1-9]\\|1[0-2]\\)-\\(0[1-9]\\|[1-2][0-9]\\|3[0-1]\\)T\\([0-1][0-9]\\|2[0-4]\\):\\([0-5][0-9]\\):\\([0-5][0-9]\\)Z" nil t) | |
(message "error")) | |
(let ((seconds (string-to-number (match-string-no-properties 6))) | |
(minutes (string-to-number (match-string-no-properties 5))) | |
(hour (string-to-number (match-string-no-properties 4))) | |
(day (string-to-number (match-string-no-properties 3))) | |
(month (string-to-number (match-string-no-properties 2))) | |
(year (string-to-number (match-string-no-properties 1)))) | |
(list seconds minutes hour day month year))) |
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
Capybara.add_selector(:select_inexact) do | |
label "select box (inexact finder)" | |
xpath { |locator| XPath::HTML.select(locator) } | |
filter(:options) do |node, options| | |
actual = node.all(:xpath, './/option').map { |option| option.text } | |
actual.zip(options).all? { |act, opt| Regexp.new(opt).match(act) } | |
end | |
end | |
module Capybara |
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
source "https://rubygems.org" | |
gem 'capybara' | |
gem 'sinatra' | |
gem 'selenium-webdriver' |
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
#!/usr/bin/env php | |
<?php | |
class PhpCompletion | |
{ | |
public static function make_completion() | |
{ | |
$completion = new self; | |
$completion->print_version(); | |
$completion->make_completion_constants(); |
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
Feature: アラートとコンフォーム | |
Scenario: hoge | |
Given アクセス | |
When alertボタンをクリック | |
Then あらーーーと | |
Scenario: fuga | |
Given アクセス | |
When confirmボタンをクリック |
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
#!/usr/bin/env ruby | |
require 'table_beet' | |
require "turnip" | |
Dir.glob("steps/**/*steps.rb") { |f| load f, true } | |
RSpec.configuration.include_or_extend_modules.each do |ioe, mod, filters| | |
c = Class.new.extend(mod) | |
step_names = c.methods.grep(/^match: (?<step_name>.+)/) { $~[:step_name] } |