Skip to content

Instantly share code, notes, and snippets.

View shivam1283's full-sized avatar
🎯
Focusing

Shivam Yadav shivam1283

🎯
Focusing
View GitHub Profile
@shivam1283
shivam1283 / excercises.md
Last active May 18, 2021 19:12
Learning excercises #react

Exercises

  • Infinite scroll and pagenation Link
@shivam1283
shivam1283 / 1PromisesAndCallback.md
Last active December 21, 2022 08:31
JS concepts

Callback

function loadScript(src) {
  // creates a <script> tag and append it to the page
  // this causes the script with given src to start loading and run when complete
  let script = document.createElement('script');
  script.src = src;
  document.head.append(script);
}
@shivam1283
shivam1283 / leetcodeQuestions.md
Created May 20, 2021 20:31
Leetcode important questions #interview #coding
@shivam1283
shivam1283 / androidSetup.md
Last active August 1, 2022 07:39
Android studio set up
@shivam1283
shivam1283 / HubermanLecture1.md
Last active February 19, 2022 15:21
[LIFE COACHING] Video summary

How Your Nervous System Works & Changes Link

Brain is really a map of experience.

5 functions of nervous system

1. Sensation

  • These are non negotiable.

2. Perception

  • Take what we are sensing and focus on it, make sense out of it, to explore it , to remember it. Eg: Putting your focus on the feet and feel it.
@shivam1283
shivam1283 / 1.setup.md
Last active July 16, 2021 19:14
[TS tutorial] Notes #react #js #ts

Initial

  1. install tsc compliler
  2. npm install -g typescript
  3. create a folder with an index.html
  4. npm init
  5. npm install --save-dev liteserver
  6. create index.ts
  7. run tsc index.ts

To automatically reload

@shivam1283
shivam1283 / 1introduction.md
Last active May 7, 2022 10:26
[Javascript design patterns] #js #development

Pattern is a reusable solution to a commonly occuring problem. A pattern is a reusable solution that can be applied to commonly occurring problems in software design. templates for how we solve problems

Types of design pattern

  1. Creational pattern
  2. Structural pattern
  3. Behavioural pattern

Benefits

@shivam1283
shivam1283 / 1.Setup.md
Last active March 9, 2022 12:38
[Django setup] django setup and tutorials

Install drf

pip install djangorestframework

Create project

django-admin startproject <project name>

Initial migrations

python manage.py migrate

Run server

@shivam1283
shivam1283 / linkTag.md
Last active March 10, 2022 11:11
[Web Performance]

preload

<link rel="preload" href='./style.css' >

Advantages

  • The preload property enables browser to load resources tha will be required very soon in the page rendering lifecycle, before the main rendering kicks in.
  • The call for resources can be prioritised.
  • Store in the cache for future requests.