Skip to content

Instantly share code, notes, and snippets.

View iKunalmathur's full-sized avatar
🤌
Too Many Bugs

Kunal Mathur iKunalmathur

🤌
Too Many Bugs
View GitHub Profile
import { useState } from "react";
// Parent Component
export default function Parent() {
// a variable with default value of 0
let a = 1;
return (
<div>
<h1>👪 Parent Component</h1>
<Child a={a} />
@iKunalmathur
iKunalmathur / .bashrc
Last active July 5, 2023 07:42
Bash aliases
# ----------------------
# Artisan Command Aliases
# ----------------------
alias pa='php artisan'
alias pas='php artisan serve'
alias pao='php artisan optimize'
alias paoc='php artisan optimize:clear'
# ----------------------
# npm Command Aliases
@iKunalmathur
iKunalmathur / 1-CLI
Last active February 12, 2022 07:07
Tailwind 3 Starter 2022
npm init -y
npm install -D tailwindcss @tailwindcss/typography @tailwindcss/forms @tailwindcss/line-clamp @tailwindcss/aspect-ratio
npx tailwindcss init
@iKunalmathur
iKunalmathur / index.html
Last active August 31, 2022 15:13
Assignment 1 : create a simple webpage with cards arranged in horizontal fashion with image, text and a button.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML & CSS Essentials</title>
<style>
.container {
@iKunalmathur
iKunalmathur / index.html
Created September 1, 2022 15:47
Assignment 2 : create a beautiful fixed header with navigation links
<!-- Assignment 2 : create a beautiful fixed header with navigation links -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML & CSS Essentials</title>
@iKunalmathur
iKunalmathur / main.py
Created September 1, 2022 15:53
Using for loop please print all the prime numbers between 1-200 using FOR LOOP AND RANGE function
for Number in range (1, 200):
count = 0
for i in range(2, (Number//2 + 1)):
if(Number % i == 0):
count = count + 1
break
if (count == 0 and Number != 1):
print(" %d" %Number, end = ' ')
@iKunalmathur
iKunalmathur / index.html
Created September 2, 2022 16:55
basic e-com homepage
<!-- Assignment 3 : final project -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>E Commerce</title>
@iKunalmathur
iKunalmathur / args.py
Created September 3, 2022 17:31
how *ARGS and **KWARGS work in PYTHON FUNCTIONS
def adder(*num):
sum = 0
for n in num:
sum = sum + n
print("Sum:",sum)
adder(3,5)
adder(4,5,6,7)
@iKunalmathur
iKunalmathur / laravel_boot.sh
Last active September 5, 2022 15:18
Laravel Project Setup
# Clone Project
git clone <git_url> <folder_name>
# Install Packages
composer install --no-scripts --no-dev
composer install --optimize-autoloader --no-dev
# Folder Permissions
sudo chmod 777 -R bootstrap
## How to setup
Clone repo the repo
```
git clone -b <BRANCH_NAME> <REPO_URL> <FOLDER_NAME>
```
Install required packages