Skip to content

Instantly share code, notes, and snippets.

shivam1283 /
Last active Mar 10, 2022
[Web Performance]


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


  • 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 /
Last active Mar 9, 2022
[Django setup] django setup and tutorials

Install drf

pip install djangorestframework

Create project

django-admin startproject <project name>

Initial migrations

python migrate

Run server

shivam1283 /
Last active May 7, 2022
[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


shivam1283 /
Last active Jul 16, 2021
[TS tutorial] Notes #react #js #ts


  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 /
Last active Feb 19, 2022
[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 /
Last active Apr 1, 2022
Android studio set up

react-native link

shivam1283 /
Created May 20, 2021
Leetcode important questions #interview #coding


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”:

shivam1283 /
Last active May 18, 2021
Learning excercises #react


  • Infinite scroll and pagenation Link