This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------- | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm init -y | |
npm install -D tailwindcss @tailwindcss/typography @tailwindcss/forms @tailwindcss/line-clamp @tailwindcss/aspect-ratio | |
npx tailwindcss init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = ' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def adder(*num): | |
sum = 0 | |
for n in num: | |
sum = sum + n | |
print("Sum:",sum) | |
adder(3,5) | |
adder(4,5,6,7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## How to setup | |
Clone repo the repo | |
``` | |
git clone -b <BRANCH_NAME> <REPO_URL> <FOLDER_NAME> | |
``` | |
Install required packages |
OlderNewer