Skip to content

Instantly share code, notes, and snippets.

View sqxieshuai's full-sized avatar

shuai.xie sqxieshuai

  • Beijing
View GitHub Profile
@sqxieshuai
sqxieshuai / README-Template.md
Created November 30, 2018 06:36 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@sqxieshuai
sqxieshuai / promises.md
Created February 14, 2017 03:09 — forked from domenic/promises.md
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.