Skip to content

Instantly share code, notes, and snippets.

@shivam1283
shivam1283 / linkTag.md
Last active Mar 10, 2022
[Web Performance]
View linkTag.md

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.
@shivam1283
shivam1283 / 1.Setup.md
Last active Mar 9, 2022
[Django setup] django setup and tutorials
View 1.Setup.md

Install drf

pip install djangorestframework

Create project

django-admin startproject <project name>

Initial migrations

python manage.py migrate

Run server

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

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 Jul 16, 2021
[TS tutorial] Notes #react #js #ts
View 1.setup.md

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 / HubermanLecture1.md
Last active Feb 19, 2022
[LIFE COACHING] Video summary
View HubermanLecture1.md

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 / androidSetup.md
Last active Apr 1, 2022
Android studio set up
View androidSetup.md

react-native link

@shivam1283
shivam1283 / leetcodeQuestions.md
Created May 20, 2021
Leetcode important questions #interview #coding
View leetcodeQuestions.md
View 1PrototypalInheritance.md

[[Prototype]]

In JavaScript, objects have a special hidden property [[Prototype]] (as named in the specification), that is either null or references another object. That object is called “a prototype”:
Image

@shivam1283
shivam1283 / excercises.md
Last active May 18, 2021
Learning excercises #react
View excercises.md

Exercises

  • Infinite scroll and pagenation Link