Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
@ianwalter
ianwalter / async-example.js
Last active January 28, 2017 14:09
Re-writing mariusa's example from https://github.com/caolan/async/issues/114
async.parallel({
a: function(callback) {
fs.readFile('a.html', 'utf8', function(err, a) {
if (err) callback(err);
console.log('read a');
callback(null, a);
});
},
b: function(callback) {