Skip to content

Instantly share code, notes, and snippets.

View ToniMaunde's full-sized avatar
😀
trying to make a 2 - 1 🥸

Milton David ToniMaunde

😀
trying to make a 2 - 1 🥸
View GitHub Profile
const users = [
{
id: 0,
status: "inactive",
username: "hobbit"
},
{
id: 1,
status: "active",
username: "hobbit 2"
@ToniMaunde
ToniMaunde / connectivityStatus.ts
Created March 26, 2022 11:40
utility code a friend shared with me to check the connectivity status of the user
const isOnline = async ():Promise<boolean> => {
// Make a request to any host as long as it is a URL and not an IP in order to check DNS too
try {
await fetch("checkip.amazonaws.com");
return true;
} catch (error) {
return false;
}
};
@ToniMaunde
ToniMaunde / README-Template.md
Created August 19, 2019 07:24 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites