Skip to content

Instantly share code, notes, and snippets.

=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@funnythingz
funnythingz / 1_.md
Created August 27, 2014 03:09 — forked from gakuzzzz/1_.md

Scala の記法いろいろ

メソッド定義

def concatAsString(a: Int, b: Int): String = {
  val a_ = a.toString();
  val b_ = b.toString();
  return a_.+(b_);
}
@funnythingz
funnythingz / app.go
Created August 11, 2014 14:01 — forked from Bochenski/app.go
package main
import (
"github.com/codegangsta/negroni"
"github.com/gorilla/context"
"github.com/unrolled/render"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"log"
"net/http"
interface FastClickStatic {
attach(element: HTMLElement): void;
}
declare var FastClick: FastClickStatic;
// Domain
module Horoscope {
//占い日
export class DivinationDate {
constructor(
public year: Day,
public month: Day,
public date: Day
) {}