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
import { StatusBar } from "expo-status-bar"; | |
import { Button, Platform, StyleSheet, Text, View } from "react-native"; | |
// notifications imports | |
import * as Device from "expo-device"; | |
import * as Notifications from "expo-notifications"; | |
import Constants from "expo-constants"; // Optional | |
// Initialize the notification service | |
Notifications.setNotificationHandler({ |
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
ANT000000 | Antiques & Collectibles / General | |
---|---|---|
ANT001000 | Antiques & Collectibles / Americana | |
ANT002000 | Antiques & Collectibles / Art | |
ANT003000 | Antiques & Collectibles / Autographs | |
ANT005000 | Antiques & Collectibles / Books | |
ANT006000 | Antiques & Collectibles / Bottles | |
ANT007000 | Antiques & Collectibles / Buttons & Pins | |
ANT008000 | Antiques & Collectibles / Care & Restoration | |
ANT009000 | Antiques & Collectibles / Transportation | |
ANT010000 | Antiques & Collectibles / Clocks & Watches |
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
console.log("thenxtlvls 🚀 ", 2022); | |
// using clousures create a function that tracks how many times it's been called | |
// and exit when limit is reached. Reset the counter back to zero. | |
function functionCreatorWithLimit(limit) { | |
let counter = 0; | |
function functionToBeCalledWithDefinedLimit () { | |
if (counter >= limit ) { | |
console.log(`Limit of (${counter}) calls is reached, the counter has rested back to zero and you can run again`) | |
counter = 0; |
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
// console.log("thenxtlvls", 2022); | |
function copyContentToClipboard (content) { | |
console.log(content, "to be copied") | |
navigator.clipboard.writeText(content).then(function() { | |
alert("text copied to clipboard") | |
}, function() { | |
alert("Oops! Couldnt copy text to clipboard") | |
}) | |
} |
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
// Paste in your browser console | |
const kamba = vokamba => { | |
const sp = new SpeechSynthesisUtterance(vokamba); | |
[sp.voice] = speechSynthesis.getVoices(); | |
speechSynthesis.speak(sp); | |
}; | |
kamba('My name is chomba chanda, an intern at bongohive'); |
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
let myStr: string; | |
let myNumber: number; | |
let myBool: boolean; | |
let myVar: any; | |
let strNumTuple: [string, number]; | |
//voidi | |
let myVoid: void = undefined; |
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
<main id="main-container"> | |
<header id="header-section"> | |
<h1 id="title"> | |
School to Newsletter survey | |
</h1> | |
<p id="descripltioln"> | |
Lastly, we’ll drag and drop a button and edit the text to “Add to cart” and link it up to a fresh new screen. | |
</p> | |
</header> | |
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
<main id="main"> | |
<header> | |
<h1 id="title">Nelson Mandela</h1> | |
<h3>A man guided with hope, not fear.</h3> | |
</header> | |
<div id="img-div"> | |
<img src="https://miro.medium.com/max/990/1*4q3MqQCFB_gy_ckqz6gomQ.jpeg" alt="nelson mandela" id="image"> | |
<span id="img-caption"> | |
Photo Credit: Boston Big Picture | |
</span> |