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
{ | |
"autoload": { | |
"psr-0": { | |
"": "src/", | |
"Polidog\\": "vendor/polidog/test/src" | |
}, | |
}, | |
"repositories": [ | |
{ | |
"type": "package", |
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
{ | |
"autoload": { | |
"psr-0": { | |
"": "src/" | |
}, | |
"classmap": ["vendor/google/google-api-php-client/src"] | |
}, | |
"repositories": [ | |
{ | |
"type": "package", |
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 | |
function double_hash($key1, $key2, $salt = null, $callback = "sha1") { | |
if (!is_numeric($key1) || !is_numeric($key2)) { | |
return false; | |
} | |
$key1 = (int)$key1; | |
$key2 = (int)$key2; | |
$first = null; |
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 | |
/** | |
* HttpRequestクラス | |
* @property array $CURL_OPTS default curl options* | |
* @property array $lastHttpResponse 最後のリクエスト情報 | |
* @property array $options そのたcurlの設定情報 | |
*/ | |
class HttpRequest { | |
/** |
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 | |
abstract class Lemon { | |
protected $__isNigata2Properties; | |
protected $__isFinalProperties; | |
public function __construct() { | |
$this->__isNigata2Properties = array(); | |
$this->__isFinalProperties = 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 | |
/** | |
* 実行したいメソッドに対してフィルター機能を提供する | |
* @version 0.0.1 | |
* @author polidog <[email protected]> | |
* | |
* @property mixed $object 実行するクラスのインスタンス | |
* @property boolean $isExecuteProtectMethod private, protectedなメソッドを実行するかのフラグ | |
*/ |
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
var dnode = require('dnode'); | |
exports.requestAction = function(req, res){ | |
dnode.connect(7070).on('remote',function(remote){ | |
remote.callAction('/',null,{'domain':'localhost:3000'},function(html){ | |
// console.log(html); | |
res.set('Content-Type', 'text/html'); | |
res.send(html); | |
}); | |
}); |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, cake = require('./routes/cake') | |
, http = require('http') | |
, path = require('path'); |
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 | |
App::import('Routing', 'Router'); | |
App::import('Sanitize'); | |
config('routes'); | |
class DNodeShell extends AppShell | |
{ | |
public function main() { | |
require __DIR__."/../../../vendor/autoload.php"; | |
$loop = new React\EventLoop\StreamSelectLoop(); |
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 | |
App::uses('Shell', 'Console'); | |
/** | |
* Application Shell | |
* | |
* Add your application-wide methods in the class below, your shells | |
* will inherit them. | |
* | |
* @package app.Console.Command |