To contribute to this repository and add cool code snippets, the following pointers should be kept in mind to avoid merge conflicts and other problems such as a bad PR while contributing:
- Create a markdown file with a suitable name according to your snippet. Make sure the code snippet is not already in the codebase and is in the correct sub-directory.
- Write appropriate title and sub-titles following the style in the already existing files inside the folders.
- You can add a Description sub-heading if you want to provide an explanation!
- Add the snippet and output in the appropriate blocks i.e. Code and Output. For example, for a python snippet:
## Code ```python print("A cool code snippet here") ``` ## Output ```console A cool code snippet here ``` - Add a Contributed By sub-heading at the end of the file and add your name, GitHub username and institute name in a tabular format in the markdown file.
- If the output of the snippet is an image/gif, then only create a folder and shift the markdown file along with the output image in it.
- Do not add 2 different snippets in a single PR. Create a new PR from a new branch for that.
- Do not add pure code files, add your snippets in the code blocks in the markdown file.
To connect with the community, join the DSC MAIT Telegram Group.