Skip to content

Instantly share code, notes, and snippets.

View gluons's full-sized avatar
😰
I have personal issue. Not available for a while.

Saran Tanpituckpong ✔️ gluons

😰
I have personal issue. Not available for a while.
  • AXONS
  • Bangkok, Thailand
  • 09:27 (UTC +07:00)
View GitHub Profile
@gluons
gluons / awesome-vs-extensions.md
Last active November 14, 2017 10:23
My favorite Visual Studio extensions.
@gluons
gluons / bluebird-promise-sequential.js
Created February 10, 2017 03:59
Bluebird Promise Sequential
/*
* Sequential Promises
* Adapt from https://github.com/petkaantonov/bluebird/issues/70#issuecomment-32256273
*/
function promiseSequential(tasks) {
return Promise.reduce(tasks, function (values, task) {
if (typeof task === 'function') {
return task().then(function (value) {
values.push(value);
return values;