This is a good rule to add to a reset that sets the box-sizing of all elements and pseudo elements to border-box. This results in a predictable CSS authoring experience.
*,
*::before,
*::after {
box-sizing: border-box;
}
-- Set <space> as the leader key | |
-- See `:help mapleader` | |
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used) | |
vim.g.mapleader = ' ' | |
vim.g.maplocalleader = ' ' | |
-- [[ Install `lazy.nvim` plugin manager ]] | |
-- https://github.com/folke/lazy.nvim | |
-- `:help lazy.nvim.txt` for more info | |
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' |
const users = [ | |
{ | |
id: 0, | |
status: "inactive", | |
username: "hobbit" | |
}, | |
{ | |
id: 1, | |
status: "active", | |
username: "hobbit 2" |
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; | |
} | |
}; |