Skip to content

Instantly share code, notes, and snippets.

View singhayushh's full-sized avatar
🌃
depresso

Arc singhayushh

🌃
depresso
View GitHub Profile
@singhayushh
singhayushh / backend.md
Created July 31, 2023 20:24
Scratchpad for explaining backend

Jargons in backend

  1. request response
  2. route
  3. controller
  4. service
  5. middleware

Request

GET POST PUT PATCH DELETE

Meta + T - Terminal Emulator
Meta + F - File Manager
Meta + W - Web browser
Meta + Up - Maximize
Meta + Down - Unmaximize
Meta + Left - Maximize left
Move + right - Maximize right
Alt + F6 - Toggle maximize
@singhayushh
singhayushh / git_started.md
Last active January 27, 2021 11:48
Getting started with open source contribution in GitHub

Hello, In this short guide, I will try to jot down everything that you need to know to start contributing to open source projects.

If you are looking for some other write-ups, click here and choose any.

What are open source projects?

Open source projects are those projects which are not only free to use, but are also free to read, edit or distribute (the code). To know if any project is open sourced or not, you need to go through the license the project has. You can know more about some standard open source licenses from here. In general, projects with the MIT license or the Unlicense have the least restrictions for you to edit, use or modify the project code.

How to get started with open source contribution?

@singhayushh
singhayushh / done.js
Created December 19, 2020 05:33 — forked from v3rse/done.js
A simple command line todo list app written using Node.js. Run using `node ./done.js` or create an alias `alias done=node ./done.js`
//This is a simple command line todo list app
//Features
//-create todo item
//-list todo item
//-check todo item off list
//-delete todo item
var fs = require('fs');
@singhayushh
singhayushh / connectingMongoDB.md
Last active February 3, 2024 15:24
Connecting MongoDB Atlas

Here's how to create a free cluster and connect it to your project using the connection string

  1. Create an account on MongoDB Cloud Atlas
  2. You will be prompted right away to create a new project and org. You may leave all values as default and click Continue.
  3. Three cards will show up next asking you to choose a cluster. Select the Shared Cluster - that's the one which is free.
  4. The next screen is about details of the cluster. Make sure M0 Cluster Tier is selected. You may leave all values as default and click on Create Cluster
  5. Wait for some time for the cluster to get ready and then click on Connect.
  6. First thing you need to add it IP Address. Select Add your current IP Address if you are working on the project yourself only or Allow Access from Anywhere. You may even manually add IP Addresses by clicking on Add a different IP...
  7. Next up is Database user creation. You need to enter a username and password. For explanatory purposes, say I ad
@singhayushh
singhayushh / StatusCodes.md
Last active July 21, 2020 16:08
About some of the most used HTTP Status Codes

The 200 Family - Everything's Good

  1. 200 - denotes Successful Operation, used mainly in response of a get request.
  2. 201 - denotes Seccessful Creation, mostly used in response of a post request for creation of some resource on the server.
  3. 206 - denotes Partial Content, mostly used when partial chunk of data is requested through the server.

The 400 Family - Error on client side

  1. 400 - Bad Request, occurs when the server cannot understand the request sent.
  2. 401 - Unauthorized, occurs when the authorization for accessing some content is incorrect
  3. 403 - Forbidden, occurs when inaccessible resource is tried to be accessed in the request.
  4. 404 - Not Found, occurs when the request tries to access some non existent resource.
@singhayushh
singhayushh / terminologies.md
Last active February 11, 2023 06:15
Some basic terminologes from Japanese martial arts

Some of the terminlogies from eastern martial arts:

  • Uchikiru is to complete your strike without regret

  • Zanshin is choosing to live your life intentionally and acting with purpose rather than mindlessly falling victim to whatever comes your way.

  • Ki ken tai ichi is the unity of the mind, sword and the body

  • Katas is the exercise where the novice repeatedly tries to emulate a master.

  • Kumite is a supervised exercise between two students, or between a student and a master

  • Koans are questions without absolute answers which are used to break down assumptions and reveal underlying truths.