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 events = require('events'); | |
| var util = require('util'); | |
| var fs = require('fs'); | |
| var modulesObj = require('./modules'); |
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 events = require('events'); | |
| var util = require('util'); | |
| var 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
| var App = require('./app'); | |
| var app = new App({ | |
| __dirname : __dirname, | |
| "author" : "Tim <price.timmy@gmail.com>", | |
| "name" : "test-site-1", | |
| "description" : "this is just a test site call one.", | |
| "version" : "0.0.1", | |
| "main" : "web.js", |
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 http = require('http'); | |
| var qs = require('querystring'); | |
| var events = require('events'); | |
| var util = require('util'); | |
| /*** | |
| * uuid | |
| */ | |
| var S4 = function() { | |
| return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); | |
| }; |
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
| /*** | |
| * Node modules | |
| */ | |
| var events = require('events'); | |
| var Stream = require('stream'); | |
| var util = require('util'); | |
| var path = require('path'); | |
| var crypto = require('crypto'); | |
| var 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
| var util = require('util') | |
| var spawn = require('child_process').spawn | |
| var fs = require('fs') | |
| var out = fs.createWriteStream('./out.log', { | |
| flags : 'a', | |
| encoding : null, | |
| mode : 0666 | |
| }) |
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
| //code | |
| var app = express.createServer(); | |
| app.configure(function() { | |
| app.set("view engine", "html"); | |
| app.register(".html", jqtpl.express); | |
| app.set('views', __dirname + '/views'); |
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 fs = require('fs'); | |
| var path = require('path'); | |
| var util = require('util'); | |
| var vm = require('vm'); | |
| var Module = require('module'); | |
| /*** | |
| * Node modules | |
| */ |
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
| // Copyright Joyent, Inc. and other Node contributors. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a | |
| // copy of this software and associated documentation files (the | |
| // "Software"), to deal in the Software without restriction, including | |
| // without limitation the rights to use, copy, modify, merge, publish, | |
| // distribute, sublicense, and/or sell copies of the Software, and to permit | |
| // persons to whom the Software is furnished to do so, subject to the | |
| // following conditions: | |
| // |
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 fs = require('fs'); | |
| var request = require('request'); | |
| var express = require('express') | |
| var server = express.createServer(); | |
| server.use(express.bodyParser()) | |
| /** | |
| * |