
burnit
-
Backercamp
Pinned Loading
-
file-reader-worker
file-reader-worker PublicSimple example on how to work with web Workers
JavaScript 1
-
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#
-
Make an element Draggable !
Make an element Draggable ! 1export function dragElement(elmnt, dragElement = elmnt) {
2let pos1 = 0;
3let pos2 = 0;
4let pos3 = 0;
5let pos4 = 0;
-
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 -->
34<defs>
5<style>
-
Example of how closures can help wit...
Example of how closures can help with memory management 1function findCustomerCity(name) {
2const texasCustomers = ['John', 'Ludwig', 'Kate'];
3const californiaCustomers = ['Wade', 'Lucie','Kylie'];
45return texasCustomers.includes(name) ? 'Texas' :
-
Promise wrap
Promise wrap 1const loadImage = src =>
2new Promise((resolve, reject) => {
3const img = new Image();
4img.onload = () => resolve(img);
5img.onerror = reject;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.