Skip to content

Instantly share code, notes, and snippets.

View ManonLef's full-sized avatar
🤍

Manon ManonLef

🤍
View GitHub Profile
@ManonLef
ManonLef / obsidianSnippets.css
Created May 21, 2024 07:34
Some Obsidian.md styling snippets
/* This snippet will edit the color of the unresolved nodes / uncreated notes in graph view. */
body {
--graph-node-unresolved: rgb(231, 132, 237);
}
@ManonLef
ManonLef / read.md
Last active May 27, 2023 23:16
Personal Reading and Learning List
@ManonLef
ManonLef / ESLint-and-Prettier-Workflow-VSCode.md
Created May 17, 2023 08:54
a workflow to set up ESLint and Prettier in VSCode

Workflow ESLint and Prettier VSCode Updated: feb 2023

Setting up Prettier

  1. npm install --save-dev --save-exact prettier in the repo you’re working on so on a per project basis
  2. echo {}> .prettierrc.json to create a file that is needed to recognise this repo uses prettier
  3. create a .prettierignore file with touch .prettierignore and put files to be ignored in it based on your ESLintignore and/or gitignore file (gitignore would be recommended to copy over)
  4. install Prettier extension in VSCode to be able to format using a shortcut or set it up to run on save etc

For more info on setting up a gitignore file: https://www.freecodecamp.org/news/gitignore-file-how-to-ignore-files-and-folders-in-git/

@ManonLef
ManonLef / Getting-Started-Odin-Discord-Bot.md
Created May 17, 2023 08:39
Setting up your own Odin-bot - a guide written for "The Odin Project" wiki

Initial Setup

  1. Fork the odin-bot-v2 repository and use the git clone command in your terminal to clone it to your machine
  2. cd into the cloned repository and run npm install to install the dependencies
  3. create a new .env file in the repository with the command touch .env

You will need to enter a few things in the .env file. You can find an example file called .env.sample of which you can copy the entire contents into your newly generated .env file. At a minimum you should replace the xxxxx's for the below key and ID's and we'll explain how to retrieve those in the next sections.

  • DISCORD_API_KEY
@ManonLef
ManonLef / obsidian-web-clipper.js
Created May 31, 2022 17:11 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */