- 移行先のOSは最新版でなければならない
- Yosemite移行の際は/usr/localを移しておく必要がある
- 途中で強制終了してもストレージを食うので再実行前には消す
- 画面が暗いままになっていて、強制終了して再起動してもその状態が続くなら、PRAMクリアすふと直るかもしれない(command + option + P + R)
- rbenvがopenssl云々のエラーで使えない場合は再インストールが必要
- apple-gcc42が入っていると失敗する
brew uninstall apple-gcc42
- cocoapodsが壊れてるっぽいときは
pod setup
で直るかも
This file contains hidden or 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 5.5.16 (cli) (built: Apr 1 2015 22:23:30) | |
* Copyright (c) 1997-2014 The PHP Group | |
* Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies | |
* with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies | |
* with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans | |
*/ |
This file contains hidden or 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 | |
/** | |
* @param array $reports | |
* @param string $start | |
* @param string $end | |
* @return array | |
*/ | |
function timeFilter(array $reports, $start, $end) | |
{ |
This file contains hidden or 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 | |
/** | |
* @param array $reports | |
* @param string $start | |
* @param string $end | |
* @return array | |
*/ | |
function timeFilter(array $reports, $start, $end) | |
{ |
This file contains hidden or 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 | |
define('KEY_ID', 0); | |
define('KEY_DATE', 1); | |
/** | |
* @param array $reports | |
* @param string $start | |
* @param string $end | |
* @return array |
This file contains hidden or 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 | |
define('KEY_ID', 0); | |
define('KEY_DATE', 1); | |
/** | |
* @param array $reports | |
* @param string $start | |
* @param string $end | |
* @return array |
This file contains hidden or 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
#!/bin/sh | |
run() { | |
number=$1 | |
shift | |
for i in `seq $number`; do | |
START=$(gdate +%s.%N) | |
$@ | |
END=$(gdate +%s.%N) | |
echo "$END - $START" | bc |
This file contains hidden or 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 Acme\Util\Time; | |
class RangeSeparator | |
{ | |
/** | |
* @param string $start | |
* @param string $end | |
* @param string $daily |
This file contains hidden or 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 | |
interface TraversableOperatorInterface | |
{ | |
/** | |
* @param Traversable $rows | |
* @param callable $callable | |
* @return Generator | |
*/ | |
public function append(Traversable $rows, callable $callable); |
This file contains hidden or 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 | |
$data = [ | |
'[1,2]' => [1, 2], | |
'[]' => [], | |
'[null,null]' => [null, null], | |
'null' => null, | |
"''" => '', |