Skip to content

Instantly share code, notes, and snippets.

View chkilel's full-sized avatar
🇵🇸
... Coding awesome stuff

Adil Chehabi chkilel

🇵🇸
... Coding awesome stuff
View GitHub Profile
// Concat two arrays of objects and keep unique values
// Values from arr1 will be kept if exist in arr2, comparison made on `key`
// object {key: 1, label: '..', ....}
const unique = [...arr1, ...arr2].filter(
(item, index, self) => self.findIndex((t) => t.key === item.key) === index
)
@chkilel
chkilel / fish_install.md
Created August 15, 2022 15:59 — forked from gagarine/fish_install.md
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS (Intel and M1)

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.

Note that you need the https://brew.sh/ package manager.

You can also download the fish app from their website. I do recomand using brew because update are easier.

Install Fish

@chkilel
chkilel / meta-tags.md
Created October 15, 2023 09:30 — forked from lancejpollard/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 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">
<meta name="language" content="ES">