This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* See YouTube - Excel RECURSIVE Lambda (https://youtu.be/L7s6Dni1dG8) */ | |
/* | |
FUNCTION NAME: MegaReplace | |
DESCRIPTION: Recursive LAMBDA for clean data given errors to look for and corrections. Recursively calls MegaReplace using Offset for Before|After table cells until end of table (i.e. blank cell) | |
ARGS: | |
text_to_correct: Contains the first table cell of data to be cleaned, | |
before_text: First cell of Before|After table of corrections [BEFORE] column, | |
after_text: First cell of Before|After table of corrections [AFTER] column | |
EXAMPLE: | |
=MegaReplace([@Skills],$F$3,$G$3) // Skills is column in main table; F | G are first cells in Before|After table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See [basarat] (https://github.com/basarat/demo-guard-clauses) | |
class Person { | |
age?: number; | |
experience?: number; | |
} | |
// demo-guard-clauses | |
function update(button: number, person: Person | null) { | |
if (button !== 1 || !person) { return; } | |
if (person.age == null) { throw new Error('Person age not set'); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<!-- See Kevin Powell (KP) [https://youtu.be/HJ0-fUJ-2F0] for definitions --> | |
<!-- <head> is our meta data (not visible on page) --> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>HTML Basics</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// see YouTube video from Basarat (https://youtu.be/8KIkLPQPt98) | |
// Example 1 - Template Literal Types - Basic | |
let jsStringLiteral: string; | |
jsStringLiteral = 'Hello'; | |
jsStringLiteral = 'World'; | |
let jsTemplateLiteral: `Example: ${string}`; // Okay | |
jsTemplateLiteral = `Example: ${jsStringLiteral}`; // Okay | |
jsTemplateLiteral = `Example: ${3.14}`; // Okay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Props { | |
title : string | |
color?: string | |
} | |
const Header = (props : Props) => { | |
return ( | |
<header> | |
<h1 | |
style={{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Basic Types | |
let id : number = 5; | |
let company : string = 'Me Inc.'; | |
let isPub : boolean = true; | |
let x : any = 'Hello'; | |
// Arrays | |
let ids : number[] = [1, 2, 3, 4, 5]; | |
// Tuple |