Skip to content

Instantly share code, notes, and snippets.

View ra100's full-sized avatar
🦙

Rastislav Švarba ra100

🦙
View GitHub Profile
@ra100
ra100 / cloudSettings
Last active October 17, 2019 07:46
cloudSettingsWork
{"lastUpload":"2019-10-17T07:46:37.594Z","extensionVersion":"v3.4.3"}
@ra100
ra100 / asyncDelay.js
Last active January 12, 2018 18:42
How to simply delay Promises generated from array executed in Promise.all.
const time = Date.now();
const data = ["a", "b", "c", "d"];
// this is actually what I want
const delay = (cb, timeout) =>
new Promise(resolve => setTimeout(() => resolve(cb()), timeout));
// this simulates async call network/io operation
const fakeAsync = log =>
new Promise(resolve => {

Keybase proof

I hereby claim:

  • I am ra100 on github.
  • I am ra100 (https://keybase.io/ra100) on keybase.
  • I have a public key whose fingerprint is AE0E 3093 157C 2748 DC8C 3462 EE6D 01F5 AE38 3408

To claim this, I am signing this object:

/* ===========================================================
* trumbowyg.cro.js v1.0
* Cro plugin for Tumbowyg
* http://alex-d.github.com/Trumbowyg
* ===========================================================
* Author : Rastislav Å varba (ra100)
* Twitter : @ra100
* Website : ra100.net
*/