1.定期的に休憩をとっていますか? ペアプログラミングは、精神的な体力を消耗します。定期的に休憩をとってリフレッシュすることがとても大切です。
2.「色々な実装方針がある」という認識がありますか?
=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') |
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting | |
response.should redirect_to(movies_path) |
A warning occurred (42 apples) | |
An error occurred |
# (C) Mathieu Blondel, November 2013 | |
# License: BSD 3 clause | |
import numpy as np | |
def ranking_precision_score(y_true, y_score, k=10): | |
"""Precision at rank k | |
Parameters |
更新: | 2024-05-22 |
---|---|
作者: | @voluntas |
バージョン: | 2024.1 |
URL: | https://voluntas.github.io/ |
typo などは https://x.com/voluntas までご連絡ください。
import difflib | |
import pygments | |
import pygments.lexers | |
import pygments.formatters | |
def read_file(fn): | |
with open(fn) as f: | |
return f.read() |
#ローカルとリモートのブランチ名を変更する
以下、ブランチ名を hoge から foo に変更する例
git branch -m hoge foo
# -*- coding: utf-8 -*- | |
"""Parse Python source code and get or print docstrings.""" | |
__all__ = ('get_docstrings', 'print_docstrings') | |
import ast | |
from itertools import groupby | |
from os.path import basename, splitext |