Skip to content

Instantly share code, notes, and snippets.

@yattom
yattom / text.md
Last active August 29, 2015 14:05

What is Pragmatic TDD?

プラグマティックTDDとはなにか? こちらの記事の翻訳になります http://adaptiveobjectmodel.com/2012/01/what-is-pragmatic-tdd/

by JOSEPH YODER on JANUARY 11, 2012

by Joseph Yoder & Rebecca Wirfs-Brock

What do we mean by Pragmatic TDD?

僕らがプラグマティックTDDという言葉を使うわけ

@yattom
yattom / price.js
Last active August 29, 2015 14:10
An node script to get prices from Amazon (Japan). I threw away in the middle when I realized that prices for Kindle books are not available with Product Advertising API.
// An ugly quick hack to get prices from Amazon
// Using node-apac https://github.com/dmcquay/node-apac/
// and almost same as the example in its README
var util = require('util'),
OperationHelper = require('apac').OperationHelper;
var opHelper = new OperationHelper({
awsId: process.env.AWS_ID,
awsSecret: process.env.AWS_SECRET,
assocId: process.env.ASSOCIATE_ID,
@yattom
yattom / right_triangle_of_natural_numbers.py
Created December 8, 2014 00:05
Search for right rectangles with edges of natural number length.
def right_triangle_of_natural_numbers(max_n):
'''
Return all right traiangles whose edges are natural number length.
Triangles of same ratio are discarded.
>>> right_triangle_of_natural_numbers(5)
[(5, 4, 3)]
>>> right_triangle_of_natural_numbers(20)
[(5, 4, 3), (13, 12, 5), (17, 15, 8)]
'''
@yattom
yattom / gist:25b5f225cc07ddaee582
Created March 26, 2015 04:25
Fearless Changeワークショップのやり方

kawagutiさんが公開してくれたFearless Changeのワークショップの簡単な内容です。

https://github.com/kawaguti/fearless-change-pub/tree/master/carddeck

  1. 人を集める。Fearless Changeやパターンを勉強するとは言わず、みんなの現状と課題を共有できるワークショップがあるからやってみようと声をかける。
  2. 資料を印刷する(5,6人なら1セット63枚。8人以上なら4~6人ずつに分け、グループごとにセット準備)。できればコピー用紙ではなく、B6か3x5のカードに印刷する。
  3. まず白紙のカードを配り、各自で現在感じている問題を書いてもらう。1枚1点で、何枚書いてもいい。(5分)
  4. 各自書いた中で一番重要と思う問題を1枚選び、全員で発表する。
  5. パターンのカードを机にばらまき、みんなで眺めながら、誰かの問題に使えるかも?と思うものを見つけて共有したり話し合ったりする。組み合わせや順序も考えてみる。 (5.は、誰かの問題1つだけに絞って全員で探しても良い)
An experimental tralnslation of http://alistair.cockburn.us/Heart+of+Agile+Fortune+Teller+in+English into Japanese.
COLLABORATE 協働
+1 : COLLABORATE 協働
+1 : How does it feel to take turns contributing ? お互いに助け合ったらどんな気分だろう?
+1 : TRUST 信頼

Agile Samurai Dojo Gatheringにて角谷さんの「アジャイルソフトウェアの12の原則」の訳に対する熱い思いを受けた。

俺もやる!君もやれ、Fork me!!!


Our highest priority is to satisfy the customer through early and continuous delivery of valuable software.

顧客満足を最優先し、価値のあるソフトウェアを早く継続的に提供します。 
@yattom
yattom / sudoku.py
Created December 3, 2012 05:26
Sudoku
# coding: utf-8
class Sudoku(object):
def __init__(self, initial):
self.board = {}
for col in range(9):
for row in range(9):
self.board[(col, row)] = initial[col][row]
def member_of_row(self, row):
@yattom
yattom / SpiderWebFixtureCheatsheet
Last active December 15, 2015 19:59
Cheatsheet for SpiderWeb in FitLibraryWeb / FitNesse. Excerpted and rearranged from its own tests included in FitLibraryWeb. This file is in FitNesse wiki format so create a wiki page and just paste. http://sourceforge.net/projects/fitlibrary/files/FitLibraryWeb/
!contents -R2 -g -p -f -h
see also
* <FitLibraryWeb.SpiderFixture.DocuMentation.CommandUserGuide
* <FitLibraryWeb.SpiderFixture.SpecifySpiderFixture
ドライバ(ブラウザ)によって挙動が違うものもある。
URLを開く open url
|''get url''|http://localhost:@{serverPort}/files/@{webDriver.driver}/test.html|
@yattom
yattom / timer.html
Last active December 16, 2015 05:38
Simple count down timer. Designed for Treasure Hunt Agile Game but can be used for lightning talks and such. Implemented with a single file -- no other .js files, images, Internet connections required. Intended for offline use executed directly from local storage. Current version requires GET parameters to prime; ie. path/to/timer.html?min=5&sec…
<!DOCTYPE HTML>
<html>
<head>
<title>Countdown Timer</title>
<meta doctype='text/html' charset='utf-8' />
<style>
body {
background-color: gray;
}