Skip to content

Instantly share code, notes, and snippets.

@morokosi
morokosi / promise_interop.js
Created September 25, 2015 15:07
Promise interop
Promise.resolve(AnotherPromise);
// =>
new Promise(resolve => {resolve(AnotherPromise)})
// =>
{
_resolver
then: function,
catch: function
}
// resolve: v => {resolver.resolve(v)}
@morokosi
morokosi / base58.c
Created February 24, 2015 04:04
base58decode
#include <stdio.h>
#include <stdlib.h> // strndup #include <string.h> // strlen, strchr #include <math.h> // log