Skip to content

Instantly share code, notes, and snippets.

@m4rrc0
m4rrc0 / meta-tags.md
Last active February 17, 2024 09:29 — forked from whitingx/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@m4rrc0
m4rrc0 / rating.js
Created June 9, 2022 10:25
rating function ★★★☆☆
// Credits: https://twitter.com/builderio/status/1534246051892408320
const rating = stars => '★★★★★☆☆☆☆☆'.slice(5 - stars, 10 - stars);
// OR
const rating = max => star => "★".repeat(Math.min(star, max)).padEnd(max,"☆");
// It caps the value to max then gets an input number of stars
// Examples:
@m4rrc0
m4rrc0 / gist:365f438bcd40a8f9c6d821845840bf43
Created February 25, 2019 00:41 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
  1. 'Undock' the console in separate window
  2. Press CTRL+0