Snippets Collections
var validator = require('validator');

tea_email: {
            type: String,
            required: true,
            unique: true,
            lowercase: true,
            // validate: [validator.isEmail, 'Please enter a valid email']
            validate(value){
                if(!validator.isEmail(value)){
                    throw new Error('Please enter a valid email');
                }
            }
        },
$('#satuan').on('select2:select', function (e) {
        const value = $(this).val();
        
        if (value === 'new') {
            const promptValue = prompt('Tambah List:');
            
            if (promptValue) {
                const data = {
                    id: promptValue,
                    text: promptValue,
                }
                const newOption = new Option(data.text, data.id, false, false);
                $('#satuan')
                    .append(newOption)
                    .trigger('change')
                    .val(promptValue);
            }
        }
    });
using SitefinityWebApp.Extension;
using SitefinityWebApp.Mvc.Models;
using System;
using Telerik.Sitefinity.DynamicModules.Model;
using Telerik.Sitefinity.DynamicModules.PublishingSystem;
using Telerik.Sitefinity.Model;
using Telerik.Sitefinity.Publishing;

namespace SitefinityWebApp.Search
{
    public class CarouselBannerInboundPipe : DynamicContentInboundPipe
    {
        protected override void SetProperties(WrapperObject wrapperObject, DynamicContent contentItem)
        {
            base.SetProperties(wrapperObject, contentItem);
            UpdateFields(wrapperObject, contentItem);
        }

        public static void RegisterPipe()
        {
            try
            {
                var pipe = string.Format("{0}Pipe", CarouselBannerModuleBuilder.Type);
                PublishingSystemFactory.UnregisterPipe(pipe);
                PublishingSystemFactory.RegisterPipe(pipe, typeof(CarouselBannerInboundPipe));
            }
            catch (Exception ex)
            {
                Telerik.Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Writer.Write(ex.Message);
            }
        }

        public void UpdateFields(WrapperObject item, IDataItem contentItem)
        {
            try
            {
                DynamicContent content = contentItem as DynamicContent;
                item.SetOrAddProperty("si_issearch", true);
                item.SetOrAddProperty("si_urlname", content.UrlName.ToString());

                item.SetOrAddPropertyCustom4Text(content, CarouselBannerModuleBuilder.Title);
                item.SetOrAddPropertyCustom4Image(content, CarouselBannerModuleBuilder.Image, new string[] { "1080_433" });
                item.SetOrAddPropertyCustom4Image(content, CarouselBannerModuleBuilder.PortraitImage, new string[] { "1080_433" });
                item.SetOrAddPropertyCustom4ChoiceOption(content, CarouselBannerModuleBuilder.StyleOption);
                item.SetOrAddPropertyCustom4Text(content, CarouselBannerModuleBuilder.Description);
                item.SetOrAddPropertyCustom4Text(content, CarouselBannerModuleBuilder.Header);
                item.SetOrAddPropertyCustom4Text(content, CarouselBannerModuleBuilder.CTALink);
                item.SetOrAddPropertyCustom4Text(content, CarouselBannerModuleBuilder.Order);
            }
            catch (Exception ex)
            {
                Telerik.Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Writer.Write(ex.Message);
            }
        }
    }
}
@model SitefinityWebApp.Mvc.Models.CarouselBannerWidgetModel
<div class="main-carousel-parent">
    <div class="main-carousel js-main-carousel">

        @foreach (var item in Model.CarouselBannerItems)
        {
            var darkClass = item.IsDark ? "dark-banner" : "";
            <div class="slider @darkClass full-width-caption">
                <div class="item">
                    <a href="@item.CTALink">
                        <img class="visible-desktop" src="@item.ImageUrl" alt="banner" />
                        <img class="visible-non-desktop" src="@item.PortraitImageUrl" alt="banner" />

                        <div class="container caption" data-aos="fade-right" data-aos-duration="1500">
                            <h5>@item.Header</h5>
                            @if (!string.IsNullOrWhiteSpace(item.Title))
                            {
                                <h1>@item.Title</h1>
                            }
                            @if (!string.IsNullOrWhiteSpace(item.Description))
                            {
                                <p>@item.Description</p>
                            }
                        </div>
                    </a>
                </div>
            </div>
        }
    </div>
    <div class="container carousel-actions js-carousel-actions" data-aos="fade-down" data-aos-duration="1500">
        <div class="row">
            <div class="btn-group">
                @foreach (var item in Model.FeatureMenuItems)
                {
                    <div class="btn-plus">
                        <a href="@item.URL">@item.Title</a>
                    </div>
                }
            </div>

        </div>
    </div>


</div>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SitefinityWebApp.Mvc.Models
{
    public class CarouselBannerModel
    {
        public string Title { get; set; }
        public string Header { get; set; }
        public string Description { get; set; }
        //public string CTALabel { get; set; }
        public string CTALink { get; set; }
        public string ImageUrl { get; set; }
        public string PortraitImageUrl { get; set; }
        public string StyleOption { get; set; }
        public bool IsDark { get; set; }
        public int Order { get; set; }
    }

    public static class CarouselBannerModuleBuilder
    {
        public const string Type = "Telerik.Sitefinity.DynamicTypes.Model.CarouselBanners.CarouselBanner";
        public const string IndexName = "carouselbanner";
        public const string Id = "Id";
        public const string Title = "title";
        public const string Header = "header";
        public const string Description = "description";
        public const string Order = "order";
        //public const string CTALabel = "ctalabel";
        public const string CTALink = "url";
        public const string Image = "image";
        public const string StyleOption = "styleoption";
        public const string PortraitImage = "portraitimage";
    }

}
using Newtonsoft.Json;
using SitefinityWebApp.Mvc.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Telerik.Sitefinity.Abstractions;
using Telerik.Sitefinity.Mvc;
using Telerik.Sitefinity.Services.Search;
using Telerik.Sitefinity.Services.Search.Data;

namespace SitefinityWebApp.Mvc.Controllers
{
    [ControllerToolboxItem(Name = "CarouselBanner", Title = "Carousel Banner", SectionName = "SBF Custom")]
    public class CarouselBannerController : Controller
    {
        public string ItemType
        {
            get
            {
                return this.itemType;
            }

            set
            {
                this.itemType = value;
            }
        }

        string itemType = CarouselBannerModuleBuilder.Type;
        public string SelectedItems { get; set; }

        public string SelectedItemIds { get; set; }



     

        public string ItemType2
        {
            get
            {
                return this.itemType2;
            }

            set
            {
                this.itemType2 = value;
            }
        }

        string itemType2 = FeaturedMenuModuleBuilder.Type;
        public string SelectedItems2 { get; set; }

        public string SelectedItemIds2 { get; set; }




        public ActionResult Index()
        {
            var result = new CarouselBannerWidgetModel();

            var service = Telerik.Sitefinity.Services.ServiceBus.ResolveService<ISearchService>();
            var queryBuilder = ObjectFactory.Resolve<IQueryBuilder>();

            GetCarouselBanner(result, service, queryBuilder);
            GetFeaturedMenu(result, service, queryBuilder);
            return View(result);
        }

        private void GetCarouselBanner(CarouselBannerWidgetModel result, ISearchService service, IQueryBuilder queryBuilder)
        {
            var keysearch = string.Format("({0})", "true");
            var searchQuery = queryBuilder.BuildQuery(keysearch, new[] { "si_issearch" });
            searchQuery.IndexName = CarouselBannerModuleBuilder.IndexName;

            #region Compose where clause
            if (!string.IsNullOrWhiteSpace(this.SelectedItemIds))
            {
                var ids = JsonConvert.DeserializeObject<Guid[]>(this.SelectedItemIds).ToList();
                if (ids != null && ids.Count > 0)
                {
                    var testimonialTypeGroup = new SearchQueryGroup();
                    testimonialTypeGroup.Operator = QueryOperator.Or;
                    foreach (var value in ids)
                    {
                        testimonialTypeGroup.AddTerm(new SearchTerm()
                        {
                            Field = CarouselBannerModuleBuilder.Id,
                            Value = string.Format("({0})", value)
                        });
                    }
                    var searchGroup = searchQuery.SearchGroup;
                    searchQuery.SearchGroup = new SearchQueryGroup
                    {
                        Groups = new[] { searchGroup, testimonialTypeGroup },
                        Operator = QueryOperator.And
                    };
                }
            }
            #endregion

            List<IDocument> finalResult = null;
            IEnumerable<IDocument> whereItems = null;

            whereItems = service.Search(searchQuery);
            finalResult = whereItems.ToList();

            for (int i = 0; i < finalResult.Count(); i++)
            {
                CarouselBannerModel modelItem = new CarouselBannerModel();
                modelItem = ComposeBannerSlider(finalResult[i]);
                result.CarouselBannerItems.Add(modelItem);
            }
            result.CarouselBannerItems = result.CarouselBannerItems.OrderBy(t => t.Order).ToList();
        }

        private void GetFeaturedMenu(CarouselBannerWidgetModel result, ISearchService service, IQueryBuilder queryBuilder)
        {
            var keysearch = string.Format("({0})", "true");
            var searchQuery = queryBuilder.BuildQuery(keysearch, new[] { "si_issearch" });
            searchQuery.IndexName = FeaturedMenuModuleBuilder.IndexName;

            #region Compose where clause

            if (!string.IsNullOrWhiteSpace(this.SelectedItemIds2))
            {
                var ids = JsonConvert.DeserializeObject<Guid[]>(this.SelectedItemIds2).ToList();
                if (ids != null && ids.Count > 0)
                {
                    var testimonialTypeGroup = new SearchQueryGroup();
                    testimonialTypeGroup.Operator = QueryOperator.Or;
                    foreach (var value in ids)
                    {
                        testimonialTypeGroup.AddTerm(new SearchTerm()
                        {
                            Field = FeaturedMenuModuleBuilder.Id,
                            Value = string.Format("({0})", value)
                        });
                    }
                    var searchGroup = searchQuery.SearchGroup;
                    searchQuery.SearchGroup = new SearchQueryGroup
                    {
                        Groups = new[] { searchGroup, testimonialTypeGroup },
                        Operator = QueryOperator.And
                    };
                }
            }
       
            #endregion

            List<IDocument> finalResult = null;
            IEnumerable<IDocument> whereItems = null;

            whereItems = service.Search(searchQuery);
            finalResult = whereItems.ToList();

            for (int i = 0; i < finalResult.Count(); i++)
            {
                FeaturedMenuModel modelItem = new FeaturedMenuModel();
                modelItem = ComposeFeatureMenu(finalResult[i]);
                result.FeatureMenuItems.Add(modelItem);
            }
            result.FeatureMenuItems = result.FeatureMenuItems.OrderBy(t => t.Order).ToList();
        }

        private CarouselBannerModel ComposeBannerSlider(IDocument itemLive)
        {
            CarouselBannerModel bookModel = new CarouselBannerModel();
            bookModel.Title = itemLive.GetValue($"si_{CarouselBannerModuleBuilder.Title}").ToString();
            bookModel.Header = itemLive.GetValue($"si_{CarouselBannerModuleBuilder.Header}").ToString();
            bookModel.Description = itemLive.GetValue($"si_{CarouselBannerModuleBuilder.Description}").ToString();
            bookModel.CTALink = itemLive.GetValue($"si_{CarouselBannerModuleBuilder.CTALink}").ToString();
            bookModel.ImageUrl = itemLive.GetValue($"si_{CarouselBannerModuleBuilder.Image}").ToString();
            bookModel.PortraitImageUrl = itemLive.GetValue($"si_{CarouselBannerModuleBuilder.PortraitImage}").ToString();
            bookModel.StyleOption = itemLive.GetValue($"si_{CarouselBannerModuleBuilder.StyleOption}").ToString();
            bookModel.IsDark = bookModel.StyleOption == "2";
            bookModel.Order = !string.IsNullOrWhiteSpace(itemLive.GetValue($"si_{CarouselBannerModuleBuilder.Order}").ToString()) ? int.Parse(itemLive.GetValue($"si_{CarouselBannerModuleBuilder.Order}").ToString()) : int.MaxValue;

            return bookModel;
        }

        private FeaturedMenuModel ComposeFeatureMenu(IDocument itemLive)
        {
            FeaturedMenuModel bookModel = new FeaturedMenuModel();
            bookModel.Title = itemLive.GetValue($"si_{FeaturedMenuModuleBuilder.Title}").ToString();
            bookModel.URL = itemLive.GetValue($"si_{FeaturedMenuModuleBuilder.URL}").ToString();
            bookModel.Order = !string.IsNullOrWhiteSpace(itemLive.GetValue($"si_{FeaturedMenuModuleBuilder.Order}").ToString()) ? int.Parse(itemLive.GetValue($"si_{FeaturedMenuModuleBuilder.Order}").ToString()) : int.MaxValue;

            return bookModel;
        }

    }
}
In your app\http\Middleware\VerifyCsrfToken.php file.

edit $except property with:

protected $except = [
  'yourapi/*' 
];
 Save
This will exclude your api routes from CSRF verification.And keep it up for other things like your frontend.
add_filter('pcp_post_excerpt_limit', function($length) {
    return 15; // Change this number to the desired excerpt length (in words)
}, 999);
#include <bits/stdc++.h>

using namespace std;
const int N = 100;
int dp[N];
vector<vector<int>>combinations[N];

void findCombinations(int amount,vector<int>&coins,vector<int>currentCombination)
{
    if(amount==0)
    {
        combinations[amount].push_back(currentCombination);
        return;
    }
    for(int coin:coins)
    {
        if(amount-coin>=0)
        {
            currentCombination.push_back(coin);
            findCombinations(amount-coin,coins,currentCombination);
            currentCombination.pop_back();
        }
    }
}
void print_combinations(int amount)
{
    if(combinations[amount].empty())
    {
        cout<<"No combinations found"<<endl;
        return;
    }
    cout<<"Combinations:"<< endl;
    for(vector<int>combination:combinations[amount])
    {
        for(int i=0;i<combination.size();i++)
        {
            cout << combination[i];
            if(i<combination.size() - 1)
                cout<< " + ";
        }
        cout<<endl;
    }
}
int func(int amount, vector<int>&coins)
{
    if(amount==0)
        return 0;
    int ans = INT_MAX;
    if(dp[amount]!=-1)
        return dp[amount];
    for(int coin : coins)
    {
        if((amount - coin) >= 0)
        {
            ans = min(ans+0LL, func(amount-coin,coins)+1LL);
        }
    }
    return dp[amount]=ans;
}
int choose_coin(vector<int>&coins, int amount)
{
    //memset(dp,-1,sizeof(dp));
    int ans = func(amount,coins);
    return ans == INT_MAX?-1:ans;
}

int main()
{
    //memset(dp,-1,sizeof(dp));
    vector<int>coins={2,3,4,5,6,9,15};
    cout<<"Minimum coin = "<<choose_coin(coins,23);
    findCombinations(23,coins,{});
    print_combinations(23);
    //for(int i=0;i<sizeof(dp);i++)
    //{
    //    cout<<dp[i]<<" ";
    //}
    return 0;
}





type ParseProjects = (arg: {
						  file: File;
					}) => Props['data'][number]['data'][number]['data'][number][];

const parseProjectsDefaultValue: ReturnType<ParseProjects> = [];

export const parseProjects: ParseProjects = ({ file }) => {

	try {
		// ! Projects make project array
		return Object.entries(file.project).reduce((acc, item) => {
			const currentKey = item[0] as PROJECT;
			if (item[1]) {
				const result: ReturnType<ParseProjects>[number] = {
				project: currentKey,
				status: CUSTOMER_STATUS.CONTACTED, 
				label: '',
			};
			
			return [...acc, result];
			
			}
			
		return acc;
			
		}, parseProjectsDefaultValue);
	
	} catch {

	return parseProjectsDefaultValue;

	}

};
type GroupeDataByDate = (arg: { filteredFiles: CustomerFile[] }) => {
	[key: string]: CustomerStatusCardsProps['data'][number]['data'][number][];
};

const groupeDataByDateDefaultValue: ReturnType<GroupeDataByDate> = {};

export const groupeDataByDate: GroupeDataByDate = ({ filteredFiles }) => {
	try {
	// ! Group files by date
	return filteredFiles.reduce((acc, item) => {
		const computedProjects = parseProjects({ file: item });
		const filesByDate = { title: item.customer, data: computedProjects };
		
		if (acc[item.updatedAt]) {
			return { ...acc, [item.updatedAt]: [...acc[item.updatedAt], filesByDate] };
		}
		
		return { ...acc, [item.updatedAt]: [filesByDate] };
		
		}, groupeDataByDateDefaultValue);
	} catch (error) {
	return groupeDataByDateDefaultValue;
	}
};
Array.findIndex((item) => item === indextoFind) return index
import { isArray as isArrayUtils, isObject as isObjectUtils } from '@utils/functions';

import { compareString } from '../compareString';

// ****************************
// ? move to @utils/functions
type MyObject = { [key: string]: unknown };
type IsObject = (data: unknown) => data is MyObject;
export const isObject: IsObject = (data): data is MyObject => isObjectUtils(data);

type Array = unknown[];
type IsArray = (data: unknown) => data is Array;
export const isArray: IsArray = (data): data is Array => isArrayUtils(data);
// ****************************

export type FilterFileByValue = (file: unknown, value: string) => boolean;

export const filterFileByValue: FilterFileByValue = (file, value) => {
	try {
		const fileValues = (isObject(file) && Object.values(file)) || [];
		
		const filteredFileValues = fileValues.filter((fileValue) => {
			if (typeof fileValue === 'string') {
				return compareString({ string1: fileValue, string2: value });
			}

			if (isArray(fileValue)) {
				const values = fileValue.filter((nestedFile) => filterFileByValue(nestedFile, value));
				return !!values.length;
			
			}
		
		return filterFileByValue(fileValue, value);
		
		});
		return !!filteredFileValues.length;
		
	} catch {
		return false;
	}

};
<iframe id="twitch-chat-embed"
        src="https://www.twitch.tv/embed/twitchdev/chat?parent=dev.twitch.tv"
        height="500"
        width="350">
</iframe>
#include <bits/stdc++.h>
using namespace std;

const int N = 10010;
int dp[N];

int func(int amount, vector<int> &coins)
{
    if (amount == 0)
        return 0;
    if (dp[amount] != -1)
        return dp[amount];
    int ans = INT_MAX;
    for (int coin : coins)
    {
        if (amount - coin >= 0)
        {
            ans = min(ans, func(amount - coin, coins) + 1);
        }
    }
    return dp[amount] = ans;
} 

int coinChange(vector<int> &coins, int amount)
{
    int ans = func(amount, coins);
    return ans == INT_MAX ? -1 : ans;
}

int main()
{
    memset(dp, -1, sizeof(dp));
    vector<int> coins = {1, 2, 5};
    cout << coinChange(coins, 11);

    return 0;
}
///////////////////////////////////
#include <bits/stdc++.h>
using namespace std;

const int N = 10010;
int dp[N][N];

int func(int ind, int amount, vector<int> &coins)
{
    if (amount == 0)
        return 1;
    if (ind < 0)
        return 0;
    if (dp[ind][amount] != -1)
        return dp[ind][amount];
    int way = 0;
    for (int coin_amount = 0; coin_amount <= amount; coin_amount += coins[ind])
    {
        way += func(ind - 1, amount - coin_amount, coins);
    }
    return dp[ind][amount] = way;
}

int coinChange(vector<int> &coins, int amount)
{
    memset(dp, -1, sizeof(dp));
    return func(coins.size() - 1, amount, coins);
}

int main()
{
    vector<int> coins = {1, 2, 5};
    cout << coinChange(coins, 5);

    return 0;
}
//////////////////////////
#include <bits/stdc++.h>
using namespace std;
int coin[1000], dp[1000][1000];
int coin_change(int n, int sum, int k)
{
    if (sum < 0)
        return 0;
    if (sum == 0 && k == 0)
        return 1;
    if (n == -1)
        return 0;
    if (dp[n][sum] != -1)
        return dp[n][sum];
    return dp[n][sum] = (coin_change(n - 1, sum - coin[n - 1], k - 1)) || (coin_change(n - 1, sum, k));
}
int main()
{
    int n, k, sum;
    cin >> n >> k >> sum;
    for (int i = 0; i < n; i++)
        cin >> coin[i];
    memset(dp, -1, sizeof(dp));
    coin_change(n, sum, k);
    cout << (dp[n][sum] ? "YES" : "NO");
}
const onChange = (e: React.FormEvent<HTMLInputElement>) => {
  const newValue = e.currentTarget.value;
}
ERPNEXT Version-15 Installation on Ubuntu 23.04
***********************************************

Step-1
sudo apt-get update -y
init 6  //( will restart )//

Step-2 //Install Python//
sudo apt-get install python3-dev python3.11-dev python3-setuptools python3-pip python3-distutils software-properties-common xvfb libfontconfig wkhtmltopdf libmysqlclient-dev -y

Step-3 //Install Virtual Enviroment//
sudo apt-get install python3.11-venv -y
sudo apt install python-is-python3 -y
python3 -V //( result Python 3.11.X )
python -V //(resulat Python 3.11.X )

Step-4 // Install Curl//
sudo apt install curl 
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile

Step-5 // Install NODE & Redis Server//
curl -sL https://deb.nodesource.com/setup_20.x | bash -
nvm install 20
node --version //( result must be : v20.XXX )
node -v
npm -v

sudo apt-get install -y nodejs
sudo apt-get install nodejs redis-server -y
sudo apt-get install cron git -y
node --version //( result must be : v20.XXX )

Step-6 // Install NPM & Yarn //
sudo apt-get install npm
sudo npm install -g yarn
npm --version //( result must be : 9.XX.X )
yarn --version

Step-7 //Install Mariadb
sudo apt-get install mariadb-server mariadb-client -y //install the Latest Version//
---OR---
sudo apt-get install mariadb-server=10.6 mariadb-client=10.6 -y // Version Above 10.8 is not Tested
mariadb --version //( result must be mariadb Ver 15.1 Distrib 10.6.7-MariaDB, )

Step-8 //Set Mariadb security//
sudo mysql_secure_installation

//Enter current password for root (enter for none): Press your [Enter] key, there is no password set by default
//Switch to unix_socket authentication N
//Set root password? [Y/n] Y
//New password:
//Re-enter new password:
//Remove anonymous users? [Y/n] Y
//Disallow root login remotely? [Y/n] N
//Remove test database and access to it? [Y/n] Y
//Reload privilege tables now? [Y/n] Y

//Set Mariadb formats.

Step-9 // Setup the Server//
vim /etc/mysql/mariadb.conf.d/erpnext.cnf //Not Working//
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
//Add in CNF FILE// CTRL+S & CTRL+X//

[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4

// Restart SQL//
systemctl restart mariadb
-------------------------------------
Step-10 // Create User//
//Create a user "erpnext"
//Set password,
//Set usermod,
//Set sudo prvilege.
useradd -m -s /bin/bash erpnext
passwd erpnext
usermod -aG sudo erpnext
su - erpnext
//Now you are inside the new user. Now let us set it's path.
vim ~/.bashrc
//add this line
PATH=$PATH:~/.local/bin/
source ~/.bashrc

su - erpnext
sudo mkdir /opt/bench
sudo chown -R erpnext:erpnext /opt/bench
cd /opt/bench
---------------------------------------
  
Step-11 // Install node-sass //
yarn add node-sass
yarn --version //( result must be:1.22.19 )

____________________________________________________
//Now we are entering to Frappe installation. Before that finish all the following tests ( in violet letters ) . Otherwise installation will fail
*****************************
Step-12 //Check App Version//
*****************************
python -V //( result Python 3.11.4 )
node --version //( result must be : v20.17.0 )
npm --version //( result must be : 9.8.1 )
mariadb --version //( result must be mariadb Ver 15.1 Distrib 10.6.7-MariaDB, )
yarn --version //( result must be:1.22.19 )
/opt/bench/node_modules/.bin/node-sass -v 
//( result must be: node-sass	9.0.1	(Wrapper)	[JavaScript] libsass 3.5.5	(Sass Compiler)	[C/C++] )
npm node-sass -v //( Result must be: 9.8.1 )
pip3 -V //( Result must be pip 23.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10) )
pip -V //(Result must be pip 23.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10) )
pip3 --version //( Result must be pip 23.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10) )
pip --version //( Result must be pip 23.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10) )
redis-server --version //(Redis server v=7.0.16 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=a3fdef44459b3ad6)
wkhtmltopdf -V //( wkhtmltopdf 0.12.6 )
git -v //(git version 2.39.1)
***************************************
  
Step-13 //INSTALL VIRTUAL ENVIROMENT//
// Virtual Enviroment Error Managements//
//"This environment is externally managed" in that case, either use following command, or use pipx//
______________________________________
//Virtual Enviroment Chat GPT advise//
//Remember, you'll need to activate this virtual environment every time you work on your project.//
______________________________________
sudo apt install pipx
pipx install frappe-bench

python3 -m venv myenv
source myenv/bin/activate
pip install frappe-bench
pip3 install frappe-bench

Step-14 //INSTALL FRAPPE-BENCH//
bench init frappe-bench --frappe-branch version-15
or
bench init frappe-bench --frappe-branch version-15-beta
cd frappe-bench
sed -i '/web:/ s/$/ --noreload/' Procfile
pip3 install honcho
bench start

Step-15 //Install New Site//
bench new-site site1.local
bench use site1.local

Step-16 //Install ERPNext Version-15//
bench get-app erpnext --branch version-15
Or
bench get-app erpnext --branch version-15-beta

bench get-app payments --branch version-15
or
bench get-app payments --branch version-15-beta
bench --site site1.local install-app erpnext 

Step-17 //Install HRMS Version-15//
bench get-app hrms // version-16 Latest
bench get-app hrms --branch version-15
bench get-app hrms //if Above Not Work//
bench --site site1.local install-app hrms 

Step-18 //Install LENDING / Loan//
bench get-app lending
bench --site site1.local install-app lending

-------------------------
// IF ERROR AFTER HRM INSTALLATION//
bench update --reset
 
//IF ERROR Updating...//
//Disable maintenance mode
bench --site site1.local set-maintenance-mode off
-------------------------

Step-19 //Install CHAT //
bench get-app chat
bench --site site1.local install-app chat

Note:- To Start Bench
source myenv/bin/activate
cd frappe-bench
bench start

//Now you have ERPNext on port 8000. ( http://0.0.0.0:8000 )
                                     (IP_Address:8000) 
//You can run the setup-wizard on the browser.

User Name: administrator
Pasword: What you Enter During Installation
var express = require('express');
var router = express.Router();
const multer  = require('multer');
const Teacher = require('../model/teacher_register');
const fs = require('fs')

const storage = multer.diskStorage({
    destination: function (req, file, cb) {
      cb(null, 'uploads/'); // Store uploaded images in the 'uploads' directory
    },
    filename: function (req, file, cb) {
      cb(null, Date.now() + '-' + file.originalname);
    },
  });
  
const upload = multer({ storage: storage });

const TeacherRegister = async (req, res, next) => {
    try {
        
        const teacher = new Teacher({
            tea_fname: req.body.tea_fname,
            tea_lname: req.body.tea_lname,
            tea_email: req.body.tea_email,
            tea_number: req.body.tea_number,
            tea_address: req.body.tea_address,
            tea_subject: req.body.tea_subject,
            tea_image: req.file.filename,
        })

        const teacher_data = await teacher.save();
        let teacher_id = teacher_data._id;

        res.json({
            status: 200,
            message: "Teacher Register Successfully",
            teacher_id: teacher_id,
            destination: "Please Save your Teacher id Becoses login time is required"

        })

    } catch (error) {

    fs.unlinkSync(req.file.path);
    
    res.json({
        status: 400,
        message: "Please Rechake Your Details",
        hint: "Some information is Duplicate"
    })
        
    }
}

router.post("/register",upload.single('tea_image'), TeacherRegister);
*** For laravel versions < 10 put this line
    $app->bind('path.public', function() {
        return __DIR__;
    });
just after this line

    $app = require_once __DIR__.'/../../{applicationname}/bootstrap/app.php';

****For laravel version >= 10 add this line
    $app->usePublicPath(__DIR__);
just after this line

    $app = require_once __DIR__.'/../../{applicationname}/bootstrap/app.php';
ERPNEXT AND FRAPPE BENCH & ALL APP INSTALL VERSION

cd frappe-bench
bench version

//Check python version
python -V
python3 -V
python -V //( result Python 3.11.4 )
 
//Check pip or pip3 version
pip --version 
pip3 --version
pip -V
pip3 -V

//Check node version.
node --version 

//check npm version and confirm
npm --version
npm node-sass -v //( Result must be: 9.8.1 )
/opt/bench/node_modules/.bin/node-sass -v 
//( result must be:	(Wrapper)	[JavaScript] libsass 3.5.5	(Sass Compiler)	[C/C++] 

//Yarn Version//
yarn --version //( result must be:1.22.19 )

//MariaDB Version//
mariadb --version //( result must be mariadb Ver 15.1 Distrib 10.6.7-MariaDB, )

// Radis Server//
redis-server --version //(Redis server v=7.0.16 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=a3fdef44459b3ad6)

//PDF Version//
wkhtmltopdf -V //( wkhtmltopdf 0.12.6 )

//Git Version//
git -v //(git version 2.39.1)
//----------//


bench switch-to-branch version-14 frappe erpnext
bench switch-to-branch version-14 frappe erpnext --upgrade
  
  ///---------///
  
//1- Take backup. ( Should I explain that !!! ) 
//2- Make sure you don't have any customization those are not committed.
  
cd /opt/bench/frappe-bench/apps/erpnext
git status
  
//Refresh index: 100% (6953/6953), done.
//On branch version-13
//Your branch is up to date with 'upstream/version-13'.
//nothing to commit, working tree clean

/opt/bench/frappe-bench/apps/frappe
git status
  
//On branch version-13
//Your branch is up to date with 'upstream/version-13'.
//nothing to commit, working tree clean

//3-Check python version
python3 -V 
Python 3.8.10 ( needs to be upgraded to 3.10 )

//4-check node version.
node --version
v12.22.12 ( needs to be upgraded to v16.X )

//5-Check pip or pip3 version
pip3 --version 
//20.2 ( needs to be upgrade to 22.x )


//6- Upgrade python

sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.10 python3.10-dev python3.10-distutils
//Confirm python version upgrade by
python3.10 --version
Python 3.10.6

//Make Python 3.10 the default.
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1

//Make sure python command executes python3
sudo apt install python-is-python3


python -V
Python 3.10.6
python3 -V
Python 3.10.6

//7 - Upgrade PIP

curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
pip install html5lib
pip3 install --upgrade pip
sudo apt-get remove python3-apt -y
sudo apt-get install python3-apt -y


//check PIP verison and confirm.
pip --version
pip 22.2.2 from /home/erpnext/.local/lib/python3.10/site-packages/pip (python 3.10)
pip3 --version
pip 22.2.2 from /home/erpnext/.local/lib/python3.10/site-packages/pip (python 3.10)


//8- Upgrade Node
curl -sL https://deb.nodesource.com/setup_16.x | bash -
apt-get install nodejs redis-server -y


//check node version and confirm
node --version
v16.17.0



//9- Upgrade NPM

npm upgrade
sudo npm install 16
sudo npm install -g npm@8.19.1


//check npm version and confirm
npm --version
8.19.1


//10 -Move your old python env folder to env-archive, in-case anything goes wrong, you can return to the original


cd /opt/bench/frappe-bench/
mv env env-archive

//11- Create new virtual env for python-3.10

pip install virtualenv
virtualenv --python python3.10 env
env/bin/pip install -U pip

//12- Change git upstream from V13 to V14

env/bin/pip install -e apps/frappe -e apps/erpnext
pip3 install frappe-bench 

bench switch-to-branch frappe erpnext version-14 ( edited this line. Please see the note 2 ** ) 
//( If the above command don't work, use this one )  bench switch-to-branch version-14 frappe erpnext --upgrade 


//check upstream and make sure upstream repository is V14
cd /opt/bench/frappe-bench/apps/erpnext
git status

//Your branch is up to date with 'upstream/version-14'.


cd /opt/bench/frappe-bench/apps/frappe
git status

//Your branch is up to date with 'upstream/version-14'.


//13- Install and upgrade V14. Please note that monolith is broken on V14 and you must install payments and hrms module in addition to ERPNext


bench get-app payments
bench get-app hrms
bench update --reset
bench --site *sitename* install-app hrms
bench --site *sitename* install-app payments
bench --site v13.erpgulf.com migrate

sudo service supervisor restart
sudo service nginx restart

//That is it. Check whether you ERPNext and Frappe upgrade to V14



---------

Note 1: *
//If you face problem with nginx because of log type error ( log type main not found or something like that ) 

vvim /etc/nginx/nginx.conf and add following on http section.

log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';


-----------------------
Note:2 **

Note from ( https://discuss.erpnext.com/u/flexy2ky ) 
modify this command in your document:
bench switch-to-branch version-14

//As this command will fail if the site has custom apps installed because the command will try to switch the apps to version-14 as well. so the command should be:

bench switch-to-branch frappe erpnext version-14

//This ensures that the switch-to-branch command only affects frappe and erpnext and ignores any other installed app.
- 👀 I’m interested in ...
echo "# Idealhands0" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/Idealhands0/Idealhands0.git
git push -u origin main
<!DOCTYPE html> <!-- Define que este documento es HTML5 -->
<html> <!-- Elemento raíz de una página HTML -->
<head> <!-- Contiene información meta sobre la página HTML -->
    <title>Mi Primera Página</title> <!-- Titulo en la pestaña de la página) -->
</head>
<body> <!-- Contiene el contenido de la página -->
    <h1>Mi Primer Encabezado</h1> <!-- Un encabezado grande -->
    <p>Mi primer párrafo.</p> <!-- Un párrafo -->
</body>
</html>
#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;

int main() {
    ifstream fichierIN("res.txt");
    ofstream fichierOUT("salaire.txt");
    string nom;
    int th, nbheure;
    double salaire;

    for (int i = 1; i <= 3; i++) {
        fichierIN >> nom >> th >> nbheure;
        
        if (nbheure > 40) {
            salaire = (40 * th) + ((nbheure - 40) * 1.5 * th);
        }
        else {
            salaire = nbheure * th;
        }
        
        fichierOUT << " " << setw(10) << left << nom << salaire << endl;
    }

    return 0;
}
ssh-keygen -R 85.31.239.241  # Remove the old entry
ssh-keyscan 85.31.239.241 >> ~/.ssh/known_hosts  # Add the new entry
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
    int angleDegres, angleMinutes, angleSecondes;
    double angleRadians;
    cout << "Entrez angleDegres, angleMinutes et angleSecondes: ";
    cin >> angleDegres >> angleMinutes >> angleSecondes;
    angleRadians = 3.14 * (angleDegres + (angleMinutes + (angleSecondes) / 60) /60) /180; 
    
    cout << "angleRadians = " << angleRadians << endl;
}
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
    double chiffre1, chiffre2, chiffre3, resultat;
    cout << "Entrez 3 chiffre: ";
    cin >> chiffre1 >> chiffre2 >> chiffre3;
    resultat = (chiffre1 + chiffre2 + chiffre3) / 3;
    cout << "Le resultat est " << resultat << endl;
    
}
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
    double chiffre1, racine, carre;
    cout << "Entrez le nombre: ";
    cin >> chiffre1;
    racine = sqrt(chiffre1);
    carre = chiffre1 * chiffre1;
    cout << " la racine carré de " << chiffre1 << "est " << racine << endl;
    cout << "le carré de " << chiffre1 << "est " << carre << endl;
}
<iframe width="100%" height="300px" frameborder="0" allowfullscreen src="//www.youtube.com/embed/GfVpI8Sf-RQ?si=UECJYSFwBmsD1Ulr"></iframe>
[[https://www.youtube.com/embed/GfVpI8Sf-RQ?si=UECJYSFwBmsD1Ulr|Voir en plein écran]]
<iframe width="100%" height="300px" frameborder="0" allowfullscreen src="//www.youtube.com/embed/GfVpI8Sf-RQ?si=UECJYSFwBmsD1Ulr"></iframe><p><a
href="//www.youtube.com/embed/GfVpI8Sf-RQ?si=UECJYSFwBmsD1Ulr" target="_blank">Voir
en plein écran</a></p>
<iframe width="100%" height="300px" frameborder="0" allowfullscreen src="//www.youtube.com/embed/GfVpI8Sf-RQ?si=UECJYSFwBmsD1Ulr"></iframe>
<p><a href="//www.youtube.com/embed/GfVpI8Sf-RQ?si=UECJYSFwBmsD1Ulr">Voir en plein écran</a></p>
  {
        "@context": "https://schema.org",
        "@type": "Organization",
        "@id": "#organization",
        "aggregateRating": {
            "@type": "AggregateRating",
            "ratingValue": 4.9,
            "bestRating": 5,
            "worstRating": 0,
            "reviewCount": "92"
        },
        "url": "https://healthymemia.com/",
        "additionalType": [
            "Medical Organization",
            "MedicalClinic",
            "https://en.wikipedia.org/wiki/Clinic",
            "https://www.wikidata.org/wiki/Q1774898",
            "https://en.dbpedia.org/wiki/Clinic"
        ],
        "knowsAbout": ["hormone optimization", "erectile dysfunction treatment", "iv therapy infusions & boosters",
            "chelation therapy", "keratine infusion therapy", "medical marijuana", "weight management",
            "advanced diagnostics in miami"
        ],
        "logo": {
            "@type": "ImageObject",
            "@id": "#logo",
            "contentUrl": "https://healthymemia.com/wp-content/uploads/2022/05/healthy-me-medical-therapies-miami-logo.jpg",
            "url": "https://healthymemia.com/wp-content/uploads/2022/05/healthy-me-medical-therapies-miami-logo.jpg"
        },
        "brand": {
            "@id": "#organization"
        },
        "name": "Healthy Me Medical Therapies",
        "alternatename": "Healthy Me Medical Therapies",
        "legalName": "Healthy Me Medical Therapies",
        "description": "FEEL BETTER LIVE LONGER
        At Healthy Me Medical Therapies,
        we offer a comprehensive medical approach to achieve optimal health.
        ",
        "disambiguatingDescription": "Our experienced medical staff provides one-on-one personal attention and provides the tools you will need to obtain optimal health and wellness.",
        "actionableFeedbackPolicy": "https://healthymemia.com/",
        "areaServed": [{
            "@type": "AdministrativeArea",
            "@id": "#orgarea",
            "geo": {
                "@type": "GeoShape",
                "postalCode": [
                    "33101",
                    "33102",
                    "33106",
                    "33109",
                    "33111",
                    "33112",
                    "33114",
                    "33116",
                    "33119",
                    "33122",
                    "33124",
                    "33125",
                    "33126",
                    "33127",
                    "33128",
                    "33129",
                    "33130",
                    "33131",
                    "33132",
                    "33133",
                    "33134",
                    "33135",
                    "33136",
                    "33137",
                    "33138",
                    "33140",
                    "33141",
                    "33142",
                    "33143",
                    "33144",
                    "33145",
                    "33146",
                    "33147",
                    "33149",
                    "33150",
                    "33151",
                    "33152",
                    "33153",
                    "33154",
                    "33155",
                    "33156",
                    "33157",
                    "33158",
                    "33160",
                    "33161",
                    "33162",
                    "33163",
                    "33164",
                    "33165",
                    "33166",
                    "33167",
                    "33168",
                    "33169",
                    "33170",
                    "33172",
                    "33173",
                    "33174",
                    "33175",
                    "33176",
                    "33177",
                    "33178",
                    "33179",
                    "33180",
                    "33181",
                    "33182",
                    "33183",
                    "33184",
                    "33185",
                    "33186",
                    "33187",
                    "33188",
                    "33189",
                    "33190",
                    "33191",
                    "33192",
                    "33193",
                    "33194",
                    "33195",
                    "33196",
                    "33197",
                    "33198",
                    "33199",
                    "33206",
                    "33222",
                    "33231",
                    "33233",
                    "33234",
                    "33238",
                    "33239",
                    "33242",
                    "33243",
                    "33245",
                    "33247",
                    "33255",
                    "33256",
                    "33257",
                    "33261",
                    "33265",
                    "33266",
                    "33269",
                    "33280",
                    "33283",
                    "33296",
                    "33299"
                ]
            },
            "containsPlace": [{
                "@type": "City",
                "name": "miami",
                "url": [
                    "https://www.google.com/maps/place/Miami,+Florida,+USA/",
                    "https://en.wikipedia.org/wiki/Miami,_Florida"
                ]
            }]
        }],
        "sameAs": [],
        "image": {
            "@type": "ImageObject",
            "@id": "#image",
            "contentUrl": "https://healthymemia.com/wp-content/uploads/2022/05/healthy-me-medical-therapies-miami-logo.jpg",
            "url": "https://healthymemia.com/wp-content/uploads/2022/05/healthy-me-medical-therapies-miami-logo.jpg"
        },
        "email": "info@healthymemiami.com",
        "telephone": "(786) 731-4238",
        "founder": "Carlos Sanchez",
        "foundingLocation": {
            "@type": "Place",
            "address": {
                "@type": "PostalAddress",
                "@id": "#postaladdress",
                "streetAddress": "9600 NE 2nd Ave",
                "addressLocality": "Miami",
                "addressRegion": "FL",
                "postalCode": "33138",
                "addressCountry": "USA"
            }
        },
        "slogan": "OPTIMIZE YOUR HEALTH",
        "contactPoint": {
            "@type": "ContactPoint",
            "@id": "#contactPoint",
            "name": "Healthy Me Medical Therapies",
            "description": "At HealthyMe Medical Therapies, we offer a comprehensive medical approach to achieve optimal health. Our experienced medical staff provides one-on-one personal attention and provides the tools you will need to obtain optimal health and wellness.",
            "contactType": "Customer Service",
            "telephone": "(786)731-4238",
            "areaServed": {
                "@id": "#orgarea"
            }
        },
        "makesOffer": {
            "@type": "Offer",
            "@id": "#offer",
            "itemOffered": [{
                    "@id": "#hormone optimization"
                },
                {
                    "@id": "#erectile dysfunction treatment"
                },
                {
                    "@id": "#iv therapy infusions & boosters"
                },
                {
                    "@id": "#chelation therapy"
                },
                {
                    "@id": "#keratine infusion therapy"
                },
                {
                    "@id": "#medical marijuana"
                },
                {
                    "@id": "#weight management"
                },
                {
                    "@id": "#advanced diagnostics in miami"
                }
            ]
        },
        "subOrganization": [{
            },
            {
                "@id": "#coralgables"
            }
        ]
    }
</script>  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "WebSite",
        "@id": "#organization",
        "name": "Healthy Me Medical Therapies",
        "url": "https://healthymemia.com/",
        "keywords": "anti-aging treatments, human growth hormone, anti-aging clinics, hormone replacement therapy, hormone therapy, weight loss, bio-identical hormone replacement, low testosterone, testosterone replacement therapy, anti-aging medicine, anti-aging clinic, hormone levels, bioidentical hormone replacement, growth hormone, clinical need, replacement therapy, testosterone levels",
        "about": [{
                "@type": "Thing",
                "name": "anti-aging",
                "sameAs": ["https://en.wikipedia.org/wiki/Life_extension",
                    "https://www.google.com/search?q=anti-aging&kgmid=/m/0190v0"
                ]
            },
            {
                "@type": "Thing",
                "name": "clinic",
                "sameAs": ["https://en.wikipedia.org/wiki/Clinic",
                    "https://www.google.com/search?q=clinic&kgmid=/m/03fk5c"
                ]
            },
            {
                "@type": "Thing",
                "name": "treatment",
                "sameAs": ["https://en.wikipedia.org/wiki/Therapy",
                    "https://www.google.com/search?q=treatment&kgmid=/m/03c1dkx"
                ]
            },
            {
                "@type": "Thing",
                "name": "patients",
                "sameAs": ["https://en.wikipedia.org/wiki/Patient",
                    "https://www.google.com/search?q=patients&kgmid=/m/028hfb"
                ]
            },
            {
                "@type": "Thing",
                "name": "miami",
                "sameAs": ["https://en.wikipedia.org/wiki/Miami",
                    "https://www.google.com/search?q=miami&kgmid=/m/0f2v0"
                ]
            },
            {
                "@type": "Thing",
                "name": "therapy",
                "sameAs": ["https://en.wikipedia.org/wiki/Psychotherapy",
                    "https://www.google.com/search?q=therapy&kgmid=/m/0dd9q32"
                ]
            },
            {
                "@type": "Thing",
                "name": "testosterone",
                "sameAs": ["https://en.wikipedia.org/wiki/Testosterone",
                    "https://www.google.com/search?q=testosterone&kgmid=/m/07m9q"
                ]
            },
            {
                "@type": "Thing",
                "name": "medicine",
                "sameAs": ["https://en.wikipedia.org/wiki/Medicine",
                    "https://www.google.com/search?q=medicine&kgmid=/m/0gcyws"
                ]
            },
            {
                "@type": "Thing",
                "name": "hormone replacement therapy",
                "sameAs": ["https://en.wikipedia.org/wiki/Hormone_replacement_therapy",
                    "https://www.google.com/search?q=hormone+replacement+therapy&kgmid=/m/0qlky"
                ]
            },
            {
                "@type": "Thing",
                "name": "weight loss",
                "sameAs": ["https://en.wikipedia.org/wiki/Weight_loss",
                    "https://www.google.com/search?q=weight+loss&kgmid=/m/0b6jzsq"
                ]
            },
            {
                "@type": "Thing",
                "name": "hormone therapy",
                "sameAs": ["https://en.wikipedia.org/wiki/Hormone_replacement_therapy",
                    "https://www.google.com/search?q=hormone+therapy&kgmid=/m/0qlky"
                ]
            },
            {
                "@type": "Thing",
                "name": "hormones",
                "sameAs": ["https://en.wikipedia.org/wiki/Feminizing_hormone_therapy",
                    "https://www.google.com/search?q=hormones&kgmid=/m/03gslx0"
                ]
            },
            {
                "@type": "Thing",
                "name": "hormonal",
                "sameAs": ["https://en.wikipedia.org/wiki/Hormone",
                    "https://www.google.com/search?q=hormonal&kgmid=/m/03gv9"
                ]
            },
            {
                "@type": "Thing",
                "name": "health",
                "sameAs": ["https://en.wikipedia.org/wiki/Health",
                    "https://www.google.com/search?q=health&kgmid=/m/0kt51"
                ]
            }
        ]
    }
</script>  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@id": "#coralgables",
        "@type": "LocalBusiness",
        "additionalType": [
            "Organization",
            "MedicalBusiness",
            "https://en.wikipedia.org/wiki/Clinic",
            "https://www.wikidata.org/wiki/Q1774898",
            "https://en.dbpedia.org/wiki/Clinic"
        ],
        "aggregateRating": {
            "@type": "AggregateRating",
            "ratingValue": 4.9,
            "bestRating": 5,
            "worstRating": 0,
            "reviewCount": "92"
        },
        "name": "Healthy Me Medical Therapies",
        "description": "BOOST YOUR VITALITY WITH THE BEST TESTOSTERONE REPLACEMENT THERAPY IN CORAL GABLES, MIAMI, FL",
        "url": "https://healthymemia.com/boost-your-vitality-with-the-best-testosterone-replacement-therapy-in-miami/",
        "slogan": "Bioidentical Hormone Replacement Therapy Coral Gables",
        "address": {
            "@type": "PostalAddress",
            "addressLocality": "Miami",
            "addressRegion": "FL",
            "addressCountry": "USA"
        },
        "priceRange": "$",
        "knowsAbout": ["Hormone Optimization", "Erectile Dysfunction Treatment", "IV Therapy Infusions & Boosters",
            "Chelation Therapy", "Medical Marijuana", "Weight Management", "Advanced Diagnostics in Miami"
        ],
        "sameAs": [],
        "brand": {
            "@id": "#organization"
        },
        "paymentAccepted": "Visa, Mastercard, Discover, Cash, Debit",
        "logo": {
            "@id": "#logo"
        },
        "image": {
            "@id": "#image"
        },
        "telephone": "(786) 731-4238",
        "contactPoint": {
            "contactType": "Customer Service",
            "telephone": "(786) 731-4238"
        },
        "areaServed": {
            "@id": "#orgarea"
        },
        "makesOffer": {
            "@id": "#offer"
        },
        "parentOrganization": {
            "@id": "#organization"
        }
    }
</script>  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Service",
        "@id": "#hormoneoptimization",
        "provider": [{
                "@id": "#hormoneoptimization"
            },
            {
                "@id": "#hormoneoptimization"
            }
        ],
        "brand": {
            "@id": "#organization"
        },
        "name": "Hormone Optimization",
        "alternatename": "Hormone Optimization",
        "serviceType": "Hormone Optimization",
        "audience": "People looking to get Hormone Optimization Services",
        "url": "https://healthymemia.com/bioidentical-hormone-replacement-therapy-miami/",
        "description": "https://healthymemia.com/bioidentical-hormone-replacement-therapy-miami/"
    }
</script>  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Service",
        "@id": "#erectiledysfunctiontreatment",
        "provider": [{
                "@id": "#erectiledysfunctiontreatment"
            },
            {
                "@id": "#erectiledysfunctiontreatment"
            }
        ],
        "brand": {
            "@id": "#organization"
        },
        "name": "Erectile Dysfunction Treatment",
        "alternatename": "Erectile Dysfunction Treatment",
        "serviceType": "Erectile Dysfunction Treatment",
        "audience": "People looking to get Erectile Dysfunction Treatment Services",
        "url": "https://healthymemia.com/erectile-dysfunction-treatment-miami/",
        "description": "https://healthymemia.com/erectile-dysfunction-treatment-miami/"
    }
</script>  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Service",
        "@id": "#ivtherapyinfusions&boosters",
        "provider": [{
                "@id": "#ivtherapyinfusions&boosters"
            },
            {
                "@id": "#ivtherapyinfusions&boosters"
            }
        ],
        "brand": {
            "@id": "#organization"
        },
        "name": "IV Therapy Infusions & Boosters",
        "alternatename": "IV Therapy Infusions & Boosters",
        "serviceType": "IV Therapy Infusions & Boosters",
        "audience": "People looking to get IV Therapy Infusions & Boosters Services",
        "url": "https://healthymemia.com/iv-therapy-miami/",
        "description": "https://healthymemia.com/iv-therapy-miami/"
    }
</script>  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Service",
        "@id": "#chelationtherapy",
        "provider": [{
                "@id": "#chelationtherapy"
            },
            {
                "@id": "#chelationtherapy"
            }
        ],
        "brand": {
            "@id": "#organization"
        },
        "name": "Chelation Therapy",
        "alternatename": "Chelation Therapy",
        "serviceType": "Chelation Therapy",
        "audience": "People looking to get Chelation Therapy Services",
        "url": "https://healthymemia.com/chelation-therapy-in-miami/",
        "description": "https://healthymemia.com/chelation-therapy-in-miami/"
    }
</script>  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Service",
        "@id": "#keratineinfusiontherapy",
        "provider": [{
                "@id": "#keratineinfusiontherapy"
            },
            {
                "@id": "#keratineinfusiontherapy"
            }
        ],
        "brand": {
            "@id": "#organization"
        },
        "name": "Keratine Infusion Therapy",
        "alternatename": "Keratine Infusion Therapy",
        "serviceType": "Keratine Infusion Therapy",
        "audience": "People looking to get Keratine Infusion Therapy Services",
        "url": "https://healthymemia.com/ketamine-infusion-in-miami/",
        "description": "https://healthymemia.com/ketamine-infusion-in-miami/"
    }
</script>  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Service",
        "@id": "#medicalmarijuana",
        "provider": [{
                "@id": "#medicalmarijuana"
            },
            {
                "@id": "#medicalmarijuana"
            }
        ],
        "brand": {
            "@id": "#organization"
        },
        "name": "Medical Marijuana",
        "alternatename": "Medical Marijuana",
        "serviceType": "Medical Marijuana",
        "audience": "People looking to get Medical Marijuana Services",
        "url": "https://healthymemia.com/medical-marijuana-card-miami/",
        "description": "https://healthymemia.com/medical-marijuana-card-miami/"
    }
</script>  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Service",
        "@id": "#weightmanagement",
        "provider": [{
                "@id": "#weightmanagement"
            },
            {
                "@id": "#weightmanagement"
            }
        ],
        "brand": {
            "@id": "#organization"
        },
        "name": "Weight Management",
        "alternatename": "Weight Management",
        "serviceType": "Weight Management",
        "audience": "People looking to get Weight Management Services",
        "url": "https://healthymemia.com/weight-loss-clinic-miami/",
        "description": "https://healthymemia.com/weight-loss-clinic-miami/"
    }
</script>  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Service",
        "@id": "#advanceddiagnosticsinmiami",
        "provider": [{
                "@id": "#advanceddiagnosticsinmiami"
            },
            {
                "@id": "#advanceddiagnosticsinmiami"
            }
        ],
        "brand": {
            "@id": "#organization"
        },
        "name": "Advanced Diagnostics in Miami",
        "alternatename": "Advanced Diagnostics in Miami",
        "serviceType": "Advanced Diagnostics in Miami",
        "audience": "People looking to get Advanced Diagnostics in Miami Services",
        "url": "https://healthymemia.com/advanced-diagnostics-in-miami/",
        "description": "https://healthymemia.com/advanced-diagnostics-in-miami/"
    }
</script>   <template data-nitro-marker-id="9bb585260df966fd489840e9eaedb55f-1"></template>       <template data-nitro-marker-id="mcjs"></template>  <script type='application/ld+json'>{
    "@context": "http://www.schema.org",
    "@type": "LocalBusiness",
    "name": "Healthy Me Medical Therapies Of Miami",
    "url": "https://healthymemia.com",
    "sameAs": [
        "https://www.facebook.com/healthymemedicaltherapies",
        "https://www.instagram.com/healthymemedical/",
        "https://twitter.com/HealthyMe_Miami",
        "https://www.youtube.com/channel/UCUx_xBF2_5skfEAmxByJqvw",
        "https://www.linkedin.com/company/healthy-me-medical-therapies"
    ],
    "logo": "https://citationvault.com/wp-content/uploads/cpop_main_uploads/1586/healthy-me-logo.jpeg",
    "description": "Discover Healthy Me Medical Therapies of Miami, where we prioritize your health and well-being. Our comprehensive healthcare services and holistic approach will help you achieve optimal wellness.\r\n\r\nAt Healthy Me Medical Therapies, we understand the importance of maintaining a healthy weight. Our medical weight loss programs go beyond traditional methods. Our personalized approach includes nutritional counseling, exercise guidance, and medical interventions tailored to your specific needs. We aim for sustainable weight loss and improved overall health, reducing the risk of chronic conditions.",
    "address": {
        "@type": "PostalAddress",
        "streetAddress": "9600 NE Second Ave",
        "addressLocality": "Miami Shores",
        "addressRegion": "Florida",
        "postalCode": "33138",
        "addressCountry": "United States"
    },
    "contactPoint": {
        "@type": "ContactPoint",
        "telephone": "17867314238"
    },
    "openingHoursSpecification": [
        {
            "@type": "OpeningHoursSpecification",
            "dayOfWeek": [
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday"
            ],
            "opens": "09:00:00-04:00",
            "closes": "17:00:00-04:00"
        }
    ]
}</script>
// Initialize Auth0
const auth0 = new auth0.WebAuth({
  domain: 'your-auth0-domain.auth0.com',
  clientID: 'your-client-id',
});

// Trigger passwordless email login
auth0.passwordlessStart({
  email: 'user@example.com',
  send: 'code', // You can also use 'link' for a magic link
}, (err, res) => {
  if (!err) {
    // Passwordless email sent successfully
  }
});
/**
 * This filter fills in the post name for our custom post type
 */
add_filter( 'wp_insert_post_data' , 'gnt_modify_post_title' , '99', 2 );
function gnt_modify_post_title($data) {
    
    //only run for our post type
    if ($data['post_type'] == 'hbl_product') {  
        
        //get title from field
         $pod = pods( 'hbl_product', get_the_id() );
        //get the value for the relationship field
        $fund_name = $pod->field( 'selected_fund.fund_name', get_the_id() );
    
        
        //create a post title
        $data['post_title'] =  "$fund_name";
        
    }
    return $data;
    
}
/**
     * Checks if a Campaign is UNIQUE by name and creatorUser.
     */
    public function checkIfUnique(BanRule $entity): bool
    {
      // NOTE: this is the new entity created, by default is never set isDeleted() on creating. It will fail always
        if (true == $entity->getIsDeleted()) {
            return true;
        }

        $checkEntity = $this->findOneBy([
            'user' => $entity->getUser(),
            'email' => $entity->getEmail(),
            'phone' => $entity->getPhone(),
        ]);

        if (empty($checkEntity)) {
            return true;
        }
      // NOTE: This will fail always => and skipped. Lead to false, hence no saving if we got 1 record already
        if ($checkEntity->getId() == $entity->getId()) {
            return true;
        }
        dd($checkEntity, $entity, $checkEntity->getId() == $entity->getId());
        return false;
    }
<div class="image-side">
	<img src="https://manager.qualifio.com/library/eau_thermale_avene_0/images/2023/diag%20solaire/img-side-question.png" alt="">
</div>


div#qualifio_wrapper {
    margin: auto;
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    min-height: 650px;
    background: #fff5eb;
    max-width: 1400px;
}

#qualifioBox{
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center!important;
    background-color: #e7ecea;
    margin: 50px;
    background: #fff;
    margin: 20px!important;
}

#bandeau_sup {
    display: none;
}

.image-side {
    width: 42%;
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover!important;
}

#responsive_tools{
	position: absolute;
    z-index: 2;
}
cvat-cli --server-host app.cvat.ai --auth mk auto-annotate 274373 --function-file .\yolo8.py --allow-unmatched-labels  –-clear-existing
pip install ultralytics
import PIL.Image
from ultralytics import YOLO
​
import cvat_sdk.auto_annotation as cvataa
import cvat_sdk.models as models
​
_model = YOLO("yolov8n.pt")
​
spec = cvataa.DetectionFunctionSpec(
    labels=[cvataa.label_spec(name, id) for id, name in _model.names.items()],
)
​
def _yolo_to_cvat(results):
    for result in results:
        for box, label in zip(result.boxes.xyxy, result.boxes.cls):
            yield cvataa.rectangle(int(label.item()), [p.item() for p in box])
​
def detect(context, image):
    return list(_yolo_to_cvat(_model.predict(source=image, verbose=False)))

git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
git config --global alias.type 'cat-file -t'
git config --global alias.dump 'cat-file -p'
git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
<?php
$time=10;

switch ($time){
case 6:
    echo"time is 6";
break;
case 7:
    echo"time is 7";
break ;
default:
    echo"time is not good";
break;
}
<?php
$UserName = "Admin2";
$password = "admin";

if ($UserName == "Admin2" and $password == "addmin"){
  echo $UserName."شما وارد شدید";
}else{
  echo"شما وارد نشدید دوباره تلاش کنید";
}

<?php

$x=12;

if ($x == 10){
    echo ++$x;
}etseif ($x == 11){
	echo ++$x;
}etseif ($x == 12){
	echo --$x;
}
?>
<?php
$isUserLogin = true;
if ($isUserLogin) {
echo
"<div style: 'width:500px;height:80px;background-color: yellow;color:#fff;margin:10px auto;text-align:center; line-height:80px;'>
  خوش امدید
</div>";
}else{
echo
"<div style: 'width:500px;height:80px;background-color: yellow;color:#fff;margin:10px auto;text-align:center; line-height:80px;'>
  ثبت نام کمید
</div>";
}
star

Thu Sep 21 2023 04:14:13 GMT+0000 (Coordinated Universal Time)

@sid_balar

star

Wed Sep 20 2023 23:31:31 GMT+0000 (Coordinated Universal Time) https://github.com/kura1420/SAKIP

@kura1420

star

Wed Sep 20 2023 13:18:59 GMT+0000 (Coordinated Universal Time)

@makkarim07

star

Wed Sep 20 2023 13:18:09 GMT+0000 (Coordinated Universal Time)

@makkarim07

star

Wed Sep 20 2023 13:16:57 GMT+0000 (Coordinated Universal Time)

@makkarim07

star

Wed Sep 20 2023 13:16:22 GMT+0000 (Coordinated Universal Time)

@makkarim07

star

Wed Sep 20 2023 12:34:26 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/35033704/csrf-with-rest-api-laravel

@Zeeshan0811

star

Wed Sep 20 2023 10:39:57 GMT+0000 (Coordinated Universal Time) https://www.addustechnologies.com/blog/metamask-wallet-clone-script

@jonathandaveiam #metamaskwallet #cryptowallet #cryptocurrencies

star

Wed Sep 20 2023 10:26:08 GMT+0000 (Coordinated Universal Time) http://localhost/prodslidewoo/wp-admin/theme-editor.php?file

@Pulak

star

Wed Sep 20 2023 10:11:38 GMT+0000 (Coordinated Universal Time)

@jin_mori

star

Wed Sep 20 2023 09:17:12 GMT+0000 (Coordinated Universal Time)

#typescript
star

Wed Sep 20 2023 09:16:20 GMT+0000 (Coordinated Universal Time)

#typescript
star

Wed Sep 20 2023 09:15:41 GMT+0000 (Coordinated Universal Time)

#typescript
star

Wed Sep 20 2023 09:14:47 GMT+0000 (Coordinated Universal Time)

#typescript
star

Wed Sep 20 2023 08:53:10 GMT+0000 (Coordinated Universal Time) https://dev.twitch.tv/docs/embed/chat/

@Love_Code

star

Wed Sep 20 2023 08:30:31 GMT+0000 (Coordinated Universal Time) https://www.speqto.com/

@speqtotech #web #development #phoneapp #digitalmarketing

star

Wed Sep 20 2023 08:14:37 GMT+0000 (Coordinated Universal Time)

@jin_mori

star

Wed Sep 20 2023 07:41:09 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/40676343/typescript-input-onchange-event-target-value

@Abdulaziz #javascript

star

Wed Sep 20 2023 07:13:40 GMT+0000 (Coordinated Universal Time)

@Taimoor #terminal

star

Wed Sep 20 2023 06:47:14 GMT+0000 (Coordinated Universal Time)

@sid_balar

star

Wed Sep 20 2023 06:46:44 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/30198669/how-to-change-public-folder-to-public-html-in-laravel

@Zeeshan0811 #laravel

star

Wed Sep 20 2023 05:15:08 GMT+0000 (Coordinated Universal Time)

@Taimoor #terminal

star

Wed Sep 20 2023 04:58:08 GMT+0000 (Coordinated Universal Time)

@Taimoor #terminal

star

Wed Sep 20 2023 04:28:48 GMT+0000 (Coordinated Universal Time) https://github.com/

@mags

star

Wed Sep 20 2023 04:21:53 GMT+0000 (Coordinated Universal Time) https://github.com/Idealhands0/Idealhands0

@mags

star

Wed Sep 20 2023 03:34:49 GMT+0000 (Coordinated Universal Time)

@puntocode

star

Tue Sep 19 2023 21:18:59 GMT+0000 (Coordinated Universal Time)

@Mehdiiiiiii7

star

Tue Sep 19 2023 20:14:24 GMT+0000 (Coordinated Universal Time)

@MuhammadAhmad #spreadoperator

star

Tue Sep 19 2023 19:23:57 GMT+0000 (Coordinated Universal Time)

@Mehdiiiiiii7

star

Tue Sep 19 2023 19:13:55 GMT+0000 (Coordinated Universal Time)

@Mehdiiiiiii7

star

Tue Sep 19 2023 19:07:35 GMT+0000 (Coordinated Universal Time)

@Mehdiiiiiii7

star

Tue Sep 19 2023 18:37:19 GMT+0000 (Coordinated Universal Time)

@AZ

star

Tue Sep 19 2023 18:25:40 GMT+0000 (Coordinated Universal Time)

@AZ

star

Tue Sep 19 2023 17:13:22 GMT+0000 (Coordinated Universal Time) https://uiverse.io/ErzenXz/weak-falcon-28

@mindplumber

star

Tue Sep 19 2023 17:12:28 GMT+0000 (Coordinated Universal Time) https://uiverse.io/shadowmurphy/hard-warthog-73

@mindplumber

star

Tue Sep 19 2023 15:38:00 GMT+0000 (Coordinated Universal Time) https://healthymemia.com/

@lindseyopt

star

Tue Sep 19 2023 15:25:00 GMT+0000 (Coordinated Universal Time)

@Sauradip

star

Tue Sep 19 2023 12:54:24 GMT+0000 (Coordinated Universal Time) https://hblamc.troutinc.net/wp-admin/admin.php?page

@SumairAhmed

star

Tue Sep 19 2023 12:30:49 GMT+0000 (Coordinated Universal Time)

@devpersp

star

Tue Sep 19 2023 12:07:34 GMT+0000 (Coordinated Universal Time)

@maxwlrt

star

Tue Sep 19 2023 10:27:12 GMT+0000 (Coordinated Universal Time)

@cvataicode

star

Tue Sep 19 2023 10:04:13 GMT+0000 (Coordinated Universal Time)

@cvataicode

star

Tue Sep 19 2023 09:49:22 GMT+0000 (Coordinated Universal Time)

@cvataicode

star

Tue Sep 19 2023 09:41:30 GMT+0000 (Coordinated Universal Time)

@hurrand

star

Tue Sep 19 2023 09:37:46 GMT+0000 (Coordinated Universal Time)

@hurrand

star

Tue Sep 19 2023 05:46:49 GMT+0000 (Coordinated Universal Time)

@Mohammadrezasmz

star

Tue Sep 19 2023 05:37:14 GMT+0000 (Coordinated Universal Time)

@Mohammadrezasmz

star

Tue Sep 19 2023 05:07:22 GMT+0000 (Coordinated Universal Time)

@Mohammadrezasmz

Save snippets that work with our extensions

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