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 module = angular.module('racer.js', [], function ($provide) { | |
| var setImmediate = window && window.setImmediate ? window.setImmediate : function (fn) { | |
| setTimeout(fn, 0); | |
| }; | |
| var racer = require('racer'); | |
| $provide.factory('racer', ['$http', '$q', '$rootScope', function ($http, $q, $rootScope) { | |
| $http.get('/model').success(function (data) { | |
| racer.init(data); | |
| }); |
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 /usr/local/lib/node_modules/npm/lib/utils/fetch.js | |
| d66f1d8bb3ee2bc4abaec00591312a33 | |
| d66f1d8bb3ee2bc4abaec00591312a33 | |
| b85e99b1e284504f8235a21ec375e371 | |
| b85e99b1e284504f8235a21ec375e371 | |
| f924c5191b72ef6f84e6dfe1372c8fd0 | |
| f924c5191b72ef6f84e6dfe1372c8fd0 | |
| 9566bdbd05c18cc2bbe1fa0fba60dd0a | |
| 9566bdbd05c18cc2bbe1fa0fba60dd0a |
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
| $ npm explore npm -g "node lib/utils/fetch.js" | |
| execvp(): No such file or directory | |
| execvp(): No such file or directory | |
| execvp(): No such file or directory | |
| execvp(): No such file or directory | |
| execvp(): No such file or directory | |
| execvp(): No such file or directory | |
| execvp(): No such file or directory | |
| execvp(): No such file or directory |
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
| $ npm explore npm -g; node lib/utils/fetch.js | |
| Exploring /usr/local/lib/node_modules/npm | |
| Type 'exit' or ^D when finished |
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
| $ curl http://npmjs.org/install.sh | npm_install=rc sh | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 2047 100 2047 0 0 4291 0 --:--:-- --:--:-- --:--:-- 8785 | |
| fetching: http://registry.npmjs.org/npm/-/npm-1.0.0rc3.tgz | |
| 0.5.0-pre | |
| ! [ -d .git ] || git submodule update --init | |
| node cli.js cache clean | |
| node cli.js rm npm -g | |
| npm WARN Not installed in /usr/local/lib/node_modules npm |
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 voice_server.js | |
| info - master started | |
| info - worker 0 spawned | |
| info - worker 0 connected | |
| info - listening for connections | |
| info - shutting down | |
| warning - kill(SIGKILL) | |
| child_process.js:185 | |
| this.killed = this._internal.kill(constants[sig]); |
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 createServer = require('net').createServer, | |
| Buffer = require('buffer').Buffer, | |
| cluster = require('Cluster'), | |
| fs = require('fs'), | |
| conns = []; | |
| cluster(createServer(function(conn) { | |
| conn.blabla(); | |
| var prepend = null; | |
| var b = new Buffer(66); |
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 Voiceserver/voice_server.js | |
| info - master started | |
| info - worker 0 spawned | |
| info - worker 0 connected | |
| info - listening for connections | |
| info - shutting down | |
| warning - kill(SIGKILL) | |
| child_process.js:185 | |
| this.killed = this._internal.kill(constants[sig]); |
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 createServer = require('net').createServer, | |
| Buffer = require('buffer').Buffer, | |
| cluster = require('cluster'), | |
| fs = require('fs'); | |
| cluster(createServer(function(conn) { | |
| fs.writeFileSync('~/foo.txt', 'var'); | |
| })) | |
| .set('workers', 1) | |
| .listen(8000); |