Skip to content

Instantly share code, notes, and snippets.

View scoopandrun's full-sized avatar

Nicolas DENIS scoopandrun

View GitHub Profile
@scoopandrun
scoopandrun / formatDecimal.js
Last active May 6, 2020 08:44
Applies numeric contraints (sign and decimals) and validation on HTML input elements
/**
* Formats numeric inputs.
*
* The function allows to limit the input to figures
* that may be preceded by a plus or minus sign
* and a decimal separator.
*
* Applies to "input" elements with the attribute data-decimal=*
* where * is (+/-)(\d).
*
@scoopandrun
scoopandrun / keybase.md
Created February 20, 2022 11:18
Keybase verification

Keybase proof

I hereby claim:

  • I am scoopandrun on github.
  • I am scoopandrun (https://keybase.io/scoopandrun) on keybase.
  • I have a public key ASCsQxoPHikEGqbrUjqd6cdPMppLG8EyDV02Odb8EHl7Bwo

To claim this, I am signing this object: