Skip to content
View nelsonfncosta's full-sized avatar
:shipit:
burnit
:shipit:
burnit

Block or report nelsonfncosta

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. file-reader-worker file-reader-worker Public

    Simple example on how to work with web Workers

    JavaScript 1

  2. Commit prepare message Commit prepare message
    1
    #!/bin/sh
    2
    #
    3
    # Automatically adds issue number (optional) and ticket number based on branch name or
    4
    # description to every commit message.
    5
    #
  3. Make an element Draggable ! Make an element Draggable !
    1
    export function dragElement(elmnt, dragElement = elmnt) {
    2
      let pos1 = 0;
    3
      let pos2 = 0;
    4
      let pos3 = 0;
    5
      let pos4 = 0;
  4. Visual way how to explain the act wa... Visual way how to explain the act warning from react testing library
    1
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2007.3604257913025 826.5693359375001" width="2007.3604257913025" height="826.5693359375001">
    2
      <!-- svg-source:excalidraw -->
    3
      
    4
      <defs>
    5
        <style>
  5. Example of how closures can help wit... Example of how closures can help with memory management
    1
    function findCustomerCity(name) {
    2
      const texasCustomers = ['John', 'Ludwig', 'Kate']; 
    3
      const californiaCustomers = ['Wade', 'Lucie','Kylie'];
    4
      
    5
      return texasCustomers.includes(name) ? 'Texas' : 
  6. Promise wrap Promise wrap
    1
    const loadImage = src =>
    2
      new Promise((resolve, reject) => {
    3
        const img = new Image();
    4
        img.onload = () => resolve(img);
    5
        img.onerror = reject;