Posts

Git And Github

 ------------------------------------ GIT ----------------------------------------- ===> Some basic Knowledge for git and github -> by default the branch is main but u can making a new one by using the code "git branch branchName" this new brach is kind a variable that have data of main branch. -> HEAD in git is kinda pointer in git because it usually point from main branch to other branches. by default the head is on the main, it could be represented by *, for eg -> main*   -> one pull request can only assocaiated with one branch, if u want to make another pull request then make another branch. ->  ->  ->  ->  ===> Some common commands ls -> list all the directory  cd -> change directory clear -> clearing the terminal of commands  mkdir fileName -> make directory rmdir fileName -> delete directory rm -rf fileName -> for removing the file not the folder vi fileName -> for writing something in...

GSAP notes

 <------------------------------------- GSAP IMPS -----------------------------------------> # Randoms 1. Remember to use the useEffect and useRef(to take the reference of that particular block link div,etc) hook while using GSAP library.    Example:-         const containerRef = useRef(null);         useEffect(() => {             const tl = gsap.timeline();               tl.to(containerRef.current, {               x: 800,               duration: 1,               delay: 2,               backgroundColor: "green",               rotate: 270,               borderRadius: "50%",               // both properties are requi...

ReactJs Notes

---------------------------------------------------- IMPORTANTS --------------------------------------------------- 1. 🧠  useMemo hook Firstly lets understand what is the meaning of Memo/Memoization -> memo means is that finding the solutions and storing them at same time. ie. let suppose teacher ask a student that what is 3*4 then firstly student will calculate it then store it in his memory and whenever teacher ask the same question again then student dont need to calculate it again, he can answer it right away because the answer is already stored in his memory. useMemo works pretty much on the same concept. useMemo hook is the way to prevent the unnessary expensive tasks/operation happening on the webapp. It stores the previous value of expensive function and prevent that function from running again and again on each re-rendering. Let me give u an example:- let suppose we have a page which only have 2 things one is the button which is increasing the count by 1, whenever it i...

HTML NOTES

-> Please use live server or live preview in vs code to see the file and examples properly -> For learning new html tags and commands must visit - https://developer.mozilla.org/en-US/docs/Web/HTML/Element -> Try to use CSS rather than using different tags ###################### HTML CHAPTER 1 - INTRODUCTION ###################### HTML - hyper text makeup language. html is the language of web use to create a website. we can use html tags to define looks and fell of website. with understanding of tags and how to put together, we can create a beautiful website easily. ## THEN WHY CSS AND JAVASCRIPTS html is use for defining the layout of a page - a parabone page structure. CSS is used to add desining of a page created using html.  JavaScripts is used to program logic for the page layout eg what happend when a hovers on a txt, when to hide or show elements etc. # A EXAMPLE HTML = car body(only metal) CSS = car paint, decoration etc. JAVASCRIPTS = car engine + interior logic w...

PYTHON NOTES

 (python notes) - IMPORTANT ##BASICS print - for print after print use this ("") to print some thing if you want to print multi line then use (''' - like this                                          you can do - ''') # - this is for comment ''' - multi line comment - ''' ##DATA TYPE THERE ARE ONLY 5 TYPES OF DATA TYPE a = "faraz" this is know as string (basically a set of character) there no need of "zxy" u can use 'zxy' b = 786 this is know as integer (basically a set of number) c = 78.6 this is know as floating point number (basically a set of numbers with decimal(point)) d = true or false it is know as boolians (basically any valuse is true or false it tells us)        e = none it is know as none (basically if there is nothing so it is none)     if you want to use it so you can print it by the command print(a) or print(b) or print(c) or pri...