Snippets Collections
public class Main {

    public static void main(String[] args) {

        Wrangler myWranglerCar = new Wrangler();
        myWranglerCar.drive( 100);
        myWranglerCar.takeOffDoors();
        System.out.println(myWranglerCar.returnCarModel());
        myWranglerCar.setProductionYear(2022);
        System.out.println(myWranglerCar.getProductionYear());

        ModelX myModelXCar = new ModelX();
        myModelXCar.drive( 90);
        myModelXCar.switchAutopilotOn();
        System.out.println(myModelXCar.returnCarModel());
        myModelXCar.setProductionYear(2021);
        System.out.println(myModelXCar.getProductionYear());

        Car myCar = new Car();
        myCar.drive(50);
        System.out.println(myCar.returnCarModel());
    }
}
public class Car {

    private int odometer = 0;
    private int productionYear = 0;

    public void setProductionYear(int year){
        productionYear = year;
    }
    
    public int getProductionYear (){
        return  productionYear;
    }

    public void drive( int miles) {
        System.out.println("Car drove " + miles + " miles");
        odometer = odometer + miles;
    }

    public String returnCarModel() {
        return "Car model is unknown";
    }
}
public class ModelX extends Car {

    boolean autoPilot = false;

    public void switchAutopilotOn() {
        autoPilot = true;
        System.out.println("Autopilot is switched on");
    }

    public void switchAutopilotOff() {
        autoPilot = false;
        System.out.println("Autopilot is switched off");
    }

    public String returnCarModel() {
        return "Car model is ModelX";
    }
}
public class Wrangler extends Car {

    boolean carDoors = true;

    public void takeOffDoors() {
        carDoors = false;
        System.out.println("Doors are taken off");
    }

    public void putBackDoors() {
        carDoors = true;
        System.out.println("Doors are back");

    }
    public String returnCarModel() {
        return "Car model is Wrangler";
    }
}
SELECT A.merchant_id, A.max_for_previous_month, A.max_for_current_month, ((A.max_for_current_month - A.max_for_previous_month )/ A.max_for_current_month) as percent_jump, B.final_merchant_classification
	FROM	
	(
		(SELECT merchant_id
			, max(case when month = 3  then max_amount else 0 end) as max_for_previous_month
			, max(case when month = 4  then max_amount else 0 end) as max_for_current_month
		FROM fraud.merchant_rfi_master_table_test
		group by merchant_id
		)A
	inner join
        (select merchant_id, final_merchant_classification
        from fraud.fra_rbi_hml_final
        WHERE final_merchant_classification = 'H'
        group by merchant_id, final_merchant_classification)B
    ON A.merchant_id = B.merchant_id
    )
	where A.max_for_previous_month > 24000 and A.max_for_current_month > 24000 and  ((A.max_for_current_month - A.max_for_previous_month )/ A.max_for_current_month)>0.75
class UnionFind 
{
    public: 
    vector<int> parent,count;
    UnionFind(int n){
        parent.resize(n, -1);
        count.resize(n, 1);
    }
    int find(int x){
        return (this->parent[x] == -1)? x : find(this->parent[x]);
    }
    void Union(int a, int b){
        int pA = find(a) , pB = find(b);
        if(pA != pB){
            this->parent[pB] = pA;
            this->count[pA] += this->count[pB];
        }
        
    }
};
<div>
 <h1>Avatar</h1>
 <span>Director: James Cameron (born August 16, 1954)</span>
 <span>Science fiction</span>
 <a href="../movies/avatar-theatrical-trailer.html">Trailer</a>
</div>
"""
import styled from '@emotion/styled';
import React from 'react';
import { useDispatch } from 'react-redux';
 
const WillsTable = styled('div')(({ theme }) => ({
    backgroundColor: theme.palette.background.paper,
  }));
"""
 
Property 'palette' does not exist on type 'Theme'.


Solution:

https://stackoverflow.com/a/72594201

Styled should be import from @mui/material/styles, as you can see here. So, the code will be like:

import { styled } from "@mui/material/styles";
"""
import styled from '@emotion/styled';
import React from 'react';
import { useDispatch } from 'react-redux';

const WillsTable = styled('div')(({ theme }) => ({
    backgroundColor: theme.palette.background.paper,
  }));
"""

Property 'palette' does not exist on type 'Theme'.

Suggest a solution for the abover error. and update the current code with newer.



function setExclusive() {
  const answers = document.querySelectorAll("input.answer");
  answers[0].setAttribute("type", "radio");
  answers[1].setAttribute("type", "radio");
  answers[2].setAttribute("type", "radio");
}
<!DOCTYPE html>
<html>

<head>
	<title></title>
	<meta content="summary_large_image" name="twitter:card" />
	<meta content="website" property="og:type" />
	<meta content="" property="og:description" />
	<meta content="https://64za6iez1y.preview-postedstuff.com/V2-pdD1-AXRH-512I-pSfu/" property="og:url" />
	<meta content="https://pro-bee-beepro-thumbnail.getbee.io/messages/779850/763585/1648734/9309834_large.jpg" property="og:image" />
	<meta content="" property="og:title" />
	<meta content="" name="description" />
	<meta charset="utf-8" />
	<meta content="width=device-width" name="viewport" />
	<link href="https://19a34b3e64.imgdist.com/public/users/Integrators/BeeProAgency/779850_763585/favicon_images/DateBook_Icon-ab410a-16-icon.png" rel="icon" sizes="16x16" />
	<link href="https://19a34b3e64.imgdist.com/public/users/Integrators/BeeProAgency/779850_763585/favicon_images/DateBook_Icon-ab410a-32-icon.png" rel="icon" sizes="32x32" />
	<link href="https://19a34b3e64.imgdist.com/public/users/Integrators/BeeProAgency/779850_763585/favicon_images/DateBook_Icon-ab410a-apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
	<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css" />
	<style>
		.bee-row,
		.bee-row-content {
			position: relative
		}

		.bee-row-1 .bee-col-1 .bee-block-1,
		.bee-row-2 .bee-col-1 .bee-block-1 {
			font-family: Montserrat, 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;
			font-weight: 700
		}

		body {
			background-color: transparent;
			color: #000;
			font-family: Montserrat, "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif
		}

		a {
			color: #10a2f7
		}

		* {
			box-sizing: border-box
		}

		body,
		h2 {
			margin: 0
		}

		.bee-row-content {
			max-width: 1305px;
			margin: 0 auto;
			display: flex
		}

		.bee-row-content.reverse,
		.bee-row-content.reverse .bee-col {
			-moz-transform: scale(1, -1);
			-webkit-transform: scale(1, -1);
			-o-transform: scale(1, -1);
			-ms-transform: scale(1, -1);
			transform: scale(1, -1)
		}

		.bee-row-content .bee-col-w1 {
			flex-basis: 8%
		}

		.bee-row-content .bee-col-w2 {
			flex-basis: 17%
		}

		.bee-row-content .bee-col-w4 {
			flex-basis: 33%
		}

		.bee-row-content .bee-col-w7 {
			flex-basis: 58%
		}

		.bee-row-content .bee-col-w8 {
			flex-basis: 67%
		}

		.bee-row-content .bee-col-w12 {
			flex-basis: 100%
		}

		.bee-icon .bee-icon-label-right a,
		.bee-menu ul li a {
			text-decoration: none
		}

		.bee-image {
			overflow: auto
		}

		.bee-image .bee-center {
			margin: 0 auto
		}

		.bee-row-3 .bee-col-1 .bee-block-3,
		.bee-row-5 .bee-col-1 .bee-block-1,
		.bee-row-5 .bee-col-1 .bee-block-2,
		.bee-row-5 .bee-col-1 .bee-block-3 {
			width: 100%
		}

		.bee-menu ul {
			margin: 0;
			padding: 0
		}

		.bee-icon {
			display: inline-block;
			vertical-align: middle
		}

		.bee-icon .bee-content {
			display: flex;
			align-items: center
		}

		.bee-image img {
			display: block;
			width: 100%
		}

		.bee-menu ul {
			list-style-type: none
		}

		.bee-menu ul.bee-horizontal li {
			display: inline-block
		}

		.bee-row-1 {
			background-color: #b41cd9;
			background-repeat: no-repeat;
			background-size: auto
		}

		.bee-row-1 .bee-row-content,
		.bee-row-2 .bee-row-content,
		.bee-row-3 .bee-row-content {
			background-repeat: no-repeat;
			background-size: auto;
			color: #000
		}

		.bee-row-1 .bee-col-1,
		.bee-row-1 .bee-col-2,
		.bee-row-1 .bee-col-3 {
			padding-bottom: 5px;
			padding-top: 5px;
			display: flex;
			flex-direction: column;
			justify-content: center
		}

		.bee-row-1 .bee-col-1 .bee-block-1 {
			color: #ffbdd8;
			font-size: 32px;
			letter-spacing: 1px;
			text-align: center
		}

		.bee-row-2 {
			background-color: #13a7de;
			background-repeat: no-repeat;
			background-size: auto
		}

		.bee-row-3,
		.bee-row-4,
		.bee-row-5 {
			background-color: #efddff;
			background-repeat: no-repeat
		}

		.bee-row-2 .bee-col-1 {
			padding-bottom: 15px;
			padding-top: 15px
		}

		.bee-row-2 .bee-col-1 .bee-block-1 {
			color: #fff;
			font-size: 16px;
			text-align: right
		}

		.bee-row-3 {
			background-image: url('https://d1oco4z2z1fhwp.cloudfront.net/templates/default/6826/MainHeader_Fondo_04.png');
			background-size: cover
		}

		.bee-row-3 .bee-col-1 {
			padding: 5px 10px
		}

		.bee-row-3 .bee-col-1 .bee-block-2 {
			padding-bottom: 5px;
			text-align: center;
			width: 100%
		}

		.bee-row-3 .bee-col-2 {
			padding: 5px 15px
		}

		.bee-row-3 .bee-col-3,
		.bee-row-6 .bee-col-1,
		.bee-row-7 .bee-col-1,
		.bee-row-7 .bee-col-1 .bee-block-1 {
			padding-bottom: 5px;
			padding-top: 5px
		}

		.bee-row-4 .bee-row-content,
		.bee-row-5 .bee-row-content,
		.bee-row-6 .bee-row-content,
		.bee-row-7 .bee-row-content {
			background-repeat: no-repeat;
			color: #000
		}

		.bee-row-6,
		.bee-row-7 {
			background-repeat: no-repeat
		}

		.bee-row-6 .bee-col-1 .bee-block-1 {
			color: #000;
			font-family: inherit;
			font-size: 14px;
			font-weight: 400;
			text-align: center
		}

		.bee-row-7 .bee-col-1 .bee-block-1 {
			color: #9d9d9d;
			font-family: inherit;
			font-size: 15px;
			text-align: center
		}

		.bee-row-2 .bee-col-1 .bee-block-1 li {
			padding-left: 10px;
			padding-right: 10px
		}

		.bee-row-2 .bee-col-1 .bee-block-1 li a {
			color: #fff
		}

		@media (max-width:768px) {
			.bee-row-content:not(.no_stack) {
				display: block
			}
		}

		.bee-row-1 .bee-col-1 .bee-block-1 .bee-icon-image {
			padding: 10px
		}

		.bee-row-1 .bee-col-1 .bee-block-1 .bee-icon:not(.bee-icon-first) .bee-content,
		.bee-row-6 .bee-col-1 .bee-block-1 .bee-icon:not(.bee-icon-first) .bee-content,
		.bee-row-7 .bee-col-1 .bee-block-1 .bee-icon:not(.bee-icon-first) .bee-content {
			margin-left: 0
		}

		.bee-row-1 .bee-col-1 .bee-block-1 .bee-icon::not(.bee-icon-last) .bee-content {
			margin-right: 0
		}

		.bee-row-6 .bee-col-1 .bee-block-1 .bee-icon-image {
			padding: 5px
		}

		.bee-row-6 .bee-col-1 .bee-block-1 .bee-icon::not(.bee-icon-last) .bee-content {
			margin-right: 0
		}

		.bee-row-7 .bee-col-1 .bee-block-1 .bee-icon-image {
			padding: 5px 6px 5px 5px
		}

		.bee-row-7 .bee-col-1 .bee-block-1 .bee-icon::not(.bee-icon-last) .bee-content {
			margin-right: 0
		}
	</style>
</head>

<body>
	<div class="bee-page-container">
		<div class="bee-row bee-row-1">
			<div class="bee-row-content">
				<div class="bee-col bee-col-1 bee-col-w2">
					<div class="bee-block bee-block-1 bee-icons">
						<div class="bee-icon bee-icon-last">
							<div class="bee-content">
								<div class="bee-icon-image"><a href="https://creatorapp.zoho.com/sapphireelitetech/environment/development/datebook/#New_Section1" target="_self" title="DateBook"><img height="64px" src="https://19a34b3e64.imgdist.com/public/users/Integrators/BeeProAgency/779850_763585/DateBook%20Icon.png" width="auto" /></a></div>
								<div class="bee-icon-label bee-icon-label-right"><a href="https://creatorapp.zoho.com/sapphireelitetech/environment/development/datebook/#New_Section1" target="_self" title="DateBook">DateBook</a></div>
							</div>
						</div>
					</div>
				</div>
				<div class="bee-col bee-col-2 bee-col-w8">
					<div class="bee-block bee-block-1 bee-spacer">
						<div class="spacer" style="height:60px;"></div>
					</div>
				</div>
				<div class="bee-col bee-col-3 bee-col-w2">
					<div class="bee-block bee-block-1 bee-spacer">
						<div class="spacer" style="height:60px;"></div>
					</div>
				</div>
			</div>
		</div>
		<div class="bee-row bee-row-2">
			<div class="bee-row-content">
				<div class="bee-col bee-col-1 bee-col-w12">
					<div class="bee-block bee-block-1 bee-menu">
						<nav class="bee-menu">
							<ul class="bee-horizontal">
								<li><a href="https://www.example.com" target="_self" title="">INTRODUCTION</a></li>
								<li><a href="https://www.example.com" target="_self" title="">HIGHLIGHTS</a></li>
								<li><a href="https://www.example.com" target="_self" title="">NEWS</a></li>
								<li><a href="https://www.example.com" target="_self" title="">EVENTS</a></li>
								<li><a href="https://www.example.com" target="_self" title="">YOUR DASHBOARD</a></li>
							</ul>
						</nav>
					</div>
				</div>
			</div>
		</div>
		<div class="bee-row bee-row-3">
			<div class="bee-row-content reverse">
				<div class="bee-col bee-col-1 bee-col-w4">
					<div class="bee-block bee-block-1 bee-spacer">
						<div class="spacer" style="height:15px;"></div>
					</div>
					<div class="bee-block bee-block-2 bee-heading">
						<h2 style="color:#5d85a9;direction:ltr;font-family:'Montserrat', 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;font-size:32px;font-weight:700;letter-spacing:normal;line-height:120%;text-align:center;margin-top:0;margin-bottom:0;"><span class="tinyMce-placeholder">Fermentum Ipsum</span> </h2>
					</div>
					<div class="bee-block bee-block-3 bee-image"><img alt="" class="bee-center bee-autowidth" src="https://d1oco4z2z1fhwp.cloudfront.net/templates/default/6826/Sombra_inferior.png" style="max-width:415px;" /></div>
				</div>
				<div class="bee-col bee-col-2 bee-col-w1">
					<div class="bee-block bee-block-1 bee-spacer">
						<div class="spacer" style="height:15px;"></div>
					</div>
					<div class="bee-block bee-block-2 bee-spacer">
						<div class="spacer" style="height:25px;"></div>
					</div>
				</div>
				<div class="bee-col bee-col-3 bee-col-w7">
					<div class="bee-block bee-block-1 bee-spacer">
						<div class="spacer" style="height:10px;"></div>
					</div>
					<div class="bee-block bee-block-2 bee-spacer">
						<div class="spacer" style="height:60px;"></div>
					</div>
				</div>
			</div>
		</div>
		<div class="bee-row bee-row-4">
			<div class="bee-row-content">
				<div class="bee-col bee-col-1 bee-col-w12">
					<div class="bee-block bee-block-1 bee-spacer">
						<div class="spacer" style="height:60px;"></div>
					</div>
				</div>
			</div>
		</div>
		<div class="bee-row bee-row-5">
			<div class="bee-row-content">
				<div class="bee-col bee-col-1 bee-col-w12">
					<div class="bee-block bee-block-1 bee-image"><img alt="Your Logo" class="bee-center bee-fixedwidth" src="https://19a34b3e64.imgdist.com/public/users/Integrators/BeeProAgency/779850_763585/DateBook%20Icon.png" style="max-width:326px;" /></div>
					<div class="bee-block bee-block-2 bee-image"><img alt="" class="bee-center bee-fixedwidth" src="https://19a34b3e64.imgdist.com/public/users/Integrators/BeeProAgency/779850_763585/C5496230-8A5C-4503-870B-F0C4D3C7BC07.PNG" style="max-width:391px;" /></div>
					<div class="bee-block bee-block-3 bee-image"><img alt="" class="bee-center bee-autowidth" src="https://d1oco4z2z1fhwp.cloudfront.net/templates/default/6826/Sombra_inferior.png" style="max-width:650px;" /></div>
					<div class="bee-block bee-block-4 bee-spacer">
						<div class="spacer" style="height:25px;"></div>
					</div>
				</div>
			</div>
		</div>
		<div class="bee-row bee-row-6">
			<div class="bee-row-content">
				<div class="bee-col bee-col-1 bee-col-w12">
					<div class="bee-block bee-block-1 bee-icons">
						<div class="bee-icon bee-icon-last">
							<div class="bee-content">
								<div class="bee-icon-image"><img height="128px" src="https://19a34b3e64.imgdist.com/public/users/Integrators/BeeProAgency/779850_763585/DateBook%20Icon.png" width="auto" /></div>
							</div>
						</div>
					</div>
					<div class="bee-block bee-block-2 bee-spacer">
						<div class="spacer" style="height:25px;"></div>
					</div>
				</div>
			</div>
		</div>
		<div class="bee-row bee-row-7">
			<div class="bee-row-content">
				<div class="bee-col bee-col-1 bee-col-w12">
					<div class="bee-block bee-block-1 bee-icons" id="beepro-locked-footer">
						<div class="bee-icon bee-icon-last">
							<div class="bee-content">
								<div class="bee-icon-image"><a href="https://www.designedwithbee.com/?utm_source=editor&amp;utm_medium=bee_pro&amp;utm_campaign=free_footer_link" target="_blank" title="Designed with BEE"><img alt="Designed with BEE" height="32px" src="https://d1oco4z2z1fhwp.cloudfront.net/assets/bee.png" width="auto" /></a></div>
								<div class="bee-icon-label bee-icon-label-right"><a href="https://www.designedwithbee.com/?utm_source=editor&amp;utm_medium=bee_pro&amp;utm_campaign=free_footer_link" target="_blank" title="Designed with BEE">Designed with BEE</a></div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>

</html>
# enable remote desktop ubuntu
sudo apt-get install xrdp
sudo systemctl start xrdp
#sudo systemctl restart xrdp # restart XRDP
#sudo systemctl enable xrdp # <- enable XRDP on system boot

# get IP and hostname
ifconfig
hostname

# windows:
# 1. open Remote Desktop Connection
# 2. enter the IP address or hostname

 [![The CORRECT Way to Write a Book with ChatGPT - Do This NOW](https://res.cloudinary.com/marcomontalbano/image/upload/v1685646401/video_to_markdown/images/youtube--dGyU8gDSKmw-c05b58ac6eb4c4700831b2b3070cd403.jpg)](https://www.youtube.com/watch?v=dGyU8gDSKmw "The CORRECT Way to Write a Book with ChatGPT - Do This NOW")
# submit a job after a set of jobs are completed
job_ids=("job_1" "job_2")
hold_jid=$(IFS=,; echo "${job_ids[*]}")
qsub -hold_jid "${hold_jid}" your_new_job_script.sh

# list all the active jobs
qstat
qstat -u user

# refresh list every 2 seconds
watch -n 2 qstat -u user

# kill job
qdel JOB-ID
 <div className="landing__container">
            <div className="landing__header__container">
                <div className="landing__header">
                    <h3 className="landing__header__discount">UP TO 15% DISCOUNT</h3>
                    <h1 className="landing__header__main">Checkout The Best Fashion Style</h1>
                    <Link to="/shop">
                        <Button variant='outlined' sx={[ {width: '190px', height: '50px', borderRadius: '20px' , fontWeight: '700', backgroundColor: 'none', borderColor: 'black', color: 'black' }, {'&:hover': {  backgroundColor: "black" , color: "#FFE26E", borderColor: 'black'}}]}>SHOP NOW</Button>
                    </Link>
                </div>
            </div>
            <div className="landing__image__container">
                <img className="landing__image" src={land} alt=""/>
            </div>
        </div>




.landing__container {
    width: 100%;
    min-height: 420px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap-reverse;
    background-color: #ffe26e;
    position: relative;
}


.landing__header a {
    text-decoration: none;
    color: #000;
}

.landing__header__container {
    width: 40%;
    height: auto;
    min-height: 450px;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.landing__header {
    height: 100%;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

.landing__header__main {
    font-size: 4.0rem;
    font-weight: 800;
}

.landing__header__discount {
    font-size: 1.2rem;
}

.landing__button {
    width: 60%;
    cursor: pointer;
    transition: .3s;
}

.landing__image__container {
    width: 50%;
    height:100% ;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing__image {
    height: auto;
    width: auto;
    top: 0%;
    z-index: 10;
}


@media screen and (max-width: 850px) {
    .landing__image__container{
       display: none;
    }
}
  breakpoints:{
    desktop: "1024px",
    tablet: "768px",
    phone: "320px",
    phoneM:"376px",
    phoneS: "319px",
  }
import { css } from "styled-components";

export const createResponsiveFont = (fontSizes: { [key: string]: string }) => {
  return css`
    ${Object.keys(fontSizes).map((breakpoint) => {
      return css`
        @media (max-width: ${breakpoint}) {
          font-size: ${fontSizes[breakpoint]};
        }
      `;
    })}
  `;
};
pd.to_datetime(df_apto['AF_DT_EMISSAO_NF'].astype('str').str[:8],format='%Y%m%d',errors='coerce')
public class Car {

    int odometer = 0;
    
    public void drive( int miles) {
        System.out.println("Car drove " + miles + " miles");
        odometer = odometer + miles;
    }

    public String returnCarModel() {
        return "Car model is unknown";
    }
}
public class Wrangler extends Car {

    boolean carDoors = true;

    public void takeOffDoors() {
        carDoors = false;
        System.out.println("Doors are taken off");
    }

    public void putBackDoors() {
        carDoors = true;
        System.out.println("Doors are back");
    }

    public String returnCarModel() {
        return "Car model is Wrangler";
    }
}
position:relative;
}
.widget.skin70 .readOn::after{
position:absolute;
content:"";
width:50px;
height:5px;
border-radius:3px;
bottom:-7px;
left:0;
background:#D6A251;
transition:all .3s ease-in-out;
}
.widget.skin70 .readOn:hover:after,
.widget.skin70 .readOn:focus:after,
.widget.skin70 .readOn:active:after{
width:75px;
position:relative;
}
.widget.skin70 .widgetViewAll::after{
position:absolute;
transition: all .3s ease-in-out;
content:"";
width:50px;
height:5px;
border-radius:3px;
bottom:-7px;
left:50%;
transform:translateX(-50%);
background:#D6A251;
}
.widget.skin70 .widgetViewAll:hover:after,
.widget.skin70 .widgetViewAll:focus:after,
.widget.skin70 .widgetViewAll:active:after{
width:75px
<div layout="row" layout-align="space-between">
  <p>The number is</p>
  <font color="{{((msg.payload || 0) % 2 === 0) ? 'green' : 'red'}}">
    {{(msg.payload || 0) % 2 === 0 ? 'even' : 'odd'}}
  </font>
</div>
copyButtons = document.querySelectorAll('.copy-button')
    img = document.createElement('img')
    img.src = '/loading.svg'
    img.style.filter = 'invert(45%) sepia(99%) saturate(2815%) hue-rotate(179deg) brightness(97%) contrast(103%)'
    for(button of copyButtons) {
        button.addEventListener('click', async (event) => {
            clickedButton = event.target
            resultId = clickedButton.id.split('-')[1]

            // select button icon and remove it
            let buttonNode = document.querySelector(`#copyButton-${resultId}`)
            let icon = buttonNode.children[0]
            icon.classList.remove('icon-copy')
            buttonNode.insertBefore(img, buttonNode.firstChild)

            // Get the text field
            let copyText = document.getElementById(`urlInput-${resultId}`);
            // Select the text field
            copyText.select();
            copyText.setSelectionRange(0, 99999); // For mobile devices

            // Copy the text inside the text field
            navigator.clipboard.writeText(await shortenUrl(copyText, 1));
            buttonNode.removeChild(buttonNode.children[0])
            icon.classList.add('icon-copy')
        })
    }
public class ModelX extends Car {

    boolean autoPilot = false;

    public void switchAutopilotOn() {
        autoPilot = true;
        System.out.println("Autopilot is switched on");
    }

    public void switchAutopilotOff() {
        autoPilot = false;
        System.out.println("Autopilot is switched off");
    }

    public String returnCarModel() {
        return "Car model is ModelX";
    }
}
public class Car {
  
    int odometer = 0;
    
    public void drive( int miles) {
        System.out.println("Car drove " + miles + " miles");
        odometer = odometer + miles;
    }
}
public class Wrangler extends Car {
    
    boolean carDoors = true;
    
    public void takeOffDoors() {
        carDoors = false;
        System.out.println("Doors are taken off");
    }
    
    public void putBackDoors() {
        carDoors = true;
        System.out.println("Doors are back");

    }
}
public class ModelX extends Car {

    boolean autoPilot = false;

    public void switchAutopilotOn() {
        autoPilot = true;
        System.out.println("Autopilot is switched on");
    }
    
    public void switchAutopilotOff() {
        autoPilot = false;
        System.out.println("Autopilot is switched off");
    }
}
# check if array is empty
if [ ${#array[@]} -gt 0 ]; then
    echo "Array is not empty."
fi
    
# check if array is empty
if [ -z "${array[*]}" ]; then
    echo "Array is not empty."
fi
# Type string
pyautogui.typewrite("Hello, World!")

# Move cursor slowly
target_x = 500
target_y = 500
pyautogui.moveTo(target_x, target_y, duration=2)

# Click mouse
pyautogui.click()
pyautogui.click(button='right')
#include <bits/stdc++.h>
using namespace std;

int solve(vector<vector<int>>& dp, int idx, int cw, int w, vector<int>& v)
{
   if(cw==w) return ++dp[idx][cw];
   if(cw>w||idx==v.size()) return 0;
   if(dp[idx][cw]!=0) return dp[idx][cw];
   
   return dp[idx][cw]=solve(dp, idx+1, cw+v[idx], w, v)+solve(dp, idx+1, cw, w, v);
}

int main() {
	int t;
	cin>>t;
	while(t--)
	{
	        int n, w;
	        cin>>n>>w;
	        vector<int>a(n);
	        for(int i=0;i<n;i++)
	        {
	           cin>>a[i];
	        }
	        vector<vector<int>> dp(n+1, vector<int>(w+1, 0));
	        int ans = solve(dp, 0, 0, w, a);
	        cout<<ans;
	}
	return 0;
}
public class Main {

    public static void main(String[] args) {

        Wrangler myWranglerCar = new Wrangler();
        myWranglerCar.drive( 100);
        System.out.println("Wrangler odometer displays " +myWranglerCar.odometer+ " miles");
        myWranglerCar.takeOffDoors();
        System.out.println(myWranglerCar.returnCarModel());

        ModelX myModelXCar = new ModelX();
        myModelXCar.drive( 90);
        System.out.println("ModelX odometer displays " +myModelXCar.odometer+ " miles");
        myModelXCar.switchAutopilotOn();
        System.out.println(myModelXCar.returnCarModel());

        Car myCar = new Car();
        myCar.drive(50);
        System.out.println(myCar.returnCarModel());
    }
}
public class Main {
  
    public static void main(String[] args) {

        Wrangler myWranglerCar = new Wrangler();
        myWranglerCar.drive( 100);
        System.out.println("Wrangler odometer displays " +myWranglerCar.odometer+ " miles");
        myWranglerCar.takeOffDoors();

        ModelX myModelXCar = new ModelX();
        myModelXCar.drive( 90);
        System.out.println("ModelX odometer displays " +myModelXCar.odometer+ " miles");
        myModelXCar.switchAutopilotOn();

        Car myCar = new Car();
        myCar.drive(50);

    }
}
import { css, CSSObject, FlattenSimpleInterpolation } from "styled-components";

interface Size {
  [key: string]: number;
}

interface MediaQueries {
  [key: string]: (style: TemplateStringsArray | CSSObject) => FlattenSimpleInterpolation;
}

const sizes: Size = {
  desktop: 1024,
  tablet: 768,
  phone: 320,
  phoneS: 319,
};

export const mediaQueries: MediaQueries = Object.keys(sizes).reduce((acc, label) => {
  acc[label as keyof Size] = (style: TemplateStringsArray | CSSObject) => css`
    @media (max-width: ${sizes[label as keyof Size]}px) {
      ${css(style)};
    }
  `;
  return acc;
}, {} as MediaQueries);
(function ($) {
    'use strict';

    $(document).ready(function(){
        function wpcf_load_script(){
			var script_path="https://thewaywedream.com/wp-content/plugins/smart-post-show-pro/public/assets/js/";
			
            var wpcfAjaxInterval = setInterval(function(){
                // Check if the WP Carousel is not initialized or preloader is not removed.
                if( $(document).find('.sp-pcp-carousel .sp-smart-pro-item:not(.swiper-active)').length > 0 ) {
                        $.getScript(script_path + 'scripts.min.js');
					setTimeout(function(){
					$('.sp-pcp-section').css("opacity", "1");
					
           			 }, 800);
                    clearInterval(wpcfAjaxInterval);
                }
	
            }, 200);
            // Clear interval after 10s.
            setTimeout(function(){
				
                    clearInterval(wpcfAjaxInterval);
					
            }, 5000);
        }
        

        $(document).on('click','.folders',function(){
			$('.sp-pcp-section').css("opacity", "0").parents('.elementor-popup-modal .dialog-message').css("overflow","hidden");
			  
            wpcf_load_script();
        });

    });
})(jQuery);
<template>
  <div>
    <vxe-toolbar>
      <template #buttons>
        <vxe-button @click="allAlign = 'left'">居左</vxe-button>
        <vxe-button @click="allAlign = 'center'">居中</vxe-button>
        <vxe-button @click="allAlign = 'right'">居右</vxe-button>
      </template>
    </vxe-toolbar>

    <vxe-table
      :align="allAlign"
      :data="tableData">
      <vxe-column type="seq" width="60"></vxe-column>
      <vxe-column field="name" title="Name"></vxe-column>
      <vxe-column field="sex" title="Sex"></vxe-column>
      <vxe-column field="age" title="Age"></vxe-column>
    </vxe-table>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { VxeTablePropTypes } from 'vxe-table'

interface RowVO {
  id: number
  name: string
  role: string
  sex: string
  age: number
  address: string
}

const allAlign = ref<VxeTablePropTypes.Align>(null)

const tableData = ref<RowVO[]>([
  { id: 10001, name: 'Test1', role: 'Develop', sex: 'Man', age: 28, address: 'test abc' },
  { id: 10002, name: 'Test2', role: 'Test', sex: 'Women', age: 22, address: 'Guangzhou' },
  { id: 10003, name: 'Test3', role: 'PM', sex: 'Man', age: 32, address: 'Shanghai' },
  { id: 10004, name: 'Test4', role: 'Designer', sex: 'Women', age: 24, address: 'Shanghai' }
])
</script>
function sps_custom_multiple_keyword_search( $search, $wp_query ) {
 
	$search_terms = $wp_query->get( 's' );
	$search_terms = trim( $search_terms );
 
	if ( empty( $search_terms ) ) {
		return $search;
	} 
	// Check if search query contains the "+" symbol
    if ( defined('DOING_AJAX') && DOING_AJAX && strpos( $search_terms, '+') !== false ) {
		$search_terms_array = explode( '+', $search_terms );
		$search_terms_array = array_map( 'trim', $search_terms_array );
		$search_terms_array = array_filter( $search_terms_array );
 
		if ( empty( $search_terms_array ) ) {
			return $search;
		}
		global $wpdb;
		$search_sql = array();
		foreach ( $search_terms_array as $term ) {
			$term        = esc_sql( $term );
			$search_sql[]= "({$wpdb->posts}.post_title LIKE '%{$term}%' OR {$wpdb->posts}.post_content LIKE '%{$term}%')";
		}
 
		if ( ! empty( $search_sql ) ) {
			$search_sql = implode( ' OR ', $search_sql );
			$search = " AND ({$search_sql})";
		}
	}
 
	return $search;
}
add_filter( 'posts_search', 'sps_custom_multiple_keyword_search', 10, 2 );
function sps_custom_multiple_keyword_search( $search, $wp_query ) {

	$search_terms = $wp_query->get( 's' );
	$search_terms = trim( $search_terms );

	if ( empty( $search_terms ) ) {
		return $search;
	} 
	// Check if search query contains the "+" symbol
    if ( defined('DOING_AJAX') && DOING_AJAX && strpos( $search_terms, '+') !== false ) {
		$search_terms_array = explode( '+', $search_terms );
		$search_terms_array = array_map( 'trim', $search_terms_array );
		$search_terms_array = array_filter( $search_terms_array );

		if ( empty( $search_terms_array ) ) {
			return $search;
		}
		global $wpdb;
		$search_sql = array();
		foreach ( $search_terms_array as $term ) {
			$term        = esc_sql( $term );
			$search_sql[]= "({$wpdb->posts}.post_title LIKE '%{$term}%' OR {$wpdb->posts}.post_content LIKE '%{$term}%')";
		}

		if ( ! empty( $search_sql ) ) {
			$search_sql = implode( ' OR ', $search_sql );
			$search = " AND ({$search_sql})";
		}
	}

	return $search;
}
add_filter( 'posts_search', 'sps_custom_multiple_keyword_search', 10, 2 );
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data import DataLoader
from torchvision import datasets, transforms

import matplotlib.pyplot as plt
"""
<div className="file-list-item" key={index}>

  			<div className="file-info">
                <div
                  className="file-icon"
                >
                  <img src={FileListIcon} alt="File List Icon" />
                </div>
                <div className="file-name">
                  {file.name}
                </div>
              </div>

              <div className="close-icon" onClick={() => removeFile(file)}>
                <span>Remove</span>
              </div>
            </div>
"""

Suggest you are a experienced react developer.

`file-list-item` div element contains two child div elements `file-info` element and `close-icon` div element. These two chilf elements should have space between them. You can apply flex properties if needed. Write the styling from scratch. background color and border radius of parent element is 
#E4FDFF and 30px. Also please explain the change you make. file-icon and file-name should have margin of 10px in between. equal padding around file-list-item div element.  Return the updated version of code ans styles.



You are CSS expert.
help me to resolve this design issue.
currently width of file-list-item is changing based on length of file name. I want the width to stay consistent irrespective of file we attach. It should of same width. return the updated styles


class Solution {
    using Index = pair<int, int>;
    vector<Index> directions =
    {
        {-1, -1},
        {-1, 0},
        {-1, 1},
        {0, -1},
        {0, 1},
        {1, -1},
        {1, 0},
        {1, 1}
    };

public:
    int shortestPathBinaryMatrix(vector<vector<int>>& grid)
    {
        const int n = grid.size();
        if (grid[0][0] == 1 || grid[n - 1][n - 1] == 1)
            return -1;

        if (n == 1)
            return 1;
        
        int distance = 1;
        Index target = {n - 1, n - 1};
        queue<Index> q;
        q.push({0, 0});
        grid[0][0] = 1;
        while (!q.empty())
        {
            const int levelSize = q.size();
            for (int i = 0; i < levelSize; i++)
            {
                Index curr = q.front();
                q.pop();
                for (const Index& diff : directions)
                {
                    Index next = {curr.first + diff.first, curr.second + diff.second};
                    if (next.first >= 0 && next.first < n && next.second >= 0 && next.second < n 
                        && grid[next.first][next.second] == 0)
                    {
                        if (next == target)
                            return distance + 1;
                        grid[next.first][next.second] = 1;
                        q.push(next);
                    }
                }
            }
            distance++;
        }
        return -1;
    }
};
star

Fri Jun 02 2023 11:45:08 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Fri Jun 02 2023 11:38:47 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Fri Jun 02 2023 11:37:45 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Fri Jun 02 2023 11:37:27 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Fri Jun 02 2023 09:57:55 GMT+0000 (Coordinated Universal Time)

@Shumela

star

Fri Jun 02 2023 06:19:28 GMT+0000 (Coordinated Universal Time)

@midriff #javascript

star

Fri Jun 02 2023 06:16:54 GMT+0000 (Coordinated Universal Time) https://leetcode.com/problems/detonate-the-maximum-bombs/

@DxBros #c++ #union-find-class

star

Fri Jun 02 2023 05:36:13 GMT+0000 (Coordinated Universal Time) https://schema.org/docs/gs.html

@netera

star

Fri Jun 02 2023 05:21:25 GMT+0000 (Coordinated Universal Time)

@JISSMONJOSE #react.js #css #javascript

star

Fri Jun 02 2023 05:17:36 GMT+0000 (Coordinated Universal Time)

@JISSMONJOSE #react.js #css #javascript

star

Fri Jun 02 2023 04:25:39 GMT+0000 (Coordinated Universal Time)

@thecowsays #javascript

star

Fri Jun 02 2023 01:36:56 GMT+0000 (Coordinated Universal Time) https://www.simplilearn.com/agile-and-scrum/cspo-certification-training?tag

@chienbui

star

Fri Jun 02 2023 00:51:35 GMT+0000 (Coordinated Universal Time) https://pro.beefree.io/779850/763585/1648734/9309834/edit/page

@SapphireElite #beefree #html #webdev

star

Fri Jun 02 2023 00:21:06 GMT+0000 (Coordinated Universal Time)

@vs #bash

star

Thu Jun 01 2023 19:09:23 GMT+0000 (Coordinated Universal Time) https://video-to-markdown.marcomontalbano.com/?ref

@DKMitt #markdown #example-code #video

star

Thu Jun 01 2023 18:57:06 GMT+0000 (Coordinated Universal Time)

@vs #bash

star

Thu Jun 01 2023 18:54:11 GMT+0000 (Coordinated Universal Time)

@2018331055

star

Thu Jun 01 2023 18:52:54 GMT+0000 (Coordinated Universal Time)

@2018331055

star

Thu Jun 01 2023 18:27:52 GMT+0000 (Coordinated Universal Time)

@yarenrkmez

star

Thu Jun 01 2023 18:27:25 GMT+0000 (Coordinated Universal Time)

@yarenrkmez

star

Thu Jun 01 2023 17:08:43 GMT+0000 (Coordinated Universal Time)

@jmbenedetto #python

star

Thu Jun 01 2023 17:08:05 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Thu Jun 01 2023 17:07:17 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Thu Jun 01 2023 15:23:59 GMT+0000 (Coordinated Universal Time) https://oaklandfl.gov/DesignCenter/Themes/Index

@Cody_Gant

star

Thu Jun 01 2023 15:23:43 GMT+0000 (Coordinated Universal Time) https://oaklandfl.gov/DesignCenter/Themes/Index

@Cody_Gant

star

Thu Jun 01 2023 14:59:45 GMT+0000 (Coordinated Universal Time) http://localhost:1880/

@nedimaon

star

Thu Jun 01 2023 14:32:38 GMT+0000 (Coordinated Universal Time)

@miltonmatiasj

star

Thu Jun 01 2023 14:13:19 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Thu Jun 01 2023 13:30:42 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Thu Jun 01 2023 13:29:29 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Thu Jun 01 2023 13:27:39 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Thu Jun 01 2023 13:25:05 GMT+0000 (Coordinated Universal Time) https://www.hivelance.com/kraken-clone-script

@Stevenryan294 #krakenclone script

star

Thu Jun 01 2023 13:19:41 GMT+0000 (Coordinated Universal Time)

@vs #bash

star

Thu Jun 01 2023 12:52:29 GMT+0000 (Coordinated Universal Time)

@vs #python

star

Thu Jun 01 2023 12:48:15 GMT+0000 (Coordinated Universal Time) https://youtu.be/F7wqWbqYn9g

@Ranjan_kumar #c++

star

Thu Jun 01 2023 12:40:55 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Thu Jun 01 2023 12:35:02 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Thu Jun 01 2023 11:52:50 GMT+0000 (Coordinated Universal Time)

@yarenrkmez

star

Thu Jun 01 2023 11:52:45 GMT+0000 (Coordinated Universal Time) https://thewaywedream.com/wp-admin/admin.php?page

@Pulak

star

Thu Jun 01 2023 11:04:09 GMT+0000 (Coordinated Universal Time) https://vxetable.cn/v4/

@adoin #typescript

star

Thu Jun 01 2023 10:39:44 GMT+0000 (Coordinated Universal Time) https://www.thiscodeworks.com/multiple-keyword-search/64786de37d6f0e001376ec83

@Pulak

star

Thu Jun 01 2023 10:28:51 GMT+0000 (Coordinated Universal Time)

@viktor_atanasov

star

Thu Jun 01 2023 10:12:12 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/36654624/set-a-range-to-an-entire-column-with-index-number

@minhhuyen172002

star

Thu Jun 01 2023 10:07:31 GMT+0000 (Coordinated Universal Time)

@hasan1d2d

star

Thu Jun 01 2023 09:50:15 GMT+0000 (Coordinated Universal Time)

@lebind12 #python #pytorch

star

Thu Jun 01 2023 09:46:24 GMT+0000 (Coordinated Universal Time) https://www.automateexcel.com/vba/call-sub-from-another-sub/

@minhhuyen172002 #vba

star

Thu Jun 01 2023 09:34:55 GMT+0000 (Coordinated Universal Time) https://learn.microsoft.com/en-us/office/troubleshoot/access/force-new-line-msgbox-message

@minhhuyen172002 #vba

star

Thu Jun 01 2023 08:49:27 GMT+0000 (Coordinated Universal Time)

@JISSMONJOSE #react.js #css #javascript

star

Thu Jun 01 2023 08:41:40 GMT+0000 (Coordinated Universal Time) https://www.ablebits.com/office-addins-blog/fill-blanks-excel/

@minhhuyen172002

star

Thu Jun 01 2023 08:35:21 GMT+0000 (Coordinated Universal Time) https://leetcode.com/submissions/detail/961503088/

@DxBros #c++ #bfs #shortest_path_binmat

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension