$path = TMP.'sample.csv';
$data = [
['ID', '氏名'],
[1, '山田 太郎'],
[2, '田中 花子'],
];
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
{% extends layout %} | |
{% block body %} | |
<div id="main"> | |
<h2>Contact me</h2> | |
<p>For queries about anything on this website, or for job quotations, please contact me using the contact form below or via <a href="mailto:[email protected]">email</a>.</p> | |
<form action="#" method="post"> | |
{{ form_start(form) }} | |
{{ form_errors(form) }} |
こんな指針がいいのかなー 2013 夏 ver.
- 「例外をキャッチする主な目的は、エラーの原因を取り除いて、回復すること」
.NET の「例外のデザインのガイドライン」にもこう書いてある。
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
# -*- encoding: utf-8 -*- | |
""" | |
ticket recommendation: concept proof | |
""" | |
import pa | |
tickets = """ | |
Windows環境で日本語を含むパスに対して、File.expand_path が存在しないパスを返すパターンが存在する。 | |
Please backport thread-safe autoloading patch | |
Ruby 1.9.3 fails to compile in directories with accent in their names |
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
=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') |