View TestFboChangeBuffer.cpp
This file contains 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
#include <poly/Log.h> | |
#include <TestFboChangeBuffer.h> | |
using namespace poly; | |
TestFboChangeBuffer::TestFboChangeBuffer() | |
:fbo(0) | |
,dx(0) | |
{ | |
tex[0] = 0; |
View console-output.txt
This file contains 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
Potentially unhandled rejection [3] TypeError: Error loading "index" at http://localhost:8080/index.js | |
Error loading "index" from "test.js" at http://localhost:8080/test/test.js | |
Cannot read property 'name' of null | |
at l (http://localhost:8080/test/vendor/es6-module-loader.js:7:16462) | |
at j (http://localhost:8080/test/vendor/es6-module-loader.js:7:16047) | |
at k (http://localhost:8080/test/vendor/es6-module-loader.js:7:16389) | |
at http://localhost:8080/test/vendor/es6-module-loader.js:7:14764 | |
at O (http://localhost:8080/test/vendor/es6-module-loader.js:7:7453) | |
at K (http://localhost:8080/test/vendor/es6-module-loader.js:7:7085) | |
at y.7.y.when (http://localhost:8080/test/vendor/es6-module-loader.js:7:10759) |
View reexport.js
This file contains 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
// common.js | |
exports.app = require('./app') | |
exports.db = require('./db') | |
// app.js | |
var common = require('./common') | |
var db = common.db | |
var app = module.exports = express() |
View fork.js
This file contains 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 n = +(process.argv[2] || 10000) | |
var cp = require('child_process') | |
var child = cp.fork(__dirname + '/worker.js') | |
console.log('trying', n, 'messages') | |
var total = n | |
child.on('message', function () { | |
if (!--total) console.log('completed %d roundtrips', n - total) |
View a.js
This file contains 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.exports = foo = 'hello' |
View protocol.js
This file contains 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 EventEmitter = require('events').EventEmitter, | |
util = require('util'); | |
// TODO: | |
// * tags (BEGIN somehashhere\nsomehashhere data) | |
// * line numbers (begin somehash\nsomehash:12 data) | |
var Buffer = exports.Buffer = function (o) { | |
o = o || {}; |
View nextTick-for-browser.js
This file contains 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
// nextTick - by stagas / public domain | |
var nextTick = (function () { | |
var queue = []; | |
var dirty = false; | |
var fn; | |
var hasPostMessage = !!window.postMessage; | |
var messageName = 'nexttick'; | |
var trigger = (function () { | |
return hasPostMessage | |
? function trigger () { |
View memoizenchaos.js
This file contains 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') | |
, memoize = require('memoize') | |
, cache = require('chaos')('cache') | |
, Beatport = require('beatport') | |
memoize.set('debug', true) | |
var bp = memoize('beatport-mem', memoize('beatport', Beatport({ perPage: 10, sortBy: 'releaseDate desc' }), { | |
expire: 1000 * 60 * 60 * 24 | |
, store: cache |
View prompt.js
This file contains 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 readline = require('readline') | |
, rl = readline.createInterface(process.stdin, process.stdout) | |
function prompt (str, cb) { | |
rl.setPrompt(str) | |
rl.prompt() | |
rl.once('line', cb) | |
} | |
prompt('> ', function (str) { |
View test-methods.js
This file contains 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') | |
, httpProxy = require('http-proxy'); | |
httpProxy.createServer(function (req, res, proxy) { | |
// | |
// Put your custom server logic here | |
// | |
proxy.proxyRequest(req, res, { | |
host: 'localhost', | |
port: 9000 |
NewerOlder