- コンストラクタ名を__constructorに修正
- newの前の&を削除
- QdmailComponent内のfunction & smtpObjectの引数をスーパークラスと合わせて$null = falseに修正
- HTMLメールでのマルチパート順序をhtml, plain, OMITからplain, html, OMITへ変更
- iPhone用アドレスをi.softbank.ne.jpからi.softbank.jpに修正
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
#!/usr/bin/env bash | |
# =============================================================================== | |
# Script to install PHPUnit in the Local by Flywheel Mac app | |
# These packages are installed | |
# | |
# PHPUnit, curl wget, rsync, git, subversion and composer. | |
# | |
# WordPress is installed in the `/tmp/wordpress` directory for use by PHPUnit. | |
# The WordPress test suite is installed in the `/tmp/wordpress-tests-lib` directory. |
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 retry(isDone, next) { | |
var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false; | |
var id = window.setInterval( | |
function() { | |
if (isDone()) { | |
window.clearInterval(id); | |
next(is_timeout); | |
} | |
if (current_trial++ > max_retry) { | |
window.clearInterval(id); |
- http://downloads.vagrantup.com/
- v1.1.5(現時点最新)をダウンロードしてインストール
- OSXなのでVagrant.dmg
- インストール確認
$ vagrant -v
Vagrant version 1.1.5
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 | |
if ( ! class_exists( 'PM_Scripts' ) ) { | |
class PM_Scripts Extends WP_Scripts { | |
public function __construct() { | |
parent :: __construct(); | |
} | |
public function print_extra_script( $handle, $echo = true ) { | |
if ( !$output = $this->get_data( $handle, 'data' ) ) | |
return; |
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 | |
if ( ! class_exists( 'PM_Schedule_Post' ) ) { | |
class PM_Schedule_Post { | |
protected $from = ''; | |
protected $to = ''; | |
protected $label = ''; | |
public function __construct( $from, $to, $label = 'expired' ) { | |
$this->from = $from; | |
$this->to = $to; |
#Backbone.jsでUIバインディング
Backbone.js Advent Calendarの14日目です。
Backbone.jsはAngularJSのようなUIバインディングを持たないので自分でバインドしなければなりません。 例えば、テキストボックスの入力内容をモデルに格納して、さらにモデルの内容を別のDOM要素に表示する、 というのはこんな感じかと思います。
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
#!/usr/bin/php | |
<?php | |
switch($argc) { | |
case 1: | |
case 2: | |
echo "please input new site url and wp directory name!\n"; | |
exit(); | |
default: | |
$old_site = isset($argv[3]) ? $argv[3] : ''; | |
$path = $argv[2]; |
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 | |
/** | |
* PHP versions 5 | |
* | |
* @copyright 2011 k-holy <[email protected]> | |
* @author [email protected] | |
* @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) | |
*/ | |
namespace Holy; |
NewerOlder