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
// readStream that isn't piped in to anything | |
var s = require('fs').createReadStream('/dev/random'); | |
setTimeout(function kill(){ | |
s.destroy(); | |
console.log('stream killed'); | |
if ('gc' in global) { | |
global.gc(); | |
console.log('Garbage collected'); |
This file has been truncated, but you can view the full file.
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
<style> | |
.css-img { | |
position: relative; | |
width: 396px; | |
height: 270px; | |
} | |
.pixel { | |
height: 1px; | |
width: 1px; |
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
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․ | |
✖ 2 of 54 tests failed: | |
1) server close should trigger if a poll request is ongoing and the underlying socket closes, as in a browser tab close: | |
TypeError: Cannot read property 'length' of undefined | |
at EventEmitter.listen.allowUpgrades (/Users/V1/Projects/3rd-Eden/engine.io/test/server.js:397:25) | |
at EventEmitter.emit (/Users/V1/Projects/3rd-Eden/engine.io/node_modules/engine.io-client/lib/event-emitter.js:158:13) | |
at EventEmitter.Polling.poll (/Users/V1/Projects/3rd-Eden/engine.io/node_modules/engine.io-client/lib/transports/polling.js:103:8) | |
at EventEmitter.Polling.onData (/Users/V1/Projects/3rd-Eden/engine.io/node_modules/engine.io-client/lib/transports/polling.js:138:10) |
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
.rule { | |
background: red | |
; border: 1px solid blue | |
; color: #F06 | |
; text-decoration: none | |
} |
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
'use strict'; | |
/** | |
* Require the RED module. | |
*/ | |
var RED = require('RED'); | |
/** | |
* Create a new RED server. | |
*/ |
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
"use strict"; | |
var connect = require('connect') | |
, app = connect.createServer(connect.static(__dirname)) | |
, tweet = require('./tweet').stream; | |
var io = require('socket.io').listen(app); | |
app.listen(8080); |
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') | |
, request = http.IncomingMessage.prototype; | |
/** | |
* Add a uniform interface for remote address in Node.js | |
* | |
* @api private | |
*/ | |
request.__defineGetter__('remote', function remote () { |
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 http GET https://registry.npmjs.org/kue/0.3.3 | |
npm http 304 https://registry.npmjs.org/kue/0.3.3 | |
npm http GET https://registry.npmjs.org/express/2.5.0 | |
npm http GET https://registry.npmjs.org/jade/0.17.0 | |
npm http GET https://registry.npmjs.org/stylus/0.19.2 | |
npm http GET https://registry.npmjs.org/nib/0.2.0 | |
npm http GET https://registry.npmjs.org/reds/0.1.1 | |
npm http 304 https://registry.npmjs.org/nib/0.2.0 | |
npm http 304 https://registry.npmjs.org/express/2.5.0 | |
npm http 304 https://registry.npmjs.org/stylus/0.19.2 |
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@vanilla ~/build/GeoIP-1.4.8]$ ./configure | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether gcc accepts -g... yes | |
checking for gcc option to accept ISO C89... none needed |
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
mixin bar(active) | |
- var topbar = [ | |
- { href: '/', title: 'Home' } | |
- , { href: '/foo', title: 'bar' } | |
- ]; | |
each item in topbar | |
if item.title === active.toLowerCase() | |
li.active: a(href="#{item.href}", title="#{item.title}")= item.title | |
else |