Welcome! π Here, we celebrate our love for coding by sharing our favorite code snippets in various programming languages. Whether it's a simple "Hello, World!" program or a complex algorithm or data structure, this contest which is hosted by Shreya Malogi, is the perfect place to showcase your coding passion. π
Here's a quick overview of the project structure:
C#
- Folder for C# code snippetsC++
- Folder for C++ code snippetsC
- Folder for C code snippetsGo
- Folder for Go code snippetsJava
- Folder for Java code snippetsJavaScript
- Folder for JavaScript code snippetsPHP
- Folder for PHP code snippetsPython
- Folder for Python code snippetsLICENSE
- The project's license fileREADME.md
- You are here!
We encourage you to contribute your favorite code snippets to this repository. It's a great way to share your knowledge and learn from others. Follow these steps to make your contribution:π€
Click the "Fork" button at the top right corner of this repository to create your own fork.
Clone the forked repository from your account to your local machine:
git clone https://github.com/codemacrocosm/Dev-a-Thon-21.git
Navigate to the folder corresponding to the programming language of your code snippet (e.g., C#
, Python
, etc.).
Add your code snippet file to the respective folder.
Commit your changes with a descriptive commit message:
git add .
git commit -m "Added my favorite code snippet in [Language]"
Push your changes to your forked repository and then create a pull request:
- Go to the original repository.
- Click on the "New Pull Request" button.
- Provide a meaningful title and description for your pull request.
- Click "Create Pull Request" to submit your contribution.
That's it! π Your contribution will be reviewed and, once approved, merged into the main repository.
Feel free to share your favorite code snippet along with a brief comment explaining why it's your favorite. We value readability and proper indentation in code snippets. Here's an example:
# This is my favorite code snippet because it calculates the Fibonacci sequence.
def Fibonacci(n):
if n < 0:
print("Incorrect input")
elif n == 1:
return 0
elif n == 2:
return 1
else:
return Fibonacci(n - 1) + Fibonacci(n - 2)
print(Fibonacci(100))
If you enjoyed this repo or find them inspiring, don't forget to β the repository! Your support is appreciated.
This project is licensed under the MIT License - see the LICENSE file for details. π
MIT License
Copyright (c) 2021 CodeMacrocosm
A big thanks to all the creative minds who have contributed.
Now, let the creation begin! π¨
Happy coding! ππ
Maintained by @shreyamalogi π
Thanks for contributing ! We appreciate your support and look forward to seeing your awesome code snippets. πβ¨