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

The box model

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;
  }
@ToniMaunde
ToniMaunde / init.lua
Last active April 18, 2025 13:43
My neovim lua configuration
-- 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"
@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