Skip to content

Instantly share code, notes, and snippets.

// assumes that the title content is lowercase.
// I'm aware of the duplication of some functionality.
// this is just a POC for the work I'm doing on ccs. :)
$(function() {
var $allSessions = $('#content .show'),
elementsAndTitles = $.map($allSessions, function(sessionElement) {
var $session = $('h3 a', sessionElement);
return {
$session: $session,

a Stream spec

This document defines the behaviour that a Stream must implement in order to be compatible with Stream#pipe. This is not an official document, but is intended as a guide to produce correct behaviour in user-land streams.

Stream

All streams must emit 'error' if writing to or reading from becomes physically impossible. 'error' implys that the stream has ended.

All streams may emit 'close'. 'close' means that any underlying resources have been disposed of. If a ReadableStream has ended normally, it must not emit 'close' before 'end'.