Skip to content

Instantly share code, notes, and snippets.

@indexzero
indexzero / mockreadwritestream.js
Created May 20, 2011 06:26
A mock stream for node.js that is both Readable and Writeable.
var events = require('events'),
util = require('util');
var MockReadWriteStream = helpers.MockReadWriteStream = function () {
//
// No need to do anything here, it's just a mock.
//
};
util.inherits(MockReadWriteStream, events.EventEmitter);
@ariefmulya
ariefmulya / myrss_feedreader.php
Created October 30, 2010 17:19
Multiple RSS feeds reading applications
<?php
/*
*
* Copyright (C) 2010 - Arief M Utama <[email protected]>
* All Rights Reserved.
*
* Feeds Reader - Multiple feeds reading
*
* Version: 0.9
* Requirement: PHP >= 5.2
@livingston
livingston / tracer.js
Created June 11, 2010 07:08
A JavaScript tracer utility in 2kb
/* tracer.js - A tracer utility in 2kb
*
* @author Angus Croll
* http://javascriptweblog.wordpress.com/2010/06/01/a-tracer-utility-in-2kb/
*/
String.prototype.times = function(count) {
return count < 1 ? '' : new Array(count + 1).join(this);
}