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
git clone [email protected]:polidog/Brainf-ck.git | |
# jojo exec | |
php example/jojo.php jojo/hello.jojo | |
# nyaruko exec | |
php example/jojo.php jojo/hello.jojo |
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 5 | |
html(lang='ja') | |
head | |
title Bootstrap, from Twitter | |
meta(charset='utf8') | |
meta(name='viewport', content='width=device-width, initial-scale=1.0') | |
link(rel='stylesheet', href='/stylesheets/style.css') | |
link(rel='stylesheet', href='//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css') | |
style | |
body { |
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
task("pre:compile", function(event,logger) { | |
var wrench = require("wrench"), | |
fs = require("fs"), | |
jade = require("jade"), | |
view_root = event.dir.views, | |
path = require("path"), | |
coffee = require("coffee-script"); | |
event.alloyConfig.xml = []; | |
event.alloyConfig.coffee = []; |
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
task("pre:compile", function(event,logger) { | |
var wrench = require("wrench"), | |
fs = require("fs"), | |
jade = require("jade"), | |
path = require("path"), | |
coffee = require("coffee-script"), | |
stylus = require("stylus"); | |
event.alloyConfig.coffee = []; | |
event.alloyConfig.jade = []; |
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 express = require('express') | |
, routes = require('./routes') | |
, http = require('http') | |
, path = require('path') | |
, redis = require('redis') | |
, fs = require('fs'); | |
// var app = express(); | |
var app = module.exports = express(); |
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
/* | |
* GET home page. | |
*/ | |
var app = module.parent.exports | |
exports.index = function(req, res){ | |
console.log(app); | |
res.render('index', { title: 'Express' }); | |
}; |
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 express = require('express'); | |
var app = module.exports = express(); | |
var routes = require('./routes') | |
, user = require('./routes/user') | |
, acount = require('./routes/account') | |
, http = require('http') | |
, path = require('path') | |
, redis = require('redis') | |
, fs = require('fs'); |
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
{ | |
"require": { | |
"php": ">=5.3.0", | |
"evenement/evenement": "1.0.*", | |
"react/socket": "0.2.*", | |
"dnode":"*" | |
}, | |
"autoload": {} | |
} |
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 |
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(); |
OlderNewer