Skip to content
View maurocen's full-sized avatar

Organizations

@NeoCoast

Block or report maurocen

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. canvas-bullet-chart canvas-bullet-chart Public

    Render a simple bullet chart on a canvas

    JavaScript 6

  2. A hook to handle input value and if ... A hook to handle input value and if said value has changed. Allows resetting value to initial or new value.
    1
    import { useState } from 'react';
    2
    
                  
    3
    const useInput = (initialValue = '') => {
    4
      const [value, setValue] = useState(initialValue);
    5
      const [touched, setTouched] = useState(false);
  3. Get a promise that resolves/rejects ... Get a promise that resolves/rejects when the specified `accepted` or `rejected` events are received.
    1
    const EventEmitter = require('events');
    2
    
                  
    3
    const event = new EventEmitter();
    4
    
                  
    5
    // THIS IS THE IMPORTANT BIT