Skip to content

Instantly share code, notes, and snippets.

View leorenis's full-sized avatar
🤍
Let's start coding...

Léo Renis Santos leorenis

🤍
Let's start coding...
View GitHub Profile
@ivanbanov
ivanbanov / Polling.js
Last active April 28, 2024 23:49
Implements a polling with max retries and exponential retries
const DEFAULT_BACKOFF = 200; // milliseconds
export class Polling {
constructor(fn, maxRetries = 10, initialDelay = DEFAULT_BACKOFF) {
this._fn = fn;
this._remainingRetries = maxRetries;
this._delay = initialDelay;
}
async perform() {
@erikras
erikras / FieldArraysForm.js
Created November 14, 2016 22:19
Example showing how to use a formValueSelector on an individual array item
/**
The following can replace the file in the Field Arrays example
(https://github.com/erikras/redux-form/tree/master/examples/fieldArrays) to demonstrate this functionality.
**/
import React from 'react'
import { connect } from 'react-redux'
import { Field, FieldArray, reduxForm, formValueSelector } from 'redux-form'
import validate from './validate'
@ikennaokpala
ikennaokpala / nfs-vagrant-error.md
Last active March 8, 2024 12:54
Vagrant error :NFS is reporting that your exports file is invalid

Vagrant error :NFS is reporting that your exports file is invalid

==> default: Exporting NFS shared folders...
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":

exports:2: path contains non-directory or non-existent components: /Users/<username>/path/to/vagrant
exports:2: no usable directories in export entry
exports:2: using fallback (marked offline): /
@seankross
seankross / Update Fork.md
Last active August 9, 2022 18:06
Update a Github Fork from the Original Repo

Taken from here

Add remonte branch:

git remote add --track master mleung git://github.com/mleung/feather.git

Verify:

git remote