Some snippets about asynchronous programming using JavaScript.