absolute_url

Basics of React | Pratik Kabade | 20 October 2022

React is a free and open-source front-end JavaScript library for building user interfaces based on UI components. It is maintained by Meta and a community of individual developers and companies. Content Create Organizational Structure Router CSS React Props Condition Array useState API From 1 Create TypeScript Template npx create-react-app my-app --template typescript Default Template npx create-react-app my-app 2 Organizational Structure public index.html src components navbar BarComponents NavContainer Security GoogleSignIn GoogleSignOut config error models pages routes AppRoute stylesheet App.css App index .gitignore package.json package-lock.json README.md tsconfig.json 3 Router import { BrowserRouter, Routes, Route } from "react-router-dom"; import { NavContainer } from...

read more

absolute_url

Basics of Firebase | Pratik Kabade | 19 October 2022

Firebase is a set of hosting services for any type of application. It offers NoSQL and real-time hosting of databases, content, social authentication, and notifications, or services, such as a real-time communication server. Content Get Started Sign In Sign Out Create View 1 Get Started install npx install firebase dependancies npx create-react-app my-app 2 Sign In const navigate = useNavigate(); const signInWithGoogle = async () => { const res = await signInWithPopup(auth, provider); navigate("/profile"); }; return ( <> <button className='GoogleSignIn' onClick={signInWithGoogle}> <img src='https://raw.githubusercontent.com/dependabot-pr/Static-Files/main/Assets/Logo/Google.svg' alt='google logo' className='GLogo' /> <div className='GText'>Sign in with Google</div> </button> </> ); 3 Sign Out const navigate...

read more

absolute_url

Syntax of HTML | Pratik Kabade | 15 September 2022

read more

absolute_url

Syntax of Python | Pratik Kabade | 15 June 2022

Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured, object-oriented and functional programming. Content Variables Numbers String List Dictionary Loop Functions Classes & Objects Inheritance 1 Variables Assign1 x = "Orange"; y = z = "Banana" print(x) print(y) print(z) #Orange #Banana #Banana Assign2 x = 5; y = "John" print(type(x)) #<class 'int'> print(y, "is", x) #John is 5 Assign3 def myfunc(): print("Name is " + y) myfunc() #Name is John 2 Numbers Random import random print(random.randrange(1, 10)) #1...

read more

absolute_url

Syntax of Java | Pratik Kabade | 10 June 2022

Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. Hello World package src; public class HelloWorld { public static void main(String[] args) { System.out.println("HelloWorld"); } } Content Variables String Numbers Loop Array Method Class OOP Constructors Modifiers Encapsulation Inheritance Polymorphism Abstraction Interface Enum 1 Variables int myNum = 5; // Integer float myFloatNum = 5.99f; // Floating no. char myLetter = 'D'; // Character boolean myBool = true; // Boolean char myVar1 = 65; // Character String myText = "Java"; // String int x, y, z; x = y =...

read more

absolute_url

Syntax of MySQL | Pratik Kabade | 05 June 2022

PHP is a general-purpose scripting language geared toward web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994. The PHP reference implementation is now produced by The PHP Group. MySQL Help with SQL commands to interact with a MySQL database MySQL Locations Mac /usr/local/mysql/bin Windows /Program Files/MySQL/MySQL *version*/bin Xampp /xampp/mysql/bin Add mysql to your PATH # Current Session export PATH=${PATH}:/usr/local/mysql/bin # Permanantly echo 'export PATH="/usr/local/mysql/bin:$PATH"' >> ~/.bash_profile On Windows - https://www.qualitestgroup.com/resources/knowledge-center/how-to-guide/add-mysql-path-windows/ Login mysql -u root -p Show Users SELECT User, Host FROM mysql.user; Create User CREATE USER 'someuser'@'localhost' IDENTIFIED BY 'somepassword'; Grant All Priveleges On All Databases...

read more

absolute_url

Syntax of PHP | Pratik Kabade | 01 June 2022

PHP is a general-purpose scripting language geared toward web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994. The PHP reference implementation is now produced by The PHP Group. Content Basics Array Class String Constants If Else Switch Loops Numbers 1 Basics $txt = "PHP"; echo "This is $txt! <br>"; $x = 5; $y = 4; echo "Addition is: "; echo $x + $y; print "<br><a>PHP is Fun!</a>"; 2 Array var_dump $cars = array("Volvo","BMW","Toyota"); var_dump($cars); define define("cars", [ "Alfa Romeo", "BMW", "Toyota" ]); echo cars[0]; 3 Class class Car { public $color; public $model; public function __construct($color,...

read more

absolute_url

Commanding Git | Pratik Kabade | 29 May 2022

Git is free and open source software for distributed version control: tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development. Git Syntax 0. git config Usage: git config –global user.name “[name]” Usage: git config –global user.email “[email address]” This command sets the author name and email address respectively to be used with your commits. 1. git init Usage: git init [repository name] This command is used to start a new repository. 2. git clone Usage: git clone [url] This command is used to obtain a repository from an...

read more

absolute_url

Syntax of HTML | Pratik Kabade | 15 May 2022

The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript. Table of Contents Table of Contents Minimal page Head Text content Headings Paragraphs Formatting Quotes Content Links Images Blocks Lists Unordered list Ordored list Definition list Tables Basic table Advanced table Forms HTML5 Semantic Page layout New elements Minimal page <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Title</title> </head> <body> <!-- content here --> </body> </html> Head <head> <title>Title</title> <base href="base-url" />...

read more