A list for resources I come across that I can share with others in the community, might be helpful for the TOP curriculum, or that I just want to personally look into more.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This snippet will edit the color of the unresolved nodes / uncreated notes in graph view. */ | |
body { | |
--graph-node-unresolved: rgb(231, 132, 237); | |
} |
npm install --save-dev --save-exact prettier
in the repo you’re working on so on a per project basisecho {}> .prettierrc.json
to create a file that is needed to recognise this repo uses prettier- create a
.prettierignore
file withtouch .prettierignore
and put files to be ignored in it based on your ESLintignore and/or gitignore file (gitignore would be recommended to copy over) - 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/
- Fork the odin-bot-v2 repository and use the
git clone
command in your terminal to clone it to your machine cd
into the cloned repository and runnpm install
to install the dependencies- create a new
.env
file in the repository with the commandtouch .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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" */ |