Snippets Collections
pip install -U pip setuptools
pip install wheel

declare @value decimal(10,2)
set @value = (select 
CASE WHEN %CH003% = 0 THEN 0 
WHEN {AGE,YEAR} > 130.0 THEN 0 
WHEN {AGE,YEAR} < 18.0 THEN ((0.41 * {HEIGHT}) / %CH003%) 
WHEN {SEX} = "M" AND %CH003% <= 0.9 THEN ((141 * (POWER((%CH003% / 0.9), -0.411))) * POWER(0.993, {AGE,YEAR})) 
WHEN {SEX} = "M" AND %CH003% > 0.9 THEN ((141 * (POWER((%CH003% / 0.9), -1.209))) * POWER(0.993, {AGE,YEAR})) 
WHEN {SEX} = "F" AND %CH003% <= 0.7 THEN ((144 * (POWER((%CH003% / 0.7), -0.329))) * POWER(0.993, {AGE,YEAR})) 
WHEN {SEX} = "F" AND %CH003% > 0.7 THEN ((144 * (POWER((%CH003% / 0.7), -1.209))) * POWER(0.993, {AGE,YEAR})) ELSE 0 END)

SELECT CASE WHEN @value > 90.0 THEN "Stage G1"      
WHEN @value >= 60.00 AND @value <= 89.99 THEN "Stage G2"      
WHEN @value >= 45.00 AND @value <= 59.99 THEN "Stage G3a"      
WHEN @value >= 30.00 AND @value <= 44.99 THEN "Stage G3b"      
WHEN @value >= 15.00 AND @value <= 29.99 THEN "Stage G4"      
WHEN @value <  15.00 THEN "Stage G5"      
ELSE "N/A" END
#Needed to filter out all classes that occur at least 5 times in the column.

select class
FROM Courses
GROUP BY class
having count(*) >5
// ---------------------------------------------------------------------------
// LINQ Extensions Cheat Sheet - LinqExtensionMethods.cs
//
// https://github.com/lukewickstead/DOT-NET-on-Linux/blob/master/CheatSheets/LinqExtensionMethods.cs
// ---------------------------------------------------------------------------

// **** AGGREGATE ****
data.Count()            // The count of items
data.Cout(x => x.Condition == true)     // Count items which pass criteria
data.Sum (x => x.Value);        // Sum of all items
data.Min(x => a.Value);         // Min value
data.Max(x => a.Value);         // Max value
data.Average(x => a.Value);       // Average
data.Select(x => new { A = x.Name, B = x.Min(x.Value))  // Nested Aggregate
data.GroupBy( x => x.Type)
  .Select( y =>
  new { Key = y.Key,
        Average = y.Average ( z => z.Value ) } ); // Grouped Aggregate


// **** CONVERSIONS ****
data.ToArray();           // Convert to Array
data.ToList();            // Convert to List
data.ToDictionary( x=> x.Name );      // Convert to Dictionary keyed on Name
data.OfType<decimal> ().ToList ()     // Filters out all elements not of provided type
data.Cast<decimal> ().ToList ()       // Cast can only cast to Implemented Interfaces and classes within the hierachy
data.ConvertAll<double> (x => Convert.ToDouble (x));  // Convert all items with provided conversion method


// **** ELEMENT ****
data.First()            // Returns the first element
data.First( x=> x.Type == Types.A )     // Returns the first element passing the condition
data.FirstOrDefault( )          // Returns the first element or default*
data.FirstOrDefault( x => x.Type == Types.B )   // Returns the first element passing the condition or default*
data.Last()           // Returns the last element
data.Last( x=> x.Type == Types.A )      // Returns the last element passing the condition
data.LastOrDefault( )         // Returns the last element or default*
data.LastOrDefault( x => x.Type == Types.B )    // Returns the last element passing the condition or default*
data.ElementAt(0)         // Returns the element at position 0
*default            // Default is defined as default(typeOf(T)) or new Constructor() without any constructor parameters


// **** FILTERS ****
data.Where(x => x.Type == Types.A)      // Returns all elements passing the condition
data.Where(( x, index) => index <= 4 && x.Type == Types.A) // The elements index can be passed into the delegate


// **** GENERATION ****
Enumerable.Range(1, 10);        // Creates collection of 10 items between 1 and 10
Enumerable.Repeat(1, 10);       // Creates a collection of 10 1s.


// **** GROUPING ****
// Grouping is not like SQL where columns have to be aggregates or wihtin the group list; you group the elements into a list for each group

data.GroupBy (x => x.Type)
    .Select (grp => new { Key = grp.Key, Value = grp.Count ()}); // Group with count of data

data.GroupBy (x => x.Type)
    .Select (grp => new { Key = grp.Key,  Value = grp.OrderBy (x => x.Name)}); // Create a collection of elements ordered by name for each group of Type


// **** ORDERING ****
data.OrderBy (x => x.Name);         // Order by Name ASC
data.OrderBy (x => x.Name).ThenBy (x => x.Age);     // Order by Name ASC the Age ASC
data.OrderBy (x => x.Name).ThenByDescending (x => x.Age); // Order by Name ASC then Age DESC
data.OrderByDescending (x => x.Name);       // Order by Name DESC
data.OrderBy (x => x.Name,          // Order by Name ASC Case insensative
  StringComparer.CurrentCultureIgnoreCase);
data.OrderBy (x => x.Name).Reverse ();        // Reverse elements


// **** PARTITIONING ****
data.Take (3);              // Take 3 items
data.Skip (3);              // Skip 3 items
data.TakeWhile (x=>x.Type ==Types.A);       // Take all the items while the condition is met
data.SkipWhile (x=>x.Type ==Types.A);       // Skip all the items while the condition is met


// **** PROJECTION ****
data.Select (x => x.Name);          // Select collection of a column
data.Select (x => new { Name = x.Name, Age = x.Age });    // Select a collection of columns through an anonymus type
data.SelectMany (x => x.Children)       // SelectMany flattens collections into one collection


// **** QUANTIFIERS ****
data.Any (x => x.Type == Types.TypeA);        // Returns True/False if any element meets the condition
data.All (x => x.Type == Types.TypeA);        // Returns True/False if all the elements meet the condition


// **** SET ****
data.Distinct ();           // Returns a collection of distinct elements
data.Intersect(dataTwo);          // Returns the union / intersection of data; elements in both collections
data.Except(dataTwo);           // Returns elements in data which are not in dataTwo
data.Concat(dataTwo);           // Concatonates both collections; appends dataTwo to data
data.SequenceEqual(dataTwo));         // Returns True if data has the same data and sequence of dataTwo
data.Join(dataTwo,            // Joins the data together like SQL join
    x => x.Type,            // Join field on data
    y => y.Type,            // Join field on dataTwo
    ( d1, d2 ) => new { Name = d1.Name, Type = d1.Type, Desc = d2.Descripion} ); // Selection criteria

data.Distinct (new AComparer ()).       // Distinct with providing an equality provider
public class AComparer : IEqualityComparer<A>
{
    public bool Equals (A x, A y) { return a == a;}
    public int GetHashCode (A obj) { return obj.GetHashCode(); }
}

// ---------------------------------------------------------------------------
// LINQ Cheat Sheet - Linq.cs
//
// https://github.com/lukewickstead/DOT-NET-on-Linux/blob/master/CheatSheets/Linq.cs
// ---------------------------------------------------------------------------

// **** AGGREGATE ****

// Aggregate Linq Ext methods can be applied to natural Linq
.Count()
.Min()
.Max()
.Average()
.Sum()


// Aggregate
var count = (from p in people
        select p).Count ();

// Conditional Aggregate
var count = (from p in people
             where p.Gender == Gender.Male
             select p).Count ();

// Nested Aggregate
var samplePeople = from p in people
           select new { Name= p.Name,
                ChildrenCount =
                  (from c in p.Children
                   where c.Gender == Gender.Female
                   select c).Count () };

// Grouped Aggregate
var children = from p in people
    group p by p.Gender into peopleGenders
        let minKids = peopleGenders.Min( x => x.Children.Count())
    select new { Gender = peopleGenders.Key, Value = peopleGenders.Count() };

// Let satement
var children = from p in people
    let x = peopleGenders.Count( x => x.Children.Count())
    select x

// **** CONVERSIONS ****
// All conversions functions should be done with Linq ext methods ToArray(), ToList(), ToDictionary(), OfType(), Cast(); see Linq Ext cheet sheet here.

// **** ELEMENT ****
// All element functions should be done with Linq ext methods First(), FirstOrDefault(), Last(), LastOrDefault(), ElementAt(); see Linq Ext cheet sheet here.

// **** FILTER ****
// Where filter
var count = (from p in people
             where p.Age < 30
             select p).Count ();

// Drilled where filter
var count = (from p in people
             where p.Children.Count () > 0
             select p).Count ();

// **** GENERATION ****
// All generation functions should be done with Linq ext methods Enumerable.Range() and Enumerable.Repeat(); see Linq Ext cheet sheet here

// **** GROUPING ****
// Group by gender and count...
var samplePeople = from p in people
    group p by p.Gender into gens
    select new { Key = gens.Key, Value = gens.Count()};

// Split into groups of gender by grouping on Name
var samplePeople = from p in people
    group p by p.Gender into gens
    select new { Key = gens.Key, Value = gens.OrderBy( x => x.Name)};


// **** ORDERING ****
// Order ASC
var orderdPeople = from p in people
    orderby p.Name
    select new { p.Name, p.Age, p.Children, p.Gender };

// Order DES
var orderdPeople = from p in people
    orderby p.Name descending
    select new { p.Name, p.Age, p.Gender, p.Children };

// Order by multiple fields
var orderdPeople = from p in people
    orderby p.Age, p.Name descending
    select new { p.Name, p.Age, p.Gender, p.Children };

// Reverses the order
var orderdPeople = (from p in people
    orderby p.Name
    select new { p.Name, p.Age, p.Gender, p.Children }).Reverse ();


// **** PARTITIONING ****
// All partitioning functions should be done with Linq ext methods Take(), Skip(), TakeWhile() SkipWhile(); see Linq Ext cheet sheet here

// **** PROJECTION ****
// Select column
var allFemaleNames = from p in people
                    where p.Gender == Gender.Female
                    orderby p.Name descending
                    select p.Name;
// Select columns into anonymous type
var parentsNameAndAge = from p in people
    where p.Gender == Gender.Female
    select new { Name =  p.Name, Age = p.Age };

// Select element
var boysWithFemaleParents = from parent in people
    where parent.Gender == Gender.Female
    from children in parent.Children
    where children.Gender == Gender.Male All
    select children;

// **** QUANTIFIERS ****
// Any() and All() functions can be applied here

// Any exists
var isAnyPeople = (from p in people
                   where p.Gender == Gender.Unknown
                   select p).Any ();

// Any exists in group
var isAnyPeople = from p in people
                  where p.Children.Any (child => child.Gender == Gender.Unknown)
                  group p by p.Gender into genders
                  select new { Gender = genders.Key, People = genders};


// **** SETS ****
// Most set functions should be done with Linq ext methods Take(), Skip(), TakeWhile() SkipWhile(); see Linq Ext cheet sheet here
// inner join between person and gender description
var foo = from aPerson in people
    join aDes in genderDescriptions on aPerson.Gender equals aDes.Gender
select new { Name = aPerson.Name, Gender = aPerson.Gender, Desc = aDes.Descripion};
var Web3 = require('web3');

// "Web3.providers.givenProvider" will be set if in an Ethereum supported browser.
var web3 = new Web3(Web3.givenProvider || 'ws://some.local-or-remote.node:8546');

> web3.eth
> web3.shh
> web3.bzz
> web3.utils
> web3.version
Web3.modules
> {
    Eth: Eth(provider),
    Net: Net(provider),
    Personal: Personal(provider),
    Shh: Shh(provider),
    Bzz: Bzz(provider),
}
var Web3 = require('web3');

> Web3.utils
> Web3.version
> Web3.givenProvider
> Web3.providers
> Web3.modules
contract Test {
    uint a;
    address d = 0x12345678901234567890123456789012;

    function Test(uint testInt)  { a = testInt;}

    event Event(uint indexed b, bytes32 c);

    event Event2(uint indexed b, bytes32 c);

    function foo(uint b, bytes32 c) returns(address) {
        Event(b, c);
        return d;
    }
}

// would result in the JSON:
[{
    "type":"constructor",
    "payable":false,
    "stateMutability":"nonpayable"
    "inputs":[{"name":"testInt","type":"uint256"}],
  },{
    "type":"function",
    "name":"foo",
    "constant":false,
    "payable":false,
    "stateMutability":"nonpayable",
    "inputs":[{"name":"b","type":"uint256"}, {"name":"c","type":"bytes32"}],
    "outputs":[{"name":"","type":"address"}]
  },{
    "type":"event",
    "name":"Event",
    "inputs":[{"indexed":true,"name":"b","type":"uint256"}, {"indexed":false,"name":"c","type":"bytes32"}],
    "anonymous":false
  },{
    "type":"event",
    "name":"Event2",
    "inputs":[{"indexed":true,"name":"b","type":"uint256"},{"indexed":false,"name":"c","type":"bytes32"}],
    "anonymous":false
}]
css filee

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.header {
    background-color: rgb(19, 25, 33);
    height: 60px;
    color: white;
}


/* layout**/
.container {
    width: 99%;
    height: 100%;
    margin: auto;

}

.container-header {
    display: flex;
    align-items: center;
}

/**logo***/
.logo-container {
    height: 50px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;



}

.logo {
    width: 120px;
    height: 50px;
    background: url('https://m.media-amazon.com/images/G/31/gno/sprites/nav-sprite-global-1x-hm-dsk-reorg._CB405936311_.png');
    background-repeat: no-repeat;
    background-position-y: -40px;
    overflow: hidden;
}

.dotin {
    position: relative;
    margin-left: -13px;
    margin-top: -10px;
}

.border-white {
    padding: 5px;
    border: 1.5px solid transparent;
}

.border-white:hover {
    border: 1.5px solid #ffffff;
}

/***********addresss************/
.address-container {
    margin-left: 10px;
}

.address-container p {
    margin: 0;
}

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

.hello {
    font-size: 0.8rem;
    padding-left: 20px;
    color: #ccc;
}

.icon-location {
    margin-right: 3px;
}


/***search-container****/
.search-container {
    background-color: red;
    margin-left: 25px;
    width: 640px;
    display: flex;
    height: 40px;
    justify-content: space-between;
    border-radius: 3px;
    overflow: hidden;
}

.search-container:hover {
    outline: 3px solid orange;
}

.search-select {
    width: 60px;
    border: none;
    background-color: rgb(230, 227, 227);
}

.search-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 3px;
    font-size: 1.1rem;
}

.search-icon {
    width: 50px;
    background-color: rgb(235, 160, 94);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #000;
}


/***lauguage section*/
.language-container {
    margin-left: 25px;
}

.language-container p {
    font-size: 0.8rem;
    margin: 0;
}

.lauguge-image {
    width: 20px;
}

.lauguge-image img {
    width: 100%;
}


/***login-container***/
.login-container {
    margin-left: 15px;
}

.login-container p {
    margin: 0;
}

.account {
    font-weight: 900;
    font-size: 1.1rem;
}

.return-order-container {
    width: 65px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.return-order-container p {
    margin: 0;
}

.order {
    font-size: 1rem;
    font-weight: 900;
    display: flex;
    width: 70px;
}

/****cart container***/
.cart-container {
    font-size: 1.1rem;
    display: flex;
}

.cart-container i {
    font-size: 1rem;
}

/**************************************navigation*****************************************/
.nav {
    height: 40px;
    background-color: #232f3d;
    margin: 0;
}

.container-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 15px;
}

.container-nav ul {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1rem;
    color: white;
    list-style: none;
}

.container-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0px 2px;

}

.nav-right-image-amazon-prime {
    min-width: 300px;
    height: 300;
    max-width: 500px;
}

.nav-right-image-amazon-prime img {
    width: 100%;
    height: 100%;
}

.prime-image {
    background-color: white;
    height: 350px;
    width: 350px;
    position: absolute;
    z-index: 1;
    display: none;
    color: #000;
    margin-left: -10px;
    transition: display 1s;
    padding: 10px;
}

.prime-image-hover:hover .prime-image {
    transition: display 1s;
    display: block;
}

.prime-image img {
    width: 100%;
    height: 100%;
}

.image-container {
    position: relative;
}

.image-list {
    display: flex;
    overflow: hidden;
}

.image-item {
    min-width: 100%;
    height: 600px;
    /* transform: translateX(-300%); */
    transition: transform 0.3s;

}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-btn-container {
    position: absolute;
    top: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.slider-btn {
    border: 1px solid transparent;
    padding: 100px 20px;
    font-size: 50px;
    font-weight: 300;
    background-color: transparent;
    color: #000;
}

.slider-btn i {
    font-weight: 900;
}

.slider-btn:focus {
    border-color: seagreen;
    box-shadow: -2px -2px 2px rgb(230, 227, 227),
        2px 2px 2px white;
    margin: 2px;
}


/*sidebar navigation****/
#open-nav-sidebar {
    cursor: pointer;
}

.sidebar-container-navigation {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 10;
    background-color: transparent;
    transform: translateX(-100%);
    display: flex;
    transition: transform 0.3s;


}

.slidebar-show {
    transform: translateX(0%);
    background-color: rgba(0, 0, 0, 0.7);
}

.sidebar-left-part {
    background-color: white;
    width: 365px;
    height: 100%;
    box-sizing: 5px 5px 10px rgba(0, 0, 0, 0.8);
}

.sidebar-top {
    display: flex;
    align-items: center;
    padding: 12px;
    padding-left: 30px;
    background-color: rgb(19, 25, 33);
    color: white;
}

.sidebar-top h2 {
    font-size: 22px;
    margin: 0;
}

.sidebar-top i {
    padding-right: 10px;
    font-size: 25px;
}

.sidebar-item {
    padding-left: 30px;
    border-top: 1.5px solid #ccc;
}

.sidebar-item h2 {
    font-size: 20px;
}

.sidebar-item p {
    color: rgb(65, 62, 62);
}

#sidebar-navigation-close {
    background-color: transparent;
    align-self: flex-start;
    font-size: 30px;
    border: none;
    color: white;
    padding: 20px;
    cursor: pointer;
}

.sidebar-wrap {
    height: 100%;
    overflow: auto;
    padding-bottom: 100px;
}

/*product card container*/
.main{
    position: relative;
    top:-350px;
    /* background-color: rgb(196, 240, 240); */
    /* filter: blur(8px); */
    
}
.productBackgraound{
    background-color: rgba(213, 247, 247,0.4);
}
.card-product-container{
    padding: 20px;
    display: flex;
    justify-content: space-between;

}
.card-product{
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 310px;
    box-shadow: -10px -0px 20px rgba(196, 240, 240,0.5),
    50px 50px 20px rgba(196, 240, 240,0.5);
    padding: 10px;
}
.card-product h2{
    margin: 0;
    padding: 10px;
    
}

.card-product-nested-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;


}

.card-nested {

}

.card-nested p{
    margin: 5px;
}
.card-nested img {
    width: 128px;
    height: 102px;
    object-fit: cover;

}
.card-product-btn{
    font-size: 14px;
    align-self: flex-start;
    margin: 7px 10px; 
    padding-left: 0;
    background-color: transparent;
    border:none;
    color:rgb(25, 105, 105)
}
.card-product-btn:hover{
    text-decoration: underline;
    cursor: pointer;
}


/***
        Today's deals section
***/
.today_deals_container{
    margin: 30px;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.1),
    2px 2px 5px rgba(0, 0, 0, 0.1);
    
}
.today_deals_heading{
    display: flex;
    align-items: center;
    padding: 2px 20px;
}
.today_deals_heading p a{
    color:rgb(39, 114, 107);
    text-decoration: none;
    padding-left: 20px;
}
.today_deals_heading p a:hover{
    text-decoration: underline;
}

.today_deals_product_container{
    /* background-color: red; */
    height: 300px;
    position: relative;
}
.today_deals_product_list{
    display: flex;
    overflow: hidden;

}
.today_deals_product_item{
    min-width: 250px;
    height: 250px;
    padding: 0px 10px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    transform: translateX(0%);
    transition: transform 1s;
}
.todayDeals_product_image{
    height: 200px;
    width: 210px;
    display: flex;
    justify-content: center;
    align-content: center;
    margin-bottom: 15px;
}
.today_deals_product_item img{
    width: 100%;
    height: 100%;
    /* padding: 20px 20px; */
    background-color: red;
}
.today_deals_product_item p{
    justify-self: flex-end;
}
.discount_Contaienr{
    /* border: 2px solid red; */
}
.discount_Contaienr a{
    padding: 5px 10px;
    font-size: 14px;
    color:rgb(211, 30, 84);
    text-decoration: none;
}
.discount_Contaienr a:first-child{
    background-color: rgb(211, 30, 84);
    padding: 5px 10px;
    color:white;
    font-weight: 550;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.today_deals_btn_container{
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 20px;
    z-index: 10;
}
.today_deal_btn{
    padding: 40px 10px;
    font-size: 40px;
    border: none;
    outline: none;
    background-color: rgb(255,255,255,0.4);
}
$md-primary: (
  50: #f2e7fe,
  100: #dbb2ff,
  200: #bb86fc,
  300: #985eff,
  400: #7f39fb,
  500: #6200ee,
  600: #5600e8,
  700: #3700b3,
  800: #30009c,
  900: #23036a,
  A100: #ea80fc,
  A200: #e040fb,
  A400: #d500f9,
  A700: #aa00ff,
  contrast: (
    50: rgba(black, 0.87),
    100: rgba(black, 0.87),
    200: rgba(black, 0.87),
    300: white,
    400: white,
    500: white,
    600: white,
    700: white,
    800: white,
    900: white,
    A100: rgba(black, 0.87),
    A200: white,
    A400: white,
    A700: white,
  ),
);

$md-accent: (
  50: #c8fff4,
  100: #70efde,
  200: #03dac5,
  300: #00c4b4,
  400: #00b3a6,
  500: #01a299,
  600: #019592,
  700: #018786,
  800: #017374,
  900: #005457,
  A100: #a7ffeb,
  A200: #64ffda,
  A400: #1de9b6,
  A700: #00bfa5,
  contrast: (
    50: rgba(black, 0.87),
    100: rgba(black, 0.87),
    200: rgba(black, 0.87),
    300: rgba(black, 0.87),
    400: rgba(black, 0.87),
    500: white,
    600: white,
    700: white,
    800: white,
    900: white,
    A100: rgba(black, 0.87),
    A200: rgba(black, 0.87),
    A400: rgba(black, 0.87),
    A700: rgba(black, 0.87),
  ),
);

$md-warn: (
  50: #ffebef,
  100: #cf6679,
  200: #ff7597,
  300: #e77179,
  400: #f24e58,
  500: #f83a40,
  600: #e9313e,
  700: #d72638,
  800: #ff0266,
  900: #bb0d24,
  contrast: (
    50: rgba(black, 0.87),
    100: rgba(black, 0.87),
    200: rgba(black, 0.87),
    300: rgba(black, 0.87),
    400: white,
    500: white,
    600: white,
    700: white,
    800: white,
    900: white,
  ),
);
cd /Users/pullamma/Library/Android/sdk/emulator

./emulator -list-avds

./emulator -avd Pixel_7_Pro_API_UpsideDownCakePrivacySandbox
 function convertToGMT(timeWithAMPM, Timezone) {
    console.log('timeWithAMPM >>>----------------------------->',timeWithAMPM);
    const inputTime = new Date();
    if (!timeWithAMPM || typeof timeWithAMPM !== 'string') {
      return null; 
    }
    const [time, ampm] = timeWithAMPM.split(' ');
    const [hours, minutes] = time.split(':');
  
    if (ampm.toLowerCase() === 'pm') {
      inputTime.setHours(hours + 12);
    } else {
      inputTime.setHours(hours);
    }
    inputTime.setMinutes(minutes);
    const offsetInMinutes = Timezone === 'IST' ? 330 : 0; 
    const gmtTime = new Date(inputTime.getTime() - offsetInMinutes * 60000);
    return gmtTime && gmtTime.toUTCString();
  }
function timewitham(inputDate) {
  const options = { hour: 'numeric', minute: 'numeric', hour12: true };
  return inputDate.toLocaleTimeString('en-US', options);
}
// use of shortcode: [cp_reviews url="https://wordpress.org/support/plugin/location-weather/reviews/" target="4.5"]
add_shortcode(
	'cp_reviews',
	function( $atts, $content ) {
		$a = shortcode_atts(
			array(
				'url'  => 'https://wordpress.org/support/plugin/post-carousel/reviews/',
				'target' => '4.78',
			),
			$atts
		);
		$url = $a['url'];
		
		
		$cp_review_info = get_transient( 'cp_review_info_' . md5($url) );
		if ( $cp_review_info ) {
			$reviews = $cp_review_info[0]; 
			$averageReview = $cp_review_info[1]; 
			$totalReviews = $cp_review_info[2];
		} else {
			
			$params = array(
				'timeout'   => 101,
				'sslverify' => true,
			);

			$raw = wp_remote_retrieve_body( wp_remote_get( $url, $params ) );
			if ( strpos( $raw, 'class="review-ratings">' ) !== false ) {	
				$raw = explode( 'class="review-ratings">', (string) $raw )[1];
			}
			if ( strpos( $raw, '<div class="col-5">' ) !== false ) {
				$raw = explode( '<div class="col-5">', $raw )[0];	
			}	
			if ( strpos( $raw, '<span class="counter-count" style="margin-left:5px;">' ) !== false ) {
				$raw = explode( '<span class="counter-count" style="margin-left:5px;">', $raw );	
				unset($raw[0]); // Remove plugin name.
			}
			$i = 5;
			$sum = 0;
			$reviews = array();
			foreach( $raw  as $review ) {
				if ( strpos( $review, '</span>' ) !== false ) {
					$review = explode( '</span>', $review )[0];
					$reviews[] = $review;
					$sum +=  $i * $review;
					$i--;
				}	
			}
			$totalReviews = array_sum($reviews);
			$averageReview = $sum / $totalReviews;
			
			$review_info = array( $reviews, $averageReview, $totalReviews );
			set_transient( 'cp_review_info_' . md5($url), $review_info, 24 * HOUR_IN_SECONDS );
		}


		ob_start();
		$target_review = (float) number_format(  $a['target'] , 2);
		$averageReview1 = (float) number_format( $averageReview, 2);
		for( $j = 0; $averageReview1 < $target_review; $j++ ) {
			$averageReview1 = ( 5 * ( $reviews[0] + $j ) + 4 * $reviews[1] + 3 * $reviews[2] + 2 * $reviews[3] + 1 * $reviews[4] ) / ( ( $reviews[0] + $j ) + $reviews[1] +  $reviews[2] +  $reviews[3] + $reviews[4] );
			$averageReview1 = (float) number_format($averageReview1, 2);
			//echo ($averageReview1."<br/>");
		}

		echo "Total Review: " . $totalReviews;
		echo "  | Average Review: " . number_format($averageReview, 2); 
		echo " | Target Review: " . number_format($target_review, 2);
		echo" | Additional 5-Star Reviews Needed: $j <br/>";
		return ob_get_clean();
		
	}
);
// html 

     <div class="qodef-progress-bar ">
                          <h3 class="pb-title-holder" style="color: #000000">
                            <span class="pb-title">Adobe Photoshop</span>
                            <span class="qodef-pb-percent-holder">
                              <span class="qodef-pb-percent">{{ dynamic_page_hubdb_row.adobe_photoshop }}</span>
                              <span>%</span>
                            </span>
                          </h3>
                          <div class="qodef-pb-content-holder" style="background-color: #e1e1e1">
                            <div data-percentage="{{ dynamic_page_hubdb_row.adobe_photoshop }}" class="qodef-pb-content" style="background-color: #fe3e6b"></div>
                          </div>
                        </div>




// progress bar js 

(function() {

  var progressBar = {};
  window.progressBar = progressBar;

  progressBar.qodefInitProgressBars = qodefInitProgressBars;

  progressBar.qodefOnDocumentReady = qodefOnDocumentReady;
  document.addEventListener('DOMContentLoaded', qodefOnDocumentReady);

  /*
     All functions to be called on DOMContentLoaded should be in this function
     */
  function qodefOnDocumentReady() {
    qodefInitProgressBars();
  }

  /*
     ** Horizontal progress bars shortcode
     */
  function qodefInitProgressBars() {
    var progressBar = document.querySelectorAll('.qodef-progress-bar');

    if (progressBar.length) {
      progressBar.forEach(function(thisBar) {
        var thisBarContent = thisBar.querySelector('.qodef-pb-content');
        var percentage = thisBarContent.dataset.percentage;
        var percentageNumber = thisBar.querySelector('.qodef-pb-percent-holder');

        var appearEvent = new Event('appear');

        thisBar.addEventListener('appear', function() {
          qodefInitToCounterProgressBar(thisBar, percentage);

          thisBarContent.style.width = '0%';

          var animationStartTime = null;
          function animate(time) {
            if (!animationStartTime) animationStartTime = time;
            var progress = (time - animationStartTime) / 2000;
            if (progress > 1) progress = 1;
            thisBarContent.style.width = (percentage * progress) + '%';
            percentageNumber.style.left = (percentage - (percentageNumber.offsetWidth / thisBar.offsetWidth * 100)) + '%';
            if (progress < 1) requestAnimationFrame(animate);
          }
          requestAnimationFrame(animate);
        });

        thisBar.dispatchEvent(appearEvent);
      });
    }
  }

  /*
     ** Counter for horizontal progress bars percent from zero to defined percent
     */
  function qodefInitToCounterProgressBar(progressBar, percentage) {
    var percent = progressBar.querySelectorAll('.qodef-pb-percent-holder');

    if (percent.length) {
      percent.forEach(function(thisPercent) {
        thisPercent.style.opacity = '1';

        var pbPercent = thisPercent.querySelector('.qodef-pb-percent');

        var from = 0;
        var to = parseFloat(percentage);
        var speed = 2000;
        var refreshInterval = 50;
        var increment = (to - from) / (speed / refreshInterval);

        var current = from;
        var counter = setInterval(updateCounter, refreshInterval);

        function updateCounter() {
          current += increment;
          pbPercent.textContent = Math.floor(current);
          if (current >= to) {
            clearInterval(counter);
            pbPercent.textContent = to;
          }
        }
      });
    }
  }
})();
var bodyWrap = document.querySelector('body');
var bannerBox = document.querySelectorAll('.banner_wrap');
if(bannerBox.length > 0 ){
  bodyWrap.classList.add('bannerAddedNew');
  bodyWrap.classList.remove('noBannerAdded');
}
if(bannerBox.length == 0 ){
  bodyWrap.classList.add('noBannerAdded');
  bodyWrap.classList.remove('bannerAddedNew');
}
document.querySelectorAll('.main-header__nav .hs-menu-wrapper>ul>li ul>li>a').forEach(function (element) {
  if (element.innerHTML.indexOf('<br>') !== -1) {
    var title = element.innerHTML.split('<br>')[0];
    var desc = element.innerHTML.split('<br>')[1];
    var titleText = title !== undefined ? '<span class="menu-text">' + title + '</span>' : '';
    var descText = desc !== undefined ? '<span class="menu-desc">' + desc + '</span>' : '';
    var finalText = titleText + descText;
    element.innerHTML = finalText;
    element.innerHTML = finalText;
  }
});
var getLi = document.querySelectorAll('.main-header__nav .hs-menu-wrapper>ul>li>a');
for (var i = 0; i < getLi.length; i++) {
  var className = getLi[i].innerText;
  var addClassName = className.replace(/\s+/g, "_");
  if (addClassName.length != 0) {
    getLi[i].parentNode.classList.add(addClassName.toLowerCase());
  }
}
<!DOCTYPE html>

<html lang="en">

<head>

				<meta charset="UTF-8">

				<title>Page title</title>

</head>

<body>

				

				<h2>How to write Emmet</h2>

				

				

				

				

</body>

</html>
var bodyEle = document.querySelector('body');
var lastposition = 0;
window.addEventListener('scroll', function () {
  var currentPosition = window.scrollY || document.documentElement.scrollTop;
  if (currentPosition > 20) {
    bodyEle.classList.add('sticky-active');
  } else {
    bodyEle.classList.remove('sticky-active');
  }
  lastposition = currentPosition;
});
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Organization",
  "name": "Your Company Name",
  "logo": "URL to Your Logo",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Main St",
    "addressLocality": "Your City",
    "addressRegion": "Your State",
    "postalCode": "12345",
    "addressCountry": "Your Country"
  },
  "contactPoint": {
    "@type": "ContactPoint",
    "telephone": "+1-123-456-7890",
    "contactType": "Customer Service"
  }
}
</script>
license: openrail
datasets:
  - Fhrozen/AudioSet2K22
  - Chr0my/Epidemic_sounds
  - ChristophSchuhmann/lyrics-index
  - Cropinky/rap_lyrics_english
  - tsterbak/eurovision-lyrics-1956-2023
  - brunokreiner/genius-lyrics
  - google/MusicCaps
  - ccmusic-database/music_genre
  - Hyeon2/riffusion-musiccaps-dataset
  - SamAct/autotrain-data-musicprompt
  - Chr0my/Epidemic_music
  - juliensimon/autonlp-data-song-lyrics
  - Datatang/North_American_English_Speech_Data_by_Mobile_Phone_and_PC
  - Chr0my/freesound.org
  - teticio/audio-diffusion-256
  - KELONMYOSA/dusha_emotion_audio
  - Ar4ikov/iemocap_audio_text_splitted
  - flexthink/ljspeech
  - mozilla-foundation/common_voice_13_0
  - facebook/voxpopuli
  - SocialGrep/one-million-reddit-jokes
  - breadlicker45/human-midi-rlhf
  - breadlicker45/midi-gpt-music-small
  - projectlosangeles/Los-Angeles-MIDI-Dataset
  - huggingartists/epic-rap-battles-of-history
  - SocialGrep/one-million-reddit-confessions
  - shahules786/prosocial-nsfw-reddit
  - Thewillonline/reddit-sarcasm
  - autoevaluate/autoeval-eval-futin__guess-vi-4200fb-2012366606
  - lmsys/chatbot_arena_conversations
  - mozilla-foundation/common_voice_11_0
  - mozilla-foundation/common_voice_4_0
  - dell-research-harvard/AmericanStories
  - zZWipeoutZz/insane_style
  - mu-llama/MusicQA
  - RaphaelOlivier/whisper_adversarial_examples
  - huggingartists/metallica
  - vldsavelyev/guitar_tab
  - NLPCoreTeam/humaneval_ru
  - seungheondoh/audioset-music
  - gary109/onset-singing3_corpora_parliament_processed_MIR-ST500
  - LDD5522/Rock_Vocals
  - huggingartists/rage-against-the-machine
  - huggingartists/chester-bennington
  - huggingartists/logic
  - cmsolson75/artist_song_lyric_dataset
  - BhavyaMuni/artist-lyrics
  - vjain/emotional_intelligence
  - mhenrichsen/context-aware-splits
metrics:
  - accuracy
  - bertscore
  - bleu
  - bleurt
  - brier_score
  - character
  - chrf
language:
  - en
  - es
  - it
  - pt
  - la
  - fr
  - ru
  - zh
  - ja
  - el
library_name: transformers
tags:
  - music
pipeline_tag: text-to-speech
license: openrail
datasets:
  - irds/codesearchnet
  - giganticode/java-cmpx-v1
  - nickrosh/Evol-Instruct-Code-80k-v1
  - bigcode/starcoderdata
  - bigcode/the-stack
  - bigcode/the-stack-smol
  - Cdaprod/AI-Developer-Prompts
  - code_x_glue_ct_code_to_text
  - codeparrot/github-code
  - codeparrot/github-code-clean
  - code_x_glue_cc_code_completion_line
  - >-
    autoevaluate/autoeval-eval-jeffdshen__inverse_superglue_mixedp1-jeffdshen__inverse-63643c-1665558893
  - bentrevett/multi30k
  - edbeeching/decision_transformer_gym_replay
  - psyche/common_crawl
  - Birchlabs/openai-prm800k-solutions-only
  - openchat/openchat_sharegpt4_dataset
  - Open-Orca/OpenOrca
  - cjvt/slownet
  - para_crawl
  - zeroshot/twitter-financial-news-sentiment
  - laugustyniak/political-advertising-pl
  - code_search_net
  - sukaka/novelai-webui
  - P1ayer-1/chatgpt-conversations-chatlogs.net
  - daniel2588/sarcasm
  - psmathur/orca_minis_uncensored_dataset
  - player1537/Bloom-560m-trained-on-Wizard-Vicuna-Uncensored-trained-on-Based
  - shahules786/prosocial-nsfw-reddit
  - Thewillonline/reddit-sarcasm
  - datasciencemmw/current-data
  - Oniichat/bluemoon_roleplay_chat_data_300k_messages
  - dell-research-harvard/AmericanStories
  - b-mc2/sql-create-context
  - rahulmallah/autotrain-data-emotion-detection
  - theblackcat102/multiround-programming-convo
  - Lsavints/software_knowledgebase
  - RazinAleks/SO-Python_QA-Web_Development_class
  - codeparrot/apps
  - branles14/ultrachat-uncensored_full
  - vlsp-2023-vllm/en-to-vi-formal-informal-tranlations
  - fraug-library/english_contractions_extensions
  - spencer/software_slacks
  - Abirate/english_quotes
  - Nexdata/American_English_Natural_Dialogue_Speech_Data
  - Nexdata/Latin_American_Speaking_English_Speech_Data_by_Mobile_Phone
  - Nexdata/American_English_Speech_Data_by_Mobile_Phone_Reading
  - Nexdata/American_English_Speech_Synthesis_Corpus-Female
  - rombodawg/LimitlessCodeTraining
  - RikoteMaster/Emotion_Recognition_4_llama2
  - Villian7/Emotions_Data
  - alanland/llama2-self-cognition
  - CognitiveScience/coscidata
  - bibidentuhanoi/gideon_self_cognition
  - gollark/consciousness
  - juletxara/visual-spatial-reasoning
  - lintang/numerical_reasoning_arithmetic
  - reasoning-machines/gsm-hard
  - open-source-metrics/reinforcement-learning-checkpoint-downloads
  - igbo_english_machine_translation
  - US-Artificial-Intelligence/algemap
  - rombodawg/2XUNCENSORED_alpaca_840k_Evol_USER_ASSIS
  - griffin/chain_of_density
  - >-
    shirsh10mall/LLM_Instruct_Learning_Project_Preprocessed_Tokenized_Open_Orca_Dataset_Flan_T5
  - Thaweewat/chain-of-thought-74k-th
  - AlekseyKorshuk/chain-of-thoughts-chatml-deduplicated
  - dair-ai/emotion
  - hita/social-behavior-emotions
  - Bingsu/Human_Action_Recognition
  - anjandash/java-8m-methods-v1
  - nadiamaqbool81/java_code_instructions_1.178k_alpaca
  - DavidMOBrien/8000-java
  - rombodawg/LimitlessCodeTraining_1k-Python-Javascript_GuanacoFormat
  - angie-chen55/javascript-github-code
  - kye/all-lucidrain-python-3
  - Fraser/python-state-changes
  - ammarnasr/the-stack-ruby-clean
  - ammarnasr/the-stack-rust-clean
  - seyyedaliayati/solidity-dataset
  - jkhedri/psychology-dataset
  - KonradSzafer/stackoverflow_linux
  - vikp/textbook_quality_programming
  - rombodawg/LosslessMegaCodeTrainingV3_MINI
  - BelleGroup/multiturn_chat_0.8M
  - smangrul/code-chat-assistant-v1
  - goendalf666/sales-textbook_for_convincing_and_selling
  - readerbench/ConversationalAgent-Ro
  - beurkinger/autotrain-data-human-action-recognition
  - jpwahle/autoencoder-paraphrase-dataset
  - jpwahle/autoregressive-paraphrase-dataset
  - teknium/GPT4-LLM-Cleaned
  - Anthropic/model-written-evals
  - openai_humaneval
  - kye/all-google-ai-python-code
  - kye/all-openai-github-code
  - EleutherAI/lambada_openai
  - CShorten/ML-ArXiv-Papers
  - WaltonFuture/InstructionGPT-4
  - open-llm-leaderboard/details_AIDC-ai-business__Marcoroni-70B
  - seansullivan/INT-Business-Syllabus
  - theoldmandthesea/17k_business_book
  - SunRise228/business-doc
  - gauravshrm211/VC-startup-evaluation-for-investment
  - TuningAI/Startups_V1
  - TuningAI/Startups_V2
  - AdiOO7/llama-2-finance
  - scillm/scientific_papers
  - gokuls/wiki_book_corpus_complete_processed_bert_dataset
  - the_pile_books3
  - go_emotions
  - yizhongw/self_instruct
  - codeparrot/self-instruct-starcoder
  - Amani27/massive_translation_dataset
  - huggingface/transformers-metadata
  - hf-internal-testing/transformers-metadata
language:
  - en
  - it
  - fr
  - pt
  - la
  - ru
  - ro
  - el
  - ja
  - zh
  - ga
  - cy
  - gd
  - de
metrics:
  - accuracy
  - bertscore
  - bleu
  - code_eval
  - character
  - brier_score
  - cer
  - chrf
  - charcut_mt
  - bleurt
tags:
  - code
  - text-generation-inference
library_name: transformers
pipeline_tag: text-generation
public void LaunchBall()
    {
        velocity += constAcceleration * Time.deltaTime;

        RaycastHit2D hit = Physics2D.Raycast(transform.position, velocity.normalized, velocity.magnitude * Time.deltaTime, IsGroundLayer);
        if (hit.collider != null)
        {
            Vector2 reflectVelocity = Vector2.Reflect(velocity, hit.normal);
            reflectVelocity *= globalsSO.COR;
            velocity = reflectVelocity;
            if (velocity.sqrMagnitude < globalsSO.VelErrorCheck)
            {
                velocity = Vector2.zero;
                Destroy(gameObject);
                isLaunched = false;
            }
        }

        RaycastHit2D obstacleHit = Physics2D.Raycast(transform.position, velocity.normalized, velocity.magnitude * Time.deltaTime, obstacleLayer);
        if (obstacleHit.collider != null)
        {
            Vector2 reflectVelocity = Vector2.Reflect(velocity, obstacleHit.normal);
            reflectVelocity *= globalsSO.COR;
            velocity = reflectVelocity;
            if (velocity.sqrMagnitude < globalsSO.VelErrorCheck)
            {
                velocity = Vector2.zero;
                Destroy(gameObject);
                isLaunched = false;
            }
            Rigidbody2D obstacleRb = obstacleHit.collider.GetComponent<Rigidbody2D>();
            if (obstacleRb != null)
            {
                Vector2 forceDirection = transform.right;
                forceDirection.Normalize();
                obstacleRb.AddForce(forceDirection * impulseOnImpact, ForceMode2D.Impulse);
            }
            
        }

        transform.position += new Vector3(velocity.x * Time.deltaTime, velocity.y * Time.deltaTime, 0);
    }

    public void CalculateInitialVelocity()
    {
        horizontalSpeed = initialSpeed * Mathf.Cos(Mathf.Deg2Rad * launchAngle);
        verticalSpeed = initialSpeed * Mathf.Sin(Mathf.Deg2Rad * launchAngle);
        velocity = new Vector2(horizontalSpeed, verticalSpeed);
    }

    private void CalculateDragForce()
    {
        // Calculate drag force using initial speed
        float dragForce = -0.5f * globalsSO.Drag * globalsSO.Buoyancy * initialSpeed * initialSpeed * Mathf.PI * globalsSO.BallRadius * globalsSO.BallRadius;

        // Apply drag force to vertical velocity component
        velocity.y += (dragForce / globalsSO.BallMass) * Time.deltaTime;
    }

    private void CalculateConstantAcceleration()
    {
        Vector2 gravityForce = globalsSO.BallMass * globalsSO.Gravity * Vector2.down;
        Vector2 buoyancyForce = -globalsSO.BallMass * globalsSO.Gravity * Vector2.up;

        Vector2 netForce = gravityForce + buoyancyForce;
        constAcceleration = netForce / globalsSO.BallMass;
    }
}
public static List<Account> parentWithChildren() {
    List<Account> accounts = [SELECT Name, AccountSource, (SELECT Name FROM Contacts) FROM Account];

    for(Account nextAcct :accounts) {
        for(Contact nextContact :nextAcct.Contacts) {
            System.Debug(nextContact);
        }
    }

  return accounts;
}

// To access value from a lookup inside the inner query
List<Case> cases = [SELECT Id, CaseNumber, Subclassificacao__c, Status, (SELECT Id, Produto__r.Name FROM ProdutosDoCaso__r) FROM 
                    Case WHERE NTrackwise__c = '' and CreatedDate >= 2023-11-01T00:00:00.000+0000 and Status = 'MTO'];

for (Case c : cases) {
    System.debug('Case Number: ' + c.CaseNumber);
    System.debug('Subclassificacao: ' + c.Subclassificacao__c);
    System.debug('Status: ' + c.Status);

    // Iterate over related Produto__r records
    for (ProdutoDoCaso__c produto : c.ProdutosDoCaso__r) {
        System.debug('Produto Name: ' + produto.Produto__r.Name);
    }
}
  private void GeneratePlatform()
    {
        int currentDifficulty = GameManager.instance.difficulty;
        List<Transform> validParts = new List<Transform>();

        // Iterate through levelObject array and add parts with matching difficulty
        foreach (Transform part in levelObject)
        {
            LevelPart levelPart = part.GetComponent<LevelPart>();
            if (levelPart != null && levelPart.difficulty == currentDifficulty)
            {
                validParts.Add(part);
            }
        }

        while (Vector2.Distance(lasttLevelObjectSpawned.position, player.transform.position) < distanceToSpawn)
        {
            if (validParts.Count > 0)
            {
                // Randomly select a valid level part of the current difficulty
                Transform selectedPart = validParts[Random.Range(0, validParts.Count)];
                Vector2 newPosition = new Vector2(lasttLevelObjectSpawned.position.x - selectedPart.Find("StartPosition").position.x, 0);
                Transform newPart = Instantiate(selectedPart, newPosition, selectedPart.rotation, transform);
                lasttLevelObjectSpawned = newPart.Find("EndPosition").transform;
                spawnedObjects.Add(newPart);
            }
        }
    }
<!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">
    <link rel="icon" href="download.jpg" />
    <title>Online Shopping site in India: Shop Online for Mobiles, Books, Watches, Shoes and More - Amazon.in</title>

        <link rel="stylesheet" href="style.css" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
</head>
<body>
    <header class="header">
        <div class="container container-header">
            <div class="logo-container border-white">
                <div class="logo"></div>
                <span class="dotin">.in</span>
            </div>
            <div class="address-container border-white">
                <p class="hello">Hello</p>
                <div class="icon-address">
                    <i class="fa-solid fa-location-dot icon-location"></i>
                    <p>Select your address</p>
                </div>
            </div>

            <div class="search-container">
                <select class="search-select">
                    <option>All</option>
                </select>
                <input type="text" class="search-input" />
                <div class="search-icon">
                    <i class="fa-solid fa-magnifying-glass"></i>
                </div>
            </div>

            <div class="language-container border-white">
                <p>English</p>
                <div class="lauguge-image">
                    <img
                        src="https://media.istockphoto.com/vectors/vector-flag-of-the-republic-of-india-proportion-23-the-national-flag-vector-id1051236720?k=20&m=1051236720&s=612x612&w=0&h=ATObRTHmTosADa9zaB2dQPn_VAQmG1XYH2x92kzc304=" />
                </div>
            </div>

            <div class="login-container border-white">
                <p>Hello,<span>sign in</span></p>
                <p class="account">Account & Lists</p>
            </div>

            <div class="return-order-container">
                <p>Returns
                <div class="order">& Orders</div>
                </p>
            </div>

            <div class="cart-container border-white">
                <i class="fa-solid fa-cart-shopping"></i>
                Cart
            </div>
        </div>
    </header>
        <nav class="nav">
        <div class="container container-nav">
            <ul>
                <li class="border-white" id="open-nav-sidebar">
                    <span class="open-nav-slider">
                        <i class="fa-solid fa-bars"></i>
                        All
                    </span>
                </li>
                <li class="border-white"><a href="#">Best Sellers</a></li>
                <li class="border-white"><a href="#">Today's Deals</a></li>
                <li class="border-white"><a href="#">Mobiles</a></li>
                <li class="border-white"><a href="#">Customer Service</a></li>
                <li class="border-white"><a href="#">Electronic</a></li>
                <li class="border-white"><a href="#">Home & Kitchen</a></li>
                <li class="border-white"><a href="#">Fashion</a></li>
                <li class="border-white"><a href="#">Book</a></li>
                <li class="border-white prime-image-hover">
                    <a href="#">Prime</a>
                    <div class="prime-image">
                        <img
                            src="https://m.media-amazon.com/images/G/31/prime/NavFlyout/TryPrime/2018/Apr/IN-Prime-PIN-TryPrime-MultiBen-Apr18-400x400._CB442254244_.jpg" />
                    </div>

                </li>
            </ul>
            <div class="nav-right-image-amazon-prime">
                <img
                    src="https://m.media-amazon.com/images/G/31/img17/Home/AmazonTV/Ravina/Desktop/Watch-Entertainment-for-FREE_400-x39._CB605460886_.jpg" />
            </div>
        </div>
    </nav>

    <!--sidebar navigation-->
    <div class="sidebar-container-navigation" id="sidebar-container-navigation-id">
        <div class="sidebar-left-part">
            <div class="sidebar-top">
                <i class="fa-solid fa-circle-user"></i>
                <h2>Hello, <span>sign in</span></h2>
            </div>
            <div class="sidebar-wrap">
                <div class="sidebar-item">
                    <h2>Trending</h2>
                    <p>Best Sellers</p>
                    <p>New Releases</p>
                    <p>Movers and Shakers</p>
                </div>
                <div class="sidebar-item">
                    <h2>Digital Content And Devices</h2>
                    <p>Echo & Alexa</p>
                    <p>Fire TV</p>
                    <p>Kindle E-Readers & eBooks</p>
                    <p>Audible Audiobooks</p>
                    <p>Amazon Prime Video</p>
                    <p>Amazon Prime Music</p>
                </div>
                <div class="sidebar-item">
                    <h2>Shop By Category</h2>
                    <p>Mobiles, Computes</p>
                    <p>TV, Appliances, Electronic</p>
                    <p>Men's Fashion</p>
                    <p>Women's Fashion</p>
                    <p>See All</p>
                </div>
                <div class="sidebar-item">
                    <h2>Programs & Features</h2>
                    <p>Gift Cards & Mobile Recharges</p>
                    <p>Flight Tickets</p>
                    <p>#Foundlt-OnAmazon</p>
                    <p>Clearance store</p>
                </div>
                <div class="sidebar-item">
                    <h2>Help & Settings</h2>
                    <p>Your Account</p>
                    <p>Customer Service</p>
                    <p>Sign in</p>
                </div>
            </div>
        </div>
        <button id="sidebar-navigation-close">
            <i class="fa-solid fa-xmark"></i>
        </button>
    </div>




    <!--image slider -->
    <section>
        <div class="image-container">
            <div class="image-list">
                <div class="image-item">
                    <img src="https://m.media-amazon.com/images/I/71cp9PVuTfL._SX3000_.jpg" />
                </div>
                <div class="image-item">
                    <img src="https://m.media-amazon.com/images/I/61GnAucagBL._SX3000_.png" />
                </div>
                <div class="image-item">
                    <img src="https://m.media-amazon.com/images/I/71qlKqpJnlL._SX3000_.jpg" />
                </div>
                <div class="image-item">
                    <img src="https://m.media-amazon.com/images/I/71cQMXCLSvL._SX3000_.jpg" />
                </div>
                <div class="image-item">
                    <img src="https://m.media-amazon.com/images/I/61aURrton0L._SX3000_.jpg" />
                </div>
                <div class="image-item">
                    <img src="https://m.media-amazon.com/images/I/61O72XhcEkL._SX3000_.jpg" />
                </div>
                <div class="image-item">
                    <img src="https://m.media-amazon.com/images/I/61VuJdpjvaL._SX3000_.jpg" />
                </div>
                <div class="image-item">
                    <img src="https://m.media-amazon.com/images/I/61UrRx+3LLL._SX3000_.jpg" />
                </div>
            </div>

            <div class="image-btn-container">

                <button class="slider-btn" id="slide-btn-left"><i class="fa-solid fa-chevron-left"></i></button>
                <button class="slider-btn" id="slide-btn-right"><i class="fa-solid fa-chevron-right"></i></i></button>
            </div>
        </div>
    </section>


    <!--product container card-->
    <main class="main">
        <div class="card-product-container container">
            <div class="card-product">
                <h2>Up to 60% off | Styles for Men</h2>
                <div class="card-product-nested-card">
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/Fashion/Gateway/BAU/BTF-Refresh/May/PF_MF/MF-1-186-116._SY116_CB636110853_.jpg" />
                        <p>clothing</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/Fashion/Gateway/BAU/BTF-Refresh/May/PF_MF/MF-3-186-116._SY116_CB636110853_.jpg" />
                        <p>Footwear</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_3._SY116_CB606110532_.jpg" />
                        <p>Watches</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/Fashion/Gateway/BAU/BTF-Refresh/May/PF_MF/MF-4-186-116._SY116_CB636110853_.jpg" />
                        <p>Bags & language</p>
                    </div>
                </div>
                <button class="card-product-btn">see more</button>
            </div>
            <div class="card-product">
                <h2>Redefine your living room</h2>
                <div class="card-product-nested-card">
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/IMG20/Furniture/furniture_node_1/372_232_03_low._SY116_CB605507312_.jpg" />
                        <p>Sofa cum beds</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/IMG20/Furniture/furniture_node_1/372_232_04_low._SY116_CB605507312_.jpg" />
                        <p>Office chairs & study</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/IMG20/Furniture/furniture_node_1/372_232_01_low._SY116_CB605507312_.jpg" />
                        <p>Bean bags</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/IMG20/Furniture/furniture_node_1/372_232_02_low._SY116_CB605507312_.jpg" />
                        <p>Explore all</p>
                    </div>
                </div>
                <button class="card-product-btn">Visit our furniture store</button>
            </div>
            <div class="card-product">
                <h2>Top rated, premium quality | Amazon Brands &</h2>
                <div class="card-product-nested-card">
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_1._SY116_CB606110532_.jpg" />
                        <p>Home Products</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_5._SY116_CB606110532_.jpg" />
                        <p>Furniture</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_3._SY116_CB606110532_.jpg" />
                        <p>Daily essentials</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_8._SY116_CB606110532_.jpg" />
                        <p>Fashion</p>
                    </div>
                </div>
                <button class="card-product-btn">see more</button>
            </div>
            <div class="card-product">
                <h2>Top rated, premium quality | Amazon Brands &</h2>
                <div class="card-product-nested-card">
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_1._SY116_CB606110532_.jpg" />
                        <p>Home Products</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_5._SY116_CB606110532_.jpg" />
                        <p>Furniture</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_3._SY116_CB606110532_.jpg" />
                        <p>Daily essentials</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_8._SY116_CB606110532_.jpg" />
                        <p>Fashion</p>
                    </div>
                </div>
                <button class="card-product-btn">see more</button>
            </div>
        </div>

        <div class="card-product-container container productBackgraound">
            <div class="card-product">
                <h2>Top rated, premium quality | Amazon Brands &</h2>
                <div class="card-product-nested-card">
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_1._SY116_CB606110532_.jpg" />
                        <p>Home Products</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_5._SY116_CB606110532_.jpg" />
                        <p>Furniture</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_3._SY116_CB606110532_.jpg" />
                        <p>Daily essentials</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_8._SY116_CB606110532_.jpg" />
                        <p>Fashion</p>
                    </div>
                </div>
                <button class="card-product-btn">see more</button>
            </div>
            <div class="card-product">
                <h2>Top rated, premium quality | Amazon Brands &</h2>
                <div class="card-product-nested-card">
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_1._SY116_CB606110532_.jpg" />
                        <p>Home Products</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_5._SY116_CB606110532_.jpg" />
                        <p>Furniture</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_3._SY116_CB606110532_.jpg" />
                        <p>Daily essentials</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_8._SY116_CB606110532_.jpg" />
                        <p>Fashion</p>
                    </div>
                </div>
                <button class="card-product-btn">see more</button>
            </div>
            <div class="card-product">
                <h2>Top rated, premium quality | Amazon Brands &</h2>
                <div class="card-product-nested-card">
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_1._SY116_CB606110532_.jpg" />
                        <p>Home Products</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_5._SY116_CB606110532_.jpg" />
                        <p>Furniture</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_3._SY116_CB606110532_.jpg" />
                        <p>Daily essentials</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_8._SY116_CB606110532_.jpg" />
                        <p>Fashion</p>
                    </div>
                </div>
                <button class="card-product-btn">see more</button>
            </div>
            <div class="card-product">
                <h2>Top rated, premium quality | Amazon Brands &</h2>
                <div class="card-product-nested-card">
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_1._SY116_CB606110532_.jpg" />
                        <p>Home Products</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_5._SY116_CB606110532_.jpg" />
                        <p>Furniture</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_3._SY116_CB606110532_.jpg" />
                        <p>Daily essentials</p>
                    </div>
                    <div class="card-nested">
                        <img
                            src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/BAU/Oct/186X116_8._SY116_CB606110532_.jpg" />
                        <p>Fashion</p>
                    </div>
                </div>
                <button class="card-product-btn">see more</button>
            </div>
        </div>

    
    <!--today's deals -->
    <section class="today_deals_container">
        <div class="today_deals_heading">
            <h1>Today's Deals</h1>
            <p><a href="#">See all deals</a></p>
        </div>

        <div class="today_deals_product_container">
            <div class="today_deals_btn_container">
                <button  class="today_deal_btn" id="today_deal_btn_prev">
                    <i class="fa-solid fa-angle-left"></i>
                </button>
                <button class="today_deal_btn" id="today_deal_btn_next">
                    <i class="fa-solid fa-angle-right"></i>
                </button>
            </div>

            <div class="today_deals_product_list">
                <div class="today_deals_product_item">
                    <img src="https://m.media-amazon.com/images/I/411mbYGYIdL._AC_SY200_.jpg"/>
                    <div class="discount_Contaienr">
                        <a href="#">Up to 52% off</a>
                        <a href="#">Deal of the day</a>
                    </div>
                    <p>adidas and Campus Footwear</p>
                </div>

                <div class="today_deals_product_item">
                    <img src="https://m.media-amazon.com/images/I/411mbYGYIdL._AC_SY200_.jpg"/>
                    <div class="discount_Contaienr">
                        <a href="#">Up to 52% off</a>
                        <a href="#">Deal of the day</a>
                    </div>
                    <p>adidas and Campus Footwear</p>
                </div>

                <div class="today_deals_product_item">
                    <img src="https://m.media-amazon.com/images/I/411mbYGYIdL._AC_SY200_.jpg"/>
                    <div class="discount_Contaienr">
                        <a href="#">Up to 52% off</a>
                        <a href="#">Deal of the day</a>
                    </div>
                    <p>adidas and Campus Footwear</p>
                </div>

                <div class="today_deals_product_item">
                    <img src="https://m.media-amazon.com/images/I/411mbYGYIdL._AC_SY200_.jpg"/>
                    <div class="discount_Contaienr">
                        <a href="#">Up to 52% off</a>
                        <a href="#">Deal of the day</a>
                    </div>
                    <p>adidas and Campus Footwear</p>
                </div>

                <div class="today_deals_product_item">
                    <img src="https://m.media-amazon.com/images/I/411mbYGYIdL._AC_SY200_.jpg"/>
                    <div class="discount_Contaienr">
                        <a href="#">Up to 52% off</a>
                        <a href="#">Deal of the day</a>
                    </div>
                    <p>adidas and Campus Footwear</p>
                </div>
            </div>
        </div>
    </section>
    </main>
</body>

</html>
// C++ Program to demonstrate
// Use of template
#include <iostream>
using namespace std;
 
// One function works for all data types.  This would work
// even for user defined types if operator '>' is overloaded
template <typename T> T myMax(T x, T y)
{
    return (x > y) ? x : y;
}
 
int main()
{
    // Call myMax for int
    cout << myMax<int>(3, 7) << endl;
    // call myMax for double
    cout << myMax<double>(3.0, 7.0) << endl;
    // call myMax for char
    cout << myMax<char>('g', 'e') << endl;
 
    return 0;
}
    // Iterating over whole array
    std::vector<int> v = { 0, 1, 2, 3, 4, 5 };
    for (auto i : v)
        std::cout << i << ' ';
  
    std::cout << '\n';

      // Iterating over array
    int a[] = { 0, 1, 2, 3, 4, 5 };
    for (int n : a)
        std::cout << n << ' ';
    s
    td::cout << '\n';
  
    // the initializer may be a braced-init-list
    for (int n : { 0, 1, 2, 3, 4, 5 })
        std::cout << n << ' ';

    std::cout << '\n';
  
    // Printing string characters
    std::string str = "Geeks";
    for (char c : str)
        std::cout << c << ' ';
#include <iostream>
using namespace std;
 
void fun(int *arr, unsigned int n)
{
   int i;
   for (i = 0; i < n; i++)
     cout <<" "<< arr[i];
}
 
// Driver program
int main()
{
   int arr[] = {1, 2, 3, 4, 5, 6, 7, 8};
   unsigned int n = sizeof(arr)/sizeof(arr[0]);
   fun(arr, n);
   return 0;
}
extends Node3D

var road_connections = [preload("res://city builder/road_forward/road_forward.obj"),
						preload("res://city builder/road_turn_right/road_turn_right.obj"),
						preload("res://city builder/road_t_connection/road_t_connection.obj"),
						preload("res://city builder/road_cross_section/road_cross_section.obj") ]

func _ready():
	update_mesh()

func update_mesh():
	for i in $rays.get_children():
		i.force_raycast_update()
	
	if $rays/ray.get_collider() != null || $rays/ray2.get_collider() != null || $rays/ray3.get_collider() != null || $rays/ray4.get_collider() != null:
		$mesh.mesh = road_connections[0]
		rotation_degrees = Vector3(0, check_if_front(), 0)
	
	check_for_turns()
	
	check_for_t_connection()
	
	if $rays/ray.get_collider() != null && $rays/ray2.get_collider() != null && $rays/ray3.get_collider() != null && $rays/ray4.get_collider() != null:
		$mesh.mesh = road_connections[3]

func check_for_turns():
	if $rays/ray.get_collider() != null && $rays/ray3.get_collider() != null:
		$mesh.mesh = road_connections[1]
		rotation_degrees = Vector3(0,0,0)
	elif $rays/ray2.get_collider() != null && $rays/ray3.get_collider() != null:
		$mesh.mesh = road_connections[1]
		rotation_degrees = Vector3(0,90,0)
	elif $rays/ray.get_collider() != null && $rays/ray4.get_collider() != null:
		$mesh.mesh = road_connections[1]
		rotation_degrees = Vector3(0,-90,0)
	elif $rays/ray2.get_collider() != null && $rays/ray4.get_collider() != null:
		$mesh.mesh = road_connections[1]
		rotation_degrees = Vector3(0,-180,0)

func check_for_t_connection():
	if $rays/ray2.get_collider() != null && $rays/ray3.get_collider() != null && $rays/ray4.get_collider() != null:
		$mesh.mesh = road_connections[2]
		rotation_degrees = Vector3(0, 180, 0)
		
	elif $rays/ray.get_collider() != null && $rays/ray3.get_collider() != null && $rays/ray4.get_collider() != null:
		$mesh.mesh = road_connections[2]
		rotation_degrees = Vector3(0, 0, 0)
		
	elif $rays/ray.get_collider() != null && $rays/ray2.get_collider() != null && $rays/ray4.get_collider() != null:
		$mesh.mesh = road_connections[2]
		rotation_degrees = Vector3(0, -90, 0)
	
	elif $rays/ray.get_collider() != null && $rays/ray2.get_collider() != null && $rays/ray3.get_collider() != null:
		$mesh.mesh = road_connections[2]
		rotation_degrees = Vector3(0, 90, 0)

func check_if_front():
	if $rays/ray.get_collider() != null:
		return -90
	if $rays/ray2.get_collider() != null:
		return 90
	if $rays/ray.get_collider() != null:
		return 0
	if $rays/ray2.get_collider() != null:
		return 0
	else:
		return 0

func return_facing_dir(obj):
	$rays/ray.force_raycast_update()
	
	if $rays/ray.get_collider() != obj:
		return false
	return true
#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
int wt[105], val[105];
int dp[105][100005];

int func(int ind, int wt_left)
{
    if (wt_left == 0)
        return 0;
    if (ind < 0)
        return 0;
    if (dp[ind][wt_left] != -1)
        return dp[ind][wt_left];
    // Don't choose
    int ans = func(ind - 1, wt_left);
    // Choose
    if (wt_left - wt[ind] >= 0)
        ans = max(ans, func(ind - 1, wt_left - wt[ind]) + val[ind]);
    return dp[ind][wt_left] = ans;
}
void printDPArray(int n, int w)
{
    for (int i = 0; i <= n; i++)
    {
        for (int j = 0; j <= w; j++)
        {
            cout << dp[i][j] << " ";
        }
        cout << endl;
    }
}

int main()
{
    memset(dp, -1, sizeof(dp));
    int n, w; // n=no of item, w= knapsack weight
    cin >> n >> w;
    for (int i = 0; i < n; i++)
    {
        cin >> wt[i] >> val[i];
    }
    cout << func(n - 1, w);
    printDPArray(n, w);

    return 0;
}
/*
3 8
3 30
4 50
5 60
*/

/////////////////////////////////////////////////////////////////////////
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n ,max_weight;
    cin >> n>> max_weight;
    int profit[n+1],weight[n+1];
    for(int i =0 ; i< n ;i++)
    {
        cin >> profit[i];
    }
    for(int i =0 ; i < n ;i++)
    cin >> weight[i];
    
    int v [n+1][max_weight+1];
    for(int i =0 ; i<=n;i++ )
    {
        for(int w=0 ; w<=max_weight ; w++)
        {
            if(w == 0 or i == 0)
            v[i][w] = 0;
            else if( weight[i] <=w ) 
            {
                v[i][w] = max ( profit[i] + v[i-1][w-weight[i]], v[i-1][w]);
            }
            else 
            v[i][w] = v[i-1][w];
        }
    }
    for(int i=0 ; i<=n ; i++)
    {
        for(int w=0;w<=max_weight;w++)
        {
            cout << v[i][w] << " ";
        }
        cout << endl;
    }
}
//////////////////////////////////////////////////////////////////////////
#include <bits/stdc++.h>
#define N 2e6
#define ll long long
using namespace std;
ll wt[105], cost[105], vol[105];
int V;
ll dp[105][105][105];
ll func(ll i, ll weight_left, ll volume)
{
    if (weight_left == 0 && volume >= V)
        return 0;
    if (i < 0 && volume >= V)
        return 0;
    if (weight_left == 0 || i < 0)
        return INT_MIN;
    if (dp[i][weight_left][volume] != -1)
        return dp[i][weight_left][volume];
    ll x = func(i - 1, weight_left, volume);
    if (weight_left - wt[i] >= 0)
        x = max(func(i - 1, weight_left - wt[i], volume + vol[i]) + cost[i], x);
    return dp[i][weight_left][volume] = x;
}
int main()
{
    ll n, weight;
    cin >> n >> weight >> V;
    memset(dp, -1, sizeof(dp));
    for (ll i = 0; i < n; i++)
    {
        cin >> wt[i] >> cost[i] >> vol[i];
    }
    cout << func(n - 1, weight, 0) << endl;
}
function userScroll() {
  const navbar = document.querySelector('.navbar');

  window.addEventListener('scroll', () => {
    if (window.scrollY > 50) {
      navbar.classList.add('bg-dark');
    } else {
      navbar.classList.remove('bg-dark');
    }
  });
}

document.addEventListener('DOMContentLoaded', userScroll);
.carousel-control-prev-icon,
.carousel-control-next-icon {
  height: 100px;
  width: 100px;
  outline: black;
  background-size: 100%, 100%;
  border-radius: 50%;
  border: 1px solid black;
  background-image: none;
}

.carousel-control-next-icon:after
{
  content: '>';
  font-size: 55px;
  color: red;
}

.carousel-control-prev-icon:after {
  content: '<';
  font-size: 55px;
  color: red;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    height: 100px;
    width: 100px;
    outline: black;
    background-color: rgba(0, 0, 0, 0.3);
    background-size: 100%, 100%;
    border-radius: 50%;
    border: 1px solid black;
}
$my_repeater = get_field('cosa_facciamo_home');

            // Verifica se il campo ripetitore esiste
            if ($my_repeater) :
                
                // Loop attraverso le istanze del campo ripetitore
                foreach ($my_repeater as $item) :
                    // Recupera il campo di gruppo all'interno del ripetitore
                    $my_group = $item['cosa_facciamo_items'];

                    // Recupera i valori all'interno del campo di gruppo
                    $field_value_1 = $my_group['titolo_cosa-facciamo'];
                    $field_value_2 = $my_group['testo_cosa_facciamo'];

                    // Puoi ora utilizzare questi valori come desideri
                    echo 'Valore del campo personalizzato 1: ' . $field_value_1 . '<br>';
                    echo 'Valore del campo personalizzato 2: ' . $field_value_2 . '<br>';
                endforeach;
            endif;
    // Assign vector
    vector<int> v;
 
    // fill the vector with 10 five times
    v.assign(5, 10);
 
    cout << "The vector elements are: ";
    for (int i = 0; i < v.size(); i++)
        cout << v[i] << " ";
 
    // inserts 15 to the last position
    v.push_back(15);
    int n = v.size();
    cout << "\nThe last element is: " << v[n - 1];
 
    // removes last element
    v.pop_back();
 
    // prints the vector
    cout << "\nThe vector elements are: ";
    for (int i = 0; i < v.size(); i++)
        cout << v[i] << " ";
 
    // inserts 5 at the beginning
    v.insert(v.begin(), 5);
 
    cout << "\nThe first element is: " << v[0];
 
    // removes the first element
    v.erase(v.begin());
 
    cout << "\nThe first element is: " << v[0];
 
    // inserts at the beginning
    v.emplace(v.begin(), 5);
    cout << "\nThe first element is: " << v[0];
 
    // Inserts 20 at the end
    v.emplace_back(20);
    n = v.size();
    cout << "\nThe last element is: " << v[n - 1];
 
    // erases the vector
    v.clear();
    cout << "\nVector size after clear(): " << v.size();
 
    // two vector to perform swap
    vector<int> v1, v2;
    v1.push_back(1);
    v1.push_back(2);
    v2.push_back(3);
    v2.push_back(4);
 
    // Swaps v1 and v2
    v1.swap(v2);
var grSysEmail = new GlideRecord('sys_email');
grSysEmail.addEncodedQuery("type=send-ready");
grSysEmail.query();
while (grSysEmail.next()) {
grSysEmail.state = 'processed';
grSysEmail.type= 'sent';
grSysEmail.update();
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>OS Maps API | Basic Map ZXY (EPSG:3857) | Leaflet</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/OrdnanceSurvey/os-api-branding@0.3.1/os-api-branding.css" />
    <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-omnivore/0.3.4/leaflet-omnivore.min.js"></script>
    <style>
        body, html { height: 100%; margin:0; padding:0; }
        
        #container {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        #map {
            flex-grow: 1;
        }

        #os-link-button {
            background-color: purple;
            color: white;
            text-align: center;
            padding: 15px 0;
            font-size: 16px;
            border: none;
            cursor: pointer;
            text-decoration: none;
        }
    </style>
</head>
<body>

<div id="container">
    <div id="map"></div>
    <a href="https://explore.osmaps.com/route/9146189/ashby-canal--hinckley-to-sutton-cheney-wharf?lat=52.561037&lon=-1.426466&zoom=12.9065&style=Leisure&type=2d" id="os-link-button">View this route in OS Maps</a>
</div>

<script src="https://cdn.jsdelivr.net/gh/OrdnanceSurvey/os-api-branding@0.3.1/os-api-branding.js"></script>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script>
    const apiKey = '[key to go here]';

    const mapOptions = {
        minZoom: 7,
        maxZoom: 20,
        center: [54.425, -2.968],
        zoom: 14,
        maxBounds: [
            [49.528423, -10.76418],
            [61.331151, 1.9134116]
        ],
        attributionControl: false
    };

    const map = L.map('map', mapOptions);

    const basemap = L.tileLayer('https://api.os.uk/maps/raster/v1/zxy/Outdoor_3857/{z}/{x}/{y}.png?key=' + apiKey, {
        maxZoom: 20
    }).addTo(map);

    var firstWaypoint = true;
    var lastLatLng;

    var customLayer = L.geoJson(null, {
        pointToLayer: function(feature, latlng) {
            lastLatLng = latlng;
            if (firstWaypoint) {
                firstWaypoint = false;
                return L.marker(latlng);
            }
            return null;
        }
    });

    omnivore.gpx('route2.gpx', null, customLayer).on('ready', function() {
        map.fitBounds(this.getBounds());
        L.marker(lastLatLng).addTo(map);
    }).addTo(map);
</script>

</body>
</html>
python -m ipykernel install --user --name <conda_environment_name> --display-name "<Display_name>"
#Setup SSH Access

1. Copy from access env via ssh (Open Tool -> SSH)
/bin/bash <(curl -s --insecure "https://10.27.40.23/user/aisquad/integratedTest/shared/ssh/setup?token=b8400e90e97c016d1596c21fa993e94b5c1e37fa&host=10.27.40.23&port=443")

2. Give a name and select yes yes for multiple questions

3. execute below to copy 
scp -r root@hardik_connection_to_integrated:/workspace/pa_demand_forecast/pa_demand_forecast/raw_forecast/_demandforecaster_model_ASA_REGION_ID_GOOD_2022 /workspace/PyCharm/pa_demand_forecast/pa_demand_forecast/raw_forecast
function edit_button_shortcode() {
    // Check if the user is logged in
    if (is_user_logged_in()) {
        global $wpdb;
        $user_id = get_current_user_id();

        // Check if the user's ID exists in the wp_fluentform_submissions table
        $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM {$wpdb->prefix}fluentform_submissions WHERE user_id = %d", $user_id));

        // If the user's ID exists in the table, display the "Edit" button
        if ($results) {
            return '<a href="YOUR_EDIT_URL_HERE" class="edit-button">Edit</a>';
        }
    }
    return '';  // If the user is not logged in or their ID doesn't exist in the table, return an empty string
}
add_shortcode('edit_button', 'edit_button_shortcode');
<!DOCTYPE html>

<html lang="en">
<head>
          
           <meta charset="UTF-8">
           <meta http-equiv="x-UV-compabite" constant="IE=edge">
           <meta name="viewport"content="width=device-width-,imitial-scale=1.0">
        
</head>
<body>
       
       <p>
               some text 
       
       </p>
       <script>
             
               window.alert("welcome to masai javascript tutoria!")
       
      </script>

</body>
</html>
//#TUPLE Programs
t1=[]
t2=[]
flag=0
n=int(input("Enter number of elements: "))
for i in range(n):
    val=int(input("Enter element for tuple1: "))
    t1.append(val)
for i in range(n):
    val=int(input("Enter element for tuple2: "))
    t2.append(val)
t1=tuple(t1)
t2=tuple(t2)
print("Tuple1: ")
for i in range(len(t1)):
    print(t1[i],end=" ")
print()
print("Tuple2: ")
for i in range(len(t2)):
    print(t2[i],end=" ")
print()
res1=[]
res2=[]
res3=[]
for i in range(0,len(t1)):
    res1.append(t1[i]+t2[i])
    res2.append(t1[i]-t2[i])
    res3.append(t1[i]*t2[i])
res1=tuple(res1)
res2=tuple(res2)
res3=tuple(res3)
print("Addition: ",res1)
print("Substraction: ",res2)
print("Multiplication: ",res3)
key=int(input("Enter value: "))
for i in t1:
        if(key==i):
            print("Element Found!!")
            flag=1
if(flag==0):
    print("Not Found!!")






//SET-Principal of inclusion exclusion 
a={1,2,4,5,8,13}
b={2,4,6,8,10}
n1=len(a)
n2=len(b)
n3=len(a|b)
n4=len(s1-(s1-s2))
print("LHS:n(A uni B)= ",n3)
print("RHS: n(A)+n(B)-n(A int B)= ",n1+n2-n4)
print("LHS=RHS")

//Divisibility by 2,3,5
n=100
n1=0 #Divisible by 2 
n2=0 #Divisible by 3
n3=0 #Divisible by 5
n4=0 #Divisible by 2&3
n5=0 #Divisible by 2&5
n6=0 #Divisible by 3&5
n7=0 #Divisible by 2&3&%
for i in range(1,n+1):
    if(i%2==0):
        n1+=1
    if(i%3==0):
        n2+=1
    if(i%5==0):
        n3+=1
    if(i%6==0):
        n4+=1
    if(i%10==0):
        n5+=1
    if(i%15==0):
        n6+=1
    if(i%30==0):
        n7+=1
print("Divisible by 2 or 3 or 5: ",n1+n2+n3-n4-n5-n6+n7)
star

Thu Oct 05 2023 01:57:40 GMT+0000 (Coordinated Universal Time)

@kimthanh1511 #python

star

Thu Oct 05 2023 01:57:39 GMT+0000 (Coordinated Universal Time)

@kimthanh1511 #python

star

Thu Oct 05 2023 01:50:24 GMT+0000 (Coordinated Universal Time)

@HUMRARE7 #sql #vba #ilink #lis #gqry

star

Wed Oct 04 2023 20:39:58 GMT+0000 (Coordinated Universal Time)

@jaez #mysql

star

Wed Oct 04 2023 19:47:33 GMT+0000 (Coordinated Universal Time) https://jonlabelle.com/snippets/view/csharp/linq-cheatsheet

@Draco6978

star

Wed Oct 04 2023 18:20:02 GMT+0000 (Coordinated Universal Time)

@vs

star

Wed Oct 04 2023 18:14:11 GMT+0000 (Coordinated Universal Time) https://web3js.readthedocs.io/en/v1.2.11/web3.html

@david

star

Wed Oct 04 2023 18:13:54 GMT+0000 (Coordinated Universal Time) https://web3js.readthedocs.io/en/v1.2.11/web3.html

@david

star

Wed Oct 04 2023 18:13:35 GMT+0000 (Coordinated Universal Time) https://web3js.readthedocs.io/en/v1.2.11/web3.html

@david

star

Wed Oct 04 2023 18:13:19 GMT+0000 (Coordinated Universal Time) https://web3js.readthedocs.io/en/v1.2.11/web3.html

@david

star

Wed Oct 04 2023 18:13:05 GMT+0000 (Coordinated Universal Time) https://web3js.readthedocs.io/en/v1.2.11/web3.html

@david

star

Wed Oct 04 2023 18:12:29 GMT+0000 (Coordinated Universal Time) https://web3js.readthedocs.io/en/v1.2.11/glossary.html#json-interface

@david

star

Wed Oct 04 2023 17:12:46 GMT+0000 (Coordinated Universal Time)

@farzan_basha

star

Wed Oct 04 2023 16:47:59 GMT+0000 (Coordinated Universal Time)

@susobhandash #css

star

Wed Oct 04 2023 15:21:11 GMT+0000 (Coordinated Universal Time)

@pullamma

star

Wed Oct 04 2023 14:52:38 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/

@rtrmukesh

star

Wed Oct 04 2023 14:14:20 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/

@rtrmukesh

star

Wed Oct 04 2023 13:10:32 GMT+0000 (Coordinated Universal Time) http://139.162.9.162/wptwo/wp-admin/plugin-editor.php?plugin

@hasan1d2d

star

Wed Oct 04 2023 12:24:31 GMT+0000 (Coordinated Universal Time)

@sagarmaurya19

star

Wed Oct 04 2023 12:22:30 GMT+0000 (Coordinated Universal Time)

@sagarmaurya19

star

Wed Oct 04 2023 12:21:55 GMT+0000 (Coordinated Universal Time)

@sagarmaurya19

star

Wed Oct 04 2023 12:21:04 GMT+0000 (Coordinated Universal Time)

@sagarmaurya19

star

Wed Oct 04 2023 12:20:33 GMT+0000 (Coordinated Universal Time)

@Feyi

star

Wed Oct 04 2023 12:20:32 GMT+0000 (Coordinated Universal Time)

@sagarmaurya19

star

Wed Oct 04 2023 11:00:32 GMT+0000 (Coordinated Universal Time)

@JimmyM

star

Wed Oct 04 2023 07:22:24 GMT+0000 (Coordinated Universal Time) https://www.addustechnologies.com/blog/maximize-profits-with-arbitrage-trading-bot

@jonathandaveiam #arbitrage #cryptotradingbot #cryptocurrency

star

Wed Oct 04 2023 03:52:29 GMT+0000 (Coordinated Universal Time) https://huggingface.co/or4cl3ai/SoundSlayerAI/blob/main/README.md

@or4cl3ai

star

Wed Oct 04 2023 03:43:24 GMT+0000 (Coordinated Universal Time) https://huggingface.co/or4cl3ai/Aiden_t5/blob/main/README.md

@or4cl3ai

star

Wed Oct 04 2023 03:11:42 GMT+0000 (Coordinated Universal Time)

@juanesz

star

Wed Oct 04 2023 02:10:00 GMT+0000 (Coordinated Universal Time)

@gbritgs #javascript

star

Wed Oct 04 2023 01:31:20 GMT+0000 (Coordinated Universal Time)

@juanesz

star

Wed Oct 04 2023 01:08:17 GMT+0000 (Coordinated Universal Time)

@farzan_basha

star

Tue Oct 03 2023 19:32:17 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/templates-cpp/

@ivo8871

star

Tue Oct 03 2023 19:10:19 GMT+0000 (Coordinated Universal Time)

@ivo8871 #cpp

star

Tue Oct 03 2023 18:50:27 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/how-arrays-are-passed-to-functions-in-cc/

@ivo8871 #cpp

star

Tue Oct 03 2023 18:19:11 GMT+0000 (Coordinated Universal Time)

@awaist

star

Tue Oct 03 2023 17:30:04 GMT+0000 (Coordinated Universal Time)

@jin_mori

star

Tue Oct 03 2023 16:49:01 GMT+0000 (Coordinated Universal Time)

@destinyChuck #javascript

star

Tue Oct 03 2023 15:46:16 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/46249541/change-arrow-colors-in-bootstraps-carousel

@destinyChuck #css

star

Tue Oct 03 2023 15:43:02 GMT+0000 (Coordinated Universal Time) http://pascalcessac.monorganisation.fr/administrator/index.php?option

@pcessac

star

Tue Oct 03 2023 15:39:45 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/46249541/change-arrow-colors-in-bootstraps-carousel

@destinyChuck #html

star

Tue Oct 03 2023 15:14:56 GMT+0000 (Coordinated Universal Time)

@alice #php

star

Tue Oct 03 2023 15:02:11 GMT+0000 (Coordinated Universal Time)

@ivo8871 #cpp

star

Tue Oct 03 2023 14:31:52 GMT+0000 (Coordinated Universal Time)

#javascript
star

Tue Oct 03 2023 13:22:49 GMT+0000 (Coordinated Universal Time)

@mattcuckston

star

Tue Oct 03 2023 13:11:12 GMT+0000 (Coordinated Universal Time)

@hardikraja #commandline

star

Tue Oct 03 2023 13:10:13 GMT+0000 (Coordinated Universal Time)

@hardikraja #commandline

star

Tue Oct 03 2023 09:08:28 GMT+0000 (Coordinated Universal Time)

@rocky@2004

star

Tue Oct 03 2023 06:33:09 GMT+0000 (Coordinated Universal Time)

@Astik

Save snippets that work with our extensions

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