PHPUnitのバージョン | 対応するPHPのバージョン | PHPUnit Doc | pharファイル | ※DBUnit |
---|---|---|---|---|
3.7 | 5.3.3 以降 | doc | phpunit-3.7.38.phar | ○ |
4.0 | 5.3.3 以降 | doc | phpunit-4.0.20.phar | ○ |
4.1 | 5.3.3 以降 | doc | phpunit-4.1.6.phar | ○ |
4.2 | 5.3.3 以降 | doc | phpunit-4.2.6.phar | ○ |
4.3 | 5.3.3 以降 | doc | phpunit-4.3.5.phar | ○ |
4.4 | 5.3.3 以降 | [doc](ht |
This file contains 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
# Cookbook Name:: app | |
# Recipe:: mailcatcher | |
# | |
# Copyright 2015, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
# rubyとgem は既に入っている想定 | |
# ruby -v => 2.0.0p598 |
This file contains 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
# | |
# Cookbook Name:: app | |
# Recipe:: mailcatcher | |
# | |
# Copyright 2014, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
# rubyとgem は既に入っている想定 |
This file contains 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
;(function(ns){ | |
if(typeof ns.alog === 'function') return; | |
ns.alog = function(){ | |
var args = [].slice.call(arguments).concat(); | |
if (/*@cc_on!@*/false) { | |
return alert(args); | |
} | |
This file contains 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
<?php | |
/** | |
* メッセージ(json)を返すAPIと仮定 | |
* | |
* あくまでもサンプルなので例外処理は入れていません | |
*/ | |
class Sample | |
{ | |
/** | |
* @var array |
This file contains 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Visualize the benchmark by d3.js</title> | |
<style> | |
body { | |
font: 12px sans-serif; | |
} | |
.axis path, |
This file contains 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
<?php | |
/** | |
* メッセージ(json)を返すAPIと仮定 | |
* | |
* あくまでもサンプルなので例外処理は入れていません | |
*/ | |
class Sample | |
{ | |
/** | |
* @var array |
This file contains 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
<?php | |
/** | |
* URLのステータスを返す | |
* | |
* <code> | |
* $ret = getUrlStatus($url); | |
* | |
* $ret->url; // string URL<br> | |
* $ret->reachedUrl; // string 最後に到達したURL<br> | |
* $ret->isValid; // bool 有効なURLか<br> |
This file contains 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
import sys | |
import cv2 # OpenCV のインポート | |
import time | |
from datetime import datetime | |
''' | |
参考 | |
@link http://ensekitt.hatenablog.com/entry/2017/12/19/200000 | |
@link https://note.nkmk.me/python-opencv-face-detection-haar-cascade/ | |
@link https://note.nkmk.me/python-opencv-mosaic/ |
This file contains 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
<?php | |
namespace Sample1; | |
/** | |
* 当クラスでは更新命令数を監視し(実際には教えてもらうが) | |
* | |
* - 最初の命令から閾値となる秒数が過ぎていない | |
* - かつ、監視していた実行数が許可された実行数を超えていたら | |
* 閾値 - 最初の計測から今回の処理までの実行間隔 の値で usleep |
OlderNewer