Skip to content

Instantly share code, notes, and snippets.

View MarwanShehata's full-sized avatar
🎯
"Luck is what happens when preparation meets opportunity.", Seneca

Marwan Shehata MarwanShehata

🎯
"Luck is what happens when preparation meets opportunity.", Seneca
View GitHub Profile
import "./App.css";
function App() {
// const handleIt = (e: any, v: number) => {
// console.log(e, v)
// }
const handleIt = (v) => {
return (e) => {
console.log(e, v);
/**
* Utils
*
* Provides utility and miscellaneous functionality.
*/
import uuid from 'uuid/v4'
/**
* Generates a random integer between min and max inclusive.
// https://youtu.be/D-JIYZhEqv8
// The Async Features You’ve Been Awaiting - Yael Hermon
function foo() {
getSomeAsyncStuff()
.then(getSomeMoreAsyncStuff)
.then(getSomeMoreAsyncStuff)
.then(result=> console.log(result))
.catch((err) => console.log(err););
}
<!DOCTYPE html>
<!-- this comment is a child of the document -->
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Nodelists Versus HTMLCollections</title>
<meta name="viewport" content="width=device-width" />
<!-- This comment is a child element of the head element -->
</head>
<!-- this comment is a child of the html element -->