Skip to content

Instantly share code, notes, and snippets.

View dongseok0's full-sized avatar

Dongseok Paeng dongseok0

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dongseok0 on github.
  • I am dongseok0 (https://keybase.io/dongseok0) on keybase.
  • I have a public key whose fingerprint is 5A79 5F95 CC98 2C12 2B3D F85C EA7B 7E11 ADE4 181C

To claim this, I am signing this object:

@dongseok0
dongseok0 / azure-storage-promisify.js
Last active February 24, 2020 02:03
Promisify Azure storage service
// Use function that Async keyword appended
Bluebird.promisifyAll(blobService, {
promisifier: (originalFunction) => function (...args) {
return new Promise((resolve, reject) => {
try {
originalFunction.call(this, ...args, (error, result, response) => {
error && reject(error);
resolve({result, response});
});
} catch (e) {