Skip to content

Instantly share code, notes, and snippets.

View alsongarbuja's full-sized avatar
☄️
Nice seeing you😁

Alson Garbuja alsongarbuja

☄️
Nice seeing you😁
View GitHub Profile
@alsongarbuja
alsongarbuja / DOM.js
Created March 7, 2022 08:30
Utility functions you can copy paste in your JS project
/* -- DOM utility functions -- */
// Create a DOM element with contents, class names and id
/*
* @params
* elem {string} @required [name of tag]
* content {any} [can be anything usually string content or another DOM element - optional]
* classes {string[]} [list of classname to give to the element - optional]
* id {string} [id to give to the elemnt - optional]

Initailizing/Creating a new git repository

Used to create a new git repository

git init

Adding files or folders to the repo

@alsongarbuja
alsongarbuja / base.css
Created February 27, 2022 18:17
Base CSS to copy in all your web projects from now on.
/* Importing poppins font from google fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,400&display=swap');
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}