Skip to content

Instantly share code, notes, and snippets.

@jpsantos7
jpsantos7 / bootstrap-5-sass-mixins-cheat-sheet.scss
Created February 20, 2024 10:57 — forked from anschaef/bootstrap-5-sass-mixins-cheat-sheet.scss
All New Bootstrap 5 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 5 Sass Mixins [ Cheat sheet ]
// Updated to Bootstrap v5.1.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/main/scss/mixins
// @see https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss
/* -------------------------------------------------------------------------- */
// Options
// @see https://getbootstrap.com/docs/5.1/customize/options/
@jpsantos7
jpsantos7 / git-pushing-multiple.rst
Created January 11, 2023 19:36 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@jpsantos7
jpsantos7 / inlineSvg.js
Created April 21, 2021 17:55 — forked from motrdevua/inlineSvg.js
inline svg from img src
/**
* Inline svg
*/
const allImg = document.querySelectorAll('img');
for (let i = 0; i < allImg.length; i++) {
const imgSrc = allImg[i].getAttribute('src');
if (imgSrc.split('.')[1] === 'svg') {
let myRequest = new Request(imgSrc);
@jpsantos7
jpsantos7 / metatags.html
Last active March 4, 2021 16:33
Basic HTML structure with meta tags
<!DOCTYPE html>
<html lang="en"><!-- Your site's language -->
<head>
<!-- Essential -->
<meta charset="UTF-8" /><!-- must come before any of the written content -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><!-- RWD -->
<!-- Primary Meta Tags -->
<title>My awesome page title</title>
<meta name="description" content="My Awesome site's description" />