Posts

Showing posts from May, 2024

Dna

 Same & result 

time dilation with functions

 time dilation with functions Trigonometry purpose with functions Electrostatic force 

Mathematics

 Business math with trigonometry Business math with function

Love

 Mohabbat Sab kuch islami An quran o hadees k mutabiq Jo dil me Aey wohi byan krna Sb kuch positive lena Haqeeqat ko tasleem krna Wafadari Eman

Next. Js cheatsheet

 https://gist.github.com/misostack/85b1a85212257d0d2a006a381198488e?fbclid=IwZXh0bgNhZW0CMTEAAR3HgudGbICbgiNaI-TQafYHCp_Z2-UFTs3vJssz5ddC6BurWCf6CHbRZx0_aem_AYtiKW3_Ci9fej-Qj4GLlV5_vCkDJME5UmWIlEn1XzRO6B_Zu98lT5GfDBoyNlKYLaUcxYCAqmSyew-wZqWzE46e

Faizan saltanat

Pti ♥️ government Voting machine 1.signature 2.Ballet 3.Scanning card 4.Result Energy generation The electrons in silicon h@ve no freedom of movement Energy: When light strikes solar electrons are free to move through Sillicon When you injected boron Through doping the n side becomes positively charged and p become negativly charged silicon are doped and produces more heat Solar produce Infrared radiations is produced at night by solar Infrared radiation is produced @t night Thermoheat energy is produced at night (little)Infrared radiations Waves https://www.youtube.com/watch?v=-bVi1w0m8x8 Pak government structure 1.Legislative :two branches - writing & passing laws Equality & proportional(balanced)  Senate-consult tax laws Consults mistakes of president      2.Executive  PM ki working team (policies, constitutional laws, improve trade)      3.judicial Judges Tells constition Congress 435 elective officials I. Consult tax laws II. Consult ...

React Js cheat sheet

 https://devhints.io/react

Javascript cheatsheet

 https://htmlcheatsheet.com/js/

Intellij

 Intellij basics public class Main {   public static void main(String[] args) {     int myNum = 5;               // integer (whole number)     float myFloatNum = 5.99f;    // floating point number     char myLetter = 'D';         // character     boolean myBool = true;       // boolean     String myText = "Hello";     // String         System.out.println(myNum);     System.out.println(myFloatNum);     System.out.println(myLetter);     System.out.println(myBool);     System.out.println(myText);   } }

Components

 Components Could Reuse it. Project files Easy to use Summarize Nest components Makes less errors 

React cheatsheet

 https://devhints.io/react

Php del

 Del php backend <?php   $servername = "localhost";  $username = "root";  $password = "";  $dbname = "project";      $conn = new mysqli($servername, $username, $password, $dbname); $name = $_POST['name'];  $pro_id = $_POST['product_id'];  $des = $_POST['description'];  $weight = $_POST['weight'];  $price = $_POST['price']; $sql = "INSERT INTO product (name, product_id, description, weight,price ) VALUES ('$name', '$pro_id', '$des','$weight','$price')"; if (mysqli_query($conn, $sql)) {     echo "New record created successfully";   ?>     <script>         window.history.go(-1);     </script>   <?php   } else {     echo "Something went wrong";   } ?>

Php

 Del php backend <?php   $servername = "localhost";  $username = "root";  $password = "";  $dbname = "project";      $conn = new mysqli($servername, $username, $password, $dbname); $name = $_POST['name'];  $pro_id = $_POST['product_id'];  $des = $_POST['description'];  $weight = $_POST['weight'];  $price = $_POST['price']; $sql = "INSERT INTO product (name, product_id, description, weight,price ) VALUES ('$name', '$pro_id', '$des','$weight','$price')"; if (mysqli_query($conn, $sql)) {     echo "New record created successfully";   ?>     <script>         window.history.go(-1);     </script>   <?php   } else {     echo "Something went wrong";   } ?>

Nodejs

 Nodejs GET: To get a representation of a resource, use this method. POST: To generate fresh resources PUT: Used to update capabilities PATCH : Used to modify capabilities DELETE: To remove a resource indicated by a URL, use this command. OPTIONS: For a particular URL or server, request an allowed communication option. axios.get('https://example.com') .then(response => {console.log(response.data)}) .catch(error => {console.log(error)}) Dependency array  𝕹𝖕𝖒 𝖎 𝖓𝖆𝖝𝖎𝖔𝖘  Axios.get Faizan Imran - 29/10/2024 <!DOCTYPE html> <html lang="en"> <head>   <meta charset="UTF-8">   <meta name="viewport" content="width=device-width, initial-scale=1.0">   <title>Axios GET Request Example</title>   <!-- Add some CSS to style the output -->   <style>     #data {       margin-top: 20px;       font-family: Arial, sans-serif;     }   </style...

Json

 Json name age car

Json

 Functions Example. var functions = { 'sin' : function(x) { return Math.sin(x) }, 'pow' : function(x,y) { return Math.pow(x,y) } } _eval.setFunctions(functions) var formula = '{x} + 5'; var obj = {x:20}; var results = _eval(formula,obj); //results will be 25. Try it! JSON Object {"a":[1,2,3,4]} ... Functions Included for Demo. Functions Included for Demo sin(x) pow(x,y) max(a) len(a) sum(a)

Php

 Php short Edit Del Index

Connection

 Php connection <?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "database"; $conn =new mysqli($servername, $username, $password, $dbname ); if ($conn->connect_error){     die("connection failed: " . $conn->connect_error); } echo "connection successfully"; ?>

Cover

 Cover Position Repeat Background size:

Government

Pti ♥️ government Voting machine 1.signature 2.Ballet 3.Scanning card 4.Result Energy generation The electrons in silicon h@ve no freedom of movement Energy: When light strikes solar electrons are free to move through Sillicon When you injected boron Through doping the n side becomes positively charged and p become negativly charged silicon are doped and produces more heat Solar produce Infrared radiations is produced at night by solar Infrared radiation is produced @t night Thermoheat energy is produced at night (little)Infrared radiations Waves https://www.youtube.com/watch?v=-bVi1w0m8x8 Pak government structure 1.Legislative :two branches - writing & passing laws Equality & proportional(balanced) Senate-consult tax laws Consults mistakes of president     2.Executive PM ki working team (policies, constitutional laws, improve trade)     3.judicial Judges Tells constition Congress 435 elective officials I. Consult tax la...

Tides

 How Tides are formed P hogia airlock V volume T temperature = hot water right side =cool water left side

Components

 Usecontext provider consumer Context()  Component (A-D) { return(  <Div classname"box">(header)  <H1>component A<h1>menu </div> (footer) 

Global warming

 Global warming Ch4+NOx +deforestation >global warming Melting of arctic and antarctic of ice caps The melting of ice shows increase in poles of ice Global warming is leading to dominal effect to leading patterns Droughts Heat strokes Animals got extinction by climate change  Greenhouse gases - During the process of combustion, O2 reacts with glucose (C6H12O6, a form of sugar) to produce water and CO2. As the organic matter burns, chemical energy in the form of heat and light is released. C6H12O6+6O2→6CO2+6H2O+energy: Respiration, both on land and in the sea, is a key component of the global carbon cycle.

Pollution

 Global warming Ch4+NOx +deforestation >global warming Melting of arctic and antarctic of ice caps The melting of ice shows increase in poles of ice Global warming is leading to dominal effect to leading patterns Droughts Heat strokes Animals got extinction by climate change  Greenhouse gases - During the process of combustion, O2 reacts with glucose (C6H12O6, a form of sugar) to produce water and CO2. As the organic matter burns, chemical energy in the form of heat and light is released. C6H12O6+6O2→6CO2+6H2O+energy: Respiration, both on land and in the sea, is a key component of the global carbon cycle.

Stopwatch

 Stopwatch Function app() { Onclick start() { Function reset () { Return'00:00:00'; return( OnClick (start)  OnClick (stop)  OnClick (reset)  } Let hours =math.floor (elapsedTime/1000*60*60) 1000*60*60 (1000)%60); Return (<></>); Export default App;

UseRef click krne pr change kahi or aye

 Userender(0); Server ko pta Hana ha k hm errors Click krne pr color change ho Background color ="change horha ha" ; Or thick horha ha

Tides

 How Tides are formed P hogia airlock V volume T temperature = hot water right side =cool water left side PVT=nRT How Tides are formed P hogia airlock V volume T temperature = hot water right side =cool water left side https://youtube.com/shorts/qr6htDmP6Eo?si=_yvhaQ_jO3EFiyYP https://www.facebook.com/share/p/5zaMVjtazHXQ3Q7A/?mibextid=oFDknk https://youtube.com/shorts/R3m0-0n8wAM?si=_DWi3_0XEWx-Teyq
 Javascript stack blitz html Const buttons = Document.QueryselectorAll('. Button') Const body = document.queryselector('body')  buttons. forEach(function(button)) { Console.log(button) ; Button. Add Event Listner('click', function (Chao) { Console.log (event. Target) type horhi ha If(e. Target. I'd === 'grey') { body. Style. backgroundColor = 'e. target. id;'}  If(e. Target. I'd === 'yellow') { body. Style. backgroundColor = 'e. target. id;'}  If(e. Target. I'd === 'blue') { body. Style. backgroundColor = 'e. target. id;'}  If(e. Target. I'd === 'purple') { body. Style. backgroundColor = 'e. target. id;'}  <p><label>weight in kg</label><input type = 'text' id='weight'  <Button >calculate</button> "Div id =" results"></div> <p><label>weight in kg</label></p> Under weight =less than 18.6...

Color picker

 Background color =(blue) Event. Target() ;

Cards

 <select name="visa" id="">           <option value="visa">visa</option>           <option value="mada">mada</option>           <option value="mastercard">mastercard</option>         </select>

UseState

 Trigger the value is changed 

my Component.jsx

 Const [name Initial >Const [name, set Name]=useState() ; Const update = () =>{ setName("spongebob"); Const incrementAge=(); setAge(age+1); <button>onClick:{toggleEmployed?} IncrementAge </button> <p>self dmployed

Problems

Poverty >education  Water scarcity>chemical stability, thermal stability, hydrothermal stability, and mechanical stability) and are very sensitive to water. Gender equality>Studies show the different experiences of genders across many domains including education, life expectancy, personality, interests, family life, careers, and political affiliation. Gender inequality is experienced differently across different cultures. Sustainable development>energy  Reducing war>De-escalate the concept of enemy. ... Treat the other side with respect. ... Recognize that there is the perception of injustice on both sides. ... Be prepared to forgive and ask for forgiveness. ... Refrain from belligerence. Human migration>education & employment  Education>teacher salaries  Human rights>constitution Ocean acidification>pH Democracy>government  Environmental disaster>Coastal vegetation and natural features such as sand dunes and mangroves  ...

My Government

 Petroleum Energy  Voting machine l Water Water cars fuel cell  Language  Mechanical  Boolean Climate  Small buiseness  Health  Education  Army  Water pollution  Land pollution  Air pollution  File pollution  Infrastructure  Tourism  Taxes Pollution  Population  Tax education  Solar at night Languages Tax Money  War

Problem solving

 Function Problem. Solution. Action=2theory. Practical + action 

why climate changes

Image
 

Research

 Pti ♥️ government Voting machine 1.signature 2.Ballet 3.Scanning card 4.Result Energy generation The electrons in silicon h@ve no freedom of movement When light strikes solar electrons are free to move through Sillicon When you injected boron Through doping the n side becomes positively charged and p become negativit charged silicon are doped and produces more heat Solar produce Infrared radiations is produced at night by solar Infrared radiation is produced @t night Thermoheat energy is produced at night (little) Waves https://www.youtube.com/watch?v=-bVi1w0m8x8 Pak government structure 1.Legislative :two branches - writing & passing laws Equality & proportional(balanced)  Senate-consult tax laws Consults mistakes of president      2.Executive  PM ki working team (policies, constitutional laws, improve trade)      3.judicial Judges Tells constition Congress 435 elective officials I. Consult tax laws II. Consult mistakes of president...