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
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
<?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
<?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 | |
/** | |
* 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 | |
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
{ | |
"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
{ | |
"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
/* | |
html2image 0.0.1 <http://html2canvas.hertzen.com> | |
Copyright (c) 2013 Ryota Mochizuki (@polidog) | |
Fork by | |
html2canvas 0.4.0 <http://html2canvas.hertzen.com> | |
Copyright (c) 2013 Niklas von Hertzen (@niklasvh) | |
Released under MIT License | |
*/ |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<title>example</title> | |
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div id="name"> |