Skip to content

udoyhasan/useful-code-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👨‍💻Hactoberfest 2022🎃

Starter Project for hactoberfest 2022

📌 Introduction

This is an open source project for beginners to contribute to open source and get a free t-shirt from hacktoberfest 2022. You can contribute to this project by adding new code snippets.

📌 How to contribute

  • Star this repository
  • Fork this repository
  • Clone the forked repository
  • Create a new branch
  • Add your code snippet
  • Commit and push the changes
  • Create a pull request
  • Provide a description of newly added code snippet
  • Wait for your pull request to be merged

Note: Don't add existing code snippet. Try to add a new code snippet. But if you see that the existing code snippet is in another programming language you can then submit it in another programming language

📌 Help

📌 How to star a repository

  • Click on the star button on the top right corner of the repository

📌 How to fork a repository

  • Click on the fork button on the top right corner of the repository

📌 How to clone the forked repository

  • Go to the forked repository
  • Click on the code button
  • Copy the url
  • Open the terminal
  • Run the command git clone <url>
  • Run the command cd <repository name>
  • Run the command `git remote add upstream

📌 How to create a new branch

  • Go to the forked repository
  • Click on the main branch
  • Click on the new branch button
  • Add a branch name
  • Click on the create branch button

📌 How to add your code snippet

  • Check if the language folder exists
  • If exists, add your code snippet to the folder with the file name as the snippet name and the file extension as the language extension (eg: hello_world.py). If the folder doesn't exist, create a new folder with the language name

📌 How to create a pull request

  • Go to the forked repository
  • Click on the compare and pull request button
  • Add a title and description
  • Click on the create pull request button

Happy Hacking! 🎃