Skip to content

Instantly share code, notes, and snippets.

/***
*
*
*
*/
var events = require('events');
var util = require('util');
var fs = require('fs');
var modulesObj = require('./modules');
/***
*
*
*
*/
var events = require('events');
var util = require('util');
var fs = require('fs');
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",
@FLYBYME
FLYBYME / gist:2199954
Created March 25, 2012 21:30
btn-api
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);
};
/***
* 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');
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
})
//code
var app = express.createServer();
app.configure(function() {
app.set("view engine", "html");
app.register(".html", jqtpl.express);
app.set('views', __dirname + '/views');
var fs = require('fs');
var path = require('path');
var util = require('util');
var vm = require('vm');
var Module = require('module');
/***
* Node modules
*/
@FLYBYME
FLYBYME / module.js
Created August 10, 2012 04:54
require for raft paas
// 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:
//
var fs = require('fs');
var request = require('request');
var express = require('express')
var server = express.createServer();
server.use(express.bodyParser())
/**
*