Skip to content

Instantly share code, notes, and snippets.

$ npm install -g git://github.com/mhevery/jasmine-node#Jasmine2.0
01 北海道
02 青森県
03 岩手県
04 宮城県
05 秋田県
06 山形県
07 福島県
08 茨城県
09 栃木県
10 群馬県
@foo9
foo9 / gist:99a5ec94233f77899986
Created February 13, 2015 09:21
Laravel artisan command memo
$ php artisan
Laravel Framework version 5.0.4
Usage:
[options] command [arguments]
Options:
--help (-h) Display this help message
--quiet (-q) Do not output any message
--verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
@foo9
foo9 / gist:14a0045b2995a6438625
Created February 19, 2015 08:28
PHP mcrypt module install for Mac OS X Yosemite
$ brew search mcrypt
$ brew install homebrew/php/php55-mcrypt

$ php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File:         (none)
Scan for additional .ini files in: /Library/Server/Web/Config/php
Additional .ini files parsed:      (none)
var promise = new Promise(function(resolve, reject) {
if ( /* 何らかの非同期処理 */ ) {
resolve(); // 成功
} else {
reject(); // 失敗
}
});
promise.then(function(result) {
var count = 0;
function hoge() {
return new Promise(function(resolve, reject) {
setTimeout(function() {
if (count < 2) {
resolve(count);
console.log((new Date()).getTime());
} else {
<?php
namespace Foo9\Img;
use Symfony\Component\Process\Process;
use Symfony\Component\Process\ProcessBuilder;
class Compare
{
/** @var integer */
private $fuzz;