Skip to content

Instantly share code, notes, and snippets.

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 信頼
@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つだけに絞って全員で探しても良い)
@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 / 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 / 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 / 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 / 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 / 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 / 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()