Skip to content

Instantly share code, notes, and snippets.

@hardfist
hardfist / .gitlab-ci.yml
Created September 24, 2019 08:40 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@hardfist
hardfist / react-terminology.md
Created October 4, 2017 03:11 — forked from sebmarkbage/react-terminology.md
React (Virtual) DOM Terminology
@hardfist
hardfist / simple-promise-retry.js
Created May 8, 2017 09:44 — forked from briancavalier/simple-promise-retry.js
A few general patterns for retries using promises
function keepTrying(otherArgs, promise) {
promise = promise||new Promise();
// try doing the important thing
if(success) {
promise.resolve(result);
} else {
setTimeout(function() {
keepTrying(otherArgs, promise);