Skip to content

Instantly share code, notes, and snippets.

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;
}
@yattom
yattom / multiprocessing_demo.py
Created May 9, 2013 03:57
a simple example of Python's multiprocessing
import multiprocessing
def f(num, d):
for i in range(100):
d['%d:%d'%(num, i)] = 1
if __name__=='__main__':
ps = []
m = multiprocessing.Manager()
d = m.dict()
@yattom
yattom / OlympicRemover.js
Last active December 24, 2015 08:59
Grease Monkey script to remove (=make less visible) texts which contains unwanted keywords. This specific version removes Olympic related words on nikkei.com.
// ==UserScript==
// @name OlympicRemover
// @namespace http://yattom.jp/experimental
// @include http://www.nikkei.com/
// @version 1
// ==/UserScript==
var org_func = window.onload();
@yattom
yattom / Crypto.java
Last active January 8, 2021 06:39
AES暗号・復号をJavaとRubyで実装したサンプルです。言語間で相互に暗号化・復号ができます。
import java.security.AlgorithmParameters;
import java.security.Key;
import java.security.SecureRandom;
import javax.crypto.*;
import javax.crypto.spec.*;
import java.security.spec.*;
import org.apache.commons.codec.binary.Base64;
@yattom
yattom / problem.md
Last active September 24, 2019 02:06

TDDBC課題:整数の区間

課題1 整数の閉区間 (closed range)

【例】

[3,8]
-> 下端点 (lower endpoint) が3, 上端点 (upper endpoint) が8 である整数閉区間
-> 3 と 8 は区間に含まれます
@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という言葉を使うわけ