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 |
View gem_mailcatcher.rb
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 |
View gem_mailcatcher
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 は既に入っている想定 |
View alog.js
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); | |
} | |
View test_for_use_the_header_function.php
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 |
View d3_sample.html
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, |
View phpunit_ajax_sample.php
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 |
View getUrlStatus.php
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> |
View PHPUnitとPHPのバージョン対応表.md
View blink_game.py
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/ |
View ExecutionController.php
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