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
* buffer: Add Buffer.isEncoding(enc) to test for valid encoding values (isaacs) | |
* Raise UV_ECANCELED on premature close. (Ben Noordhuis) | |
* Remove c-ares from libuv, move to a top-level node dependency (Bert Belder) | |
* ref/unref for all HandleWraps, timers, servers, and sockets (Timothy J Fontaine) | |
* addon: remove node-waf, superseded by node-gyp (Ben Noordhuis) |
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 st = require('st') | |
var mount = st({ | |
path: 'resources/static/', | |
url: 'static/', // defaults to path option | |
cacheSize: 1024*1024*1024, // 1GB memory cache. default = 0 | |
fdCacheSize: 1024, // number of fd's to cache. default = 1024 | |
index: true, // show an html index for dirs | |
index: 'index.html', // use index.html for dirs, if present | |
cacheExpiry: 10*60*1000, // expiration of contentCache in ms | |
serveStale: true // update in the background, |
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
// CreativeMUD by whiskers75 | |
// Licenced under the GPLv2. | |
var sockets = []; | |
var players = []; | |
var repl = require('repl'); | |
var net = require('net'); | |
var len = 0; |
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');;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
//////;/* /* /* make sure to *really* comment your comments.*******************/ | |
http.createServer(function (request, response) {;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;response.writeHead(200, {'Content-Type': 'text/plain'});;;;;;;;;;;;;;;;;;;;;;; |
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 = rimraf | |
var path = require("path") | |
, fs = require("fs") | |
// for EBUSY handling | |
var waitBusy = {} | |
// for EMFILE handling | |
var resetTimer = null |
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
~/bhub/lib/node-browserify $ npm ls | |
npm WARN coffee-script >=1.1.1 <1.2 Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
npm WARN commondir 0.0.x Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
npm WARN detective >=0.0.1 <0.1 Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
npm WARN nub 0.0.x Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
npm WARN optimist >=0.2.6 <0.3 Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
npm WARN resolve >=0.0.4 <0.1 Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
browserify@1.3.0 /home/patrick/bhub/lib/node-browserify | |
├── UNMET DEPENDENCY coffee-script >=1.1.1 <1.2 | |
├── UNMET DEPENDENCY commondir 0.0.x |
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
~/bhub/lib/node-browserify $ npm ls | |
npm WARN coffee-script >=1.1.1 <1.2 Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
npm WARN commondir 0.0.x Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
npm WARN detective >=0.0.1 <0.1 Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
npm WARN nub 0.0.x Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
npm WARN optimist >=0.2.6 <0.3 Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
npm WARN resolve >=0.0.4 <0.1 Unmet dependency in /home/patrick/bhub/lib/node-browserify | |
browserify@1.3.0 /home/patrick/bhub/lib/node-browserify | |
├── UNMET DEPENDENCY coffee-script >=1.1.1 <1.2 | |
├── UNMET DEPENDENCY commondir 0.0.x |
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
Copyright (c) 2011 YOUR_NAME_HERE, YOUR_URL_HERE | |
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 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 (c) 2011 YOUR_NAME_HERE, YOUR_URL_HERE | |
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 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
isaacs@cometrocket:~ | |
$ pbpaste > file.js | |
isaacs@cometrocket:~ | |
$ chmod 0755 file.js | |
isaacs@cometrocket:~ | |
$ ./file.js | |
testing |