Snippets Collections
import java.util.*;
class A{
	private int x;
	private int y;
	public A(int x,int y){
		this.x=x;
		this.y=y;
	}
	public int getX(){
		return this.x;
	}
	public int getY(){
		return this.y;
	}
}
class B extends A{
		private int z;
		public B(int x,int y,int z)
		{
			super(x,y);
			this.z=z;
		}
	public int getZ()
	{
		return this.z;
	}
}
class Sample<T>
{
	private T[] values;
	public Sample(T[] values)
	{
		this.values=values;
	}
	public static <T> void show(Sample<? extends A> other)
	{
		for(int i=0;i<other.values.length;i++)
		{
			System.out.println(other.values[i].getX()+" "+other.values[i].getY()+" ");
		}
	}
	public static <T> void show2(Sample<? extends B> other)
	{
		for(int i=0;i<other.values.length;i++)
		{
			System.out.println(other.values[i].getX()+" "+other.values[i].getY()+" "+other.values[i].getZ());
		}
	}
}
public class WildCard
{
	public static void main(String[] args)
	{
		A[] ar={ new A(1,2),new A(2,3),new A(3,4)};
		Sample<A> a1=new Sample<A>(ar);
		a1.show(a1);
		
		B[] br={ new B(1,2,5),new B(2,3,7),new B(3,4,8)};
		Sample<B> b1=new Sample<B>(br);
		b1.show2(b1);
	}
}
	

	
	
	
	
	
	
	
	
	
	
	
	
import java.util.*;
public class Stack<E extends Number>
{
	private ArrayList<E> list;
	public Stack(ArrayList<E> list)
	{
		this.list=list;
	}
	public void push(E element)
	{
		list.add(element);
	}
	public E pop()
	{
		E v=list.get(list.size()-1);
		list.remove(v);
		return  v;
	}
	public int size ()
	{
		return list.size();
	}
	public double average()
	{
		int length=this.size();
		double sum=0.0;
		while(!list.isEmpty())
			sum+=this.pop().doubleValue();
		return sum/length;
	}
	public boolean CompareAverage(Stack<?> s)
	{
		if(this.average()==s.average())
			return true;
		
		return false;
	}
	
		
		
		
		
		
	public static void main(String[] args)
	{
		Stack<Integer> s1=new Stack(new ArrayList<Integer>());
		s1.push(1);
		s1.push(2);
		s1.push(3);
		s1.push(4);
	//	s1.push(5);
		System.out.println("Integers Average of  s1 is "+s1.average());
		
		Stack<Double> s2=new Stack(new ArrayList<Double>());
		s2.push(1.1);
		s2.push(2.2);
		s2.push(3.3);
		s2.push(4.4);
	//	s2.push(5.5);
		System.out.println("Doubles Average of  s2 is "+s2.average());
		System.out.println("same avg?"+s1.CompareAverage(s2));
		
	}
}
public class Container2<T>{
	private T obj;
	public Container2(T obj){
		this.obj=obj;
	}
	public T getobj(){
		return this.obj;
	}
	public void showtype(){
		System.out.println("type is "+obj.getClass().getName());
	}
	public static void main(String[] args)
	{
		Container2<String> c1=new Container2<String>("deva");
		String s1=c1.getobj();
		System.out.println("String is "+s1);
		c1.showtype();
		
		Container2<Integer> c2=new Container2<Integer>(123);
		Integer s2=c2.getobj();
		System.out.println("Integer is "+s2);
		c2.showtype();
	}
}
public class Container1{
	private Object obj;
	public Container1(Object obj){
		this.obj=obj;
	}
	public Object getobj(){
		return this.obj;
	}
	public void showType(){
		System.out.println("Type is "+obj.getClass().getName());
	}
	public static void main(String[] args)
	{
		Container1 c1=new Container1("deva");
		String s1=(String)c1.getobj();
		System.out.println("String is "+s1);
		c1.showType();
		
		Container1 c2=new Container1(123);
		Integer s2=(Integer)c2.getobj();
		System.out.println("Integer is "+s2);
		c2.showType();
	}
}
#include <stdio.h>

int main()
{
    int array [10];
    int sum = 0;
    int i;
    int smallest, largest;
    int destinationArray [10];
    float ave;
    
    printf("Enter 10 integer:\n ");
    for (i=0; i<10; i++) {
        printf ("Enter integer %d:", i + 1);
       scanf ("%d", &array[i]);  
    }
   printf ("Integer you've enter: ");
   for (i=0; i<10; i++){
       printf ("%d", array[i]);
       
       sum+=array[i];
   }
   printf("\n");
    ave = (float)sum/10;
    printf("The sum of integer: %d\n", sum);
    printf ("The average of the integer: %lf\n ", ave);
    
    printf ("\nThe odd number are: \n");
    for (i=0; i<10; i++) {
        if (array[i] % 2 != 0) {
            printf ("%d", array[i]);
        }
    }
     printf ("\nThe even number are: \n");
    for (i=0; i<10; i++) {
        if (array[i] % 2 == 0) {
            printf ("%d", array[i]);
        }
    }
    smallest = array[0];
    for (i=0; i<10; i++){
        if (array[i] < smallest){
            smallest = array[i];
        }
    }
    printf ("\nThe smallest element: %d\n", smallest);
    
    largest = array[0];
    for (i=0; i<10; i++){
        if (array[i] > largest){
            largest = array[i];
        }
    }
    printf ("The largest element: %d\n", largest);
    
    for (i=0; i< 10; i++) {
        destinationArray[i] = array[i];
    }
    printf ("Copy: \n ");
     for (i=0; i< 10; i++) {
         printf ("%d", destinationArray[i]);
     }
     printf ("\n");
        
    return 0;
}
class A{
    private int x,y;
	A(int x,int y){
		this.x=x;
		this.y=y;
	}
	public int getX(){
		return x;
	}
	public int getY(){
		return y;
	}
}
class B extends A{
	private int z;
	B(int x,int y,int z){
		super(x,y);
		this.z=z;
	}
	public int getZ(){
		return z;
	}
}
class sample<T>{
	private T[] values;
	public sample(T[] values){
		this.values=values;
	}
	public static <T> void show(sample<? extends A> other){
		for(int i=0;i<other.values.length;i++){
			
			System.out.println(other.values[i].getX()+" "+other.values[i].getY()+" ");
		}
	}
	public static <T> void show2(sample<? extends B> other){
		for(int i=0;i<other.values.length;i++){
			
			System.out.println(other.values[i].getX()+" "+other.values[i].getY()+" "+other.values[i].getZ());
}
	}
}
public class wildcard{
	public static void main(String [] args){
		A[] ar={new A(1,2),new A(2,3),new A(3,4)};
		sample<A> a1=new sample<A>(ar);
a1.show(a1);
       B[] br={new B(1,2,5),new B(2,3,7),new B(3,4,8)};
		sample<B> b1=new sample<B>(br);
b1.show(b1);
	}
}

import java.util.*;
public class Stack<E extends Number>
{
	private ArrayList<E> list;
	public Stack(ArrayList<E> list)
	{
		this.list=list;
	}
	public void push(E element)
	{
		list.add(element);
	}
	public E pop()
	{
		E v=list.get(list.size()-1);
		list.remove(v);
		return  v;
	}
	public int size ()
	{
		return list.size();
	}
	public double average()
	{
		int length=this.size();
		double sum=0.0;
		while(!list.isEmpty())
			sum+=this.pop().doubleValue();
		return sum/length;
	}
	public boolean CompareAverage(Stack<?> s)
	{
		if(this.average()==s.average())
			return true;
		return false;
	}
	
		
		
		
		
		
	public static void main(String[] args)
	{
		Stack<Integer> s1=new Stack(new ArrayList<Integer>());
		s1.push(1);
		s1.push(2);
		s1.push(3);
		s1.push(4);
		s1.push(5);
		System.out.println("Integers Average of  s1 is "+s1.average());
		
		Stack<Double> s2=new Stack(new ArrayList<Double>());
		s2.push(1.0);
		s2.push(2.0);
		s2.push(3.0);
		s2.push(4.0);
		s2.push(5.0);
		System.out.println("Doubles Average of  s1 is "+s2.average());
		System.out.println("same avg?"+s1.CompareAverage(s2));
		
	}
}
function slick_cdn_enqueue_scripts(){
    wp_enqueue_style( 'slick-style', '//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css' );
    wp_enqueue_script( 'slick-script', '//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js', array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'slick_cdn_enqueue_scripts' );
function custom_cpt_testimonial() {
    $labels = array(
        'name' => _x('Testimonials', 'Post Type General Name'),
        'singular_name' => _x('Testimonial', 'Post Type Singular Name'),
        'menu_name' => 'Testimonials'
    );
    $args = array(
        'labels' => $labels,
        'public' => true,
        'menu_position' => 5,
        'supports' => array('title', 'editor', 'thumbnail', 'excerpt'),
        'has_archive' => true,
        'menu_icon' => 'dashicons-admin-appearance',
        'rewrite' => array('slug' => 'testimonial'),
    );
    register_post_type('testimonial', $args);
}
add_action('init', 'custom_cpt_testimonial');
# Demonstrated Python Program
# to read file character by character
file = open('file.txt', 'r')
 
while 1:
     
    # read by character
    char = file.read(1)          
    if not char: 
        break
         
    print(char)
 
file.close()
d = {}
with open("file.txt") as f:
    for line in f:
       (key, val) = line.split()
       d[int(key)] = val
SELECT
SubscriberKey, First_Name__c, Last_Name__c, Email__c, Cat_Campaign_Most_Recent__c, Business_Unit__c,
CASE WHEN Contact_for_Questions__c IS NULL THEN 'cat_sis2go@cat.com' END AS Contact_for_Questions__c, Mailing_Country__c, Company_Name__c, CreatedDate, DealerCode, MainDealer 
FROM (
SELECT
DISTINCT r.MAIL AS Email__c, SubscriberKey, r.FirstName AS First_Name__c, r.LastName AS Last_Name__c, r.Cat_Campaign_Most_Recent__c, r.Business_Unit__c,
CASE WHEN r.Contact_for_Questions__c IS NULL THEN 'cat_sis2go@cat.com' END AS Contact_for_Questions__c, r.Country AS Mailing_Country__c, r.Organization AS Company_Name__c, r.[Date] AS CreatedDate, r.DealerCode, r.MainDealer,

ROW_NUMBER() OVER(PARTITION BY r.MAIL ORDER BY r.[Date] DESC) as RowNum

FROM [7011G000000OJtMQAW_CI_MR_SIS2GO_Welcome_rawdata] r
LEFT JOIN [7011G000000OJtMQAW_CI_MR_SIS2GO_SIS2GO_Exclude_Dealer_Competitor_Agency] e ON LOWER(r.Mail) = LOWER(e.MAIL)
LEFT JOIN [7011G000000OJtMQAW_CI_MR_SIS2GO_Welcome_sendable] s ON LOWER(r.Mail) = LOWER(s.EmailAddress)
LEFT JOIN ENT.Embargoed_Countries ec ON s.Mailing_Country__c = ec.Mailing_Country__c


WHERE
    e.Mail IS NULL
    AND r.Mail IS NOT NULL
    AND s.SubscriberKey IS NULL
    AND ec.Mailing_Country__c IS NULL
    ) t2
    
    WHERE RowNum = 1
SELECT
EmailAddress, Region, Industry__c, SubscriberKey, Consent_Level_Summary__c, Mailing_Country__c, Language__c, CreatedDate,
FirstName, LastName, DealerCode, MainDealer, Cat_Campaign_Most_Recent__c, Business_Unit__c
 
FROM (
SELECT
DISTINCT LOWER(Email__c) AS EmailAddress, i.Region__c AS Region, i.Industry__c,
c.Id AS SubscriberKey, c.Consent_Level_Summary__c, i.Mailing_Country__c, c.Language__c, i.CreatedDate,
c.FirstName, c.LastName, r.DealerCode, r.MainDealer, r.Cat_Campaign_Most_Recent__c, r.Business_Unit__c,

ROW_NUMBER() OVER(PARTITION BY c.ID ORDER BY i.LastModifiedDate DESC) as RowNum
 
FROM ent.Interaction__c_Salesforce i
JOIN ent.Contact_Salesforce_1 c ON LOWER(c.Email) = LOWER(i.Email__c)
JOIN [7011G000000OJtMQAW_CI_MR_SIS2GO_Welcome_rawdata] r ON LOWER(r.MAIL) = LOWER(i.Email__c)
LEFT JOIN [7011G000000OJtMQAW_CI_MR_SIS2GO_SIS2GO_Exclude_Dealer_Competitor_Agency] e ON LOWER(r.Mail) = LOWER(e.MAIL)
 
WHERE
    e.Mail IS NULL
    AND Email__c IS NOT NULL
    AND  (i.System_Language__c like 'en_%' OR (i.Mailing_Country__c != 'CA' AND i.System_Language__c is null))
   
        )t2
 
WHERE RowNum = 1
    // Exemple :
    $text = "<script>console.log('salut')</script>";
    echo $text; // Execute le script !
    echo filter_var($text, FILTER_SANITIZE_FULL_SPECIAL_CHARS); // Pas interprèter

    $email = "jean(du22)@toto.fr";
    echo $email; // output : jean(du22)@toto.fr
    echo filter_var($email, FILTER_SANITIZE_EMAIL); // output : jeandu22@toto.fr

    $number = "a10.5";
    echo filter_var($number, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION | FILTER_FLAG_ALLOW_THOUSAND);

    $arr = [
        'email' => 'jean(a)@<gmail>.com',
        'text' => '<script>const a = 1</script>',
        'number' => 'aa12aaa'
    ];
    print_r(filter_var_array($arr, [
        'email' => FILTER_SANITIZE_EMAIL,
        'text' => [
            'filter' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
            'flags' =>  FILTER_FLAG_NO_ENCODE_QUOTES
        ],
        'number' => FILTER_SANITIZE_NUMBER_INT
    ]));


    $_POST = filter_input_array(INPUT_POST, [
        'firstname' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
        'email' => FILTER_SANITIZE_EMAIL,
        'date' => FILTER_SANITIZE_FULL_SPECIAL_CHARS
    ]);
The issue wasn't due to FH but to a setting of their CDN, Cloudflare. Cloudflare has a setting called "Rocket Loader" which hijacks the document.write function among other things. This causes a portion of the embed script to load asynchronously and break. We fixed it by adding a string to each calendar, so that Rocket Loader ignores them.
#include <stdio.h>
 
int main()
{
   int q[10];
   int sum, average;
   int even=0, odd=0;
   int big=0;
   int copyq[10]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
 
  
   printf("Enter 10 integers:");
  
   for(int i=0; i<=9; i++)//Input
   {
   scanf("%d", &q[i]);
   sum+=q[i];
   copyq[i]=q[i];
   if(q[i]>big)//Bigger Element
   big=q[i];
   }
  
int small=q[0];
for(int i=0; i<=9; i++)//Smallest Element
{
   if(q[i]<small)//Small Element
   small=q[i];
}
  
   printf("Even Numbers:");
   for(int i=0; i<=9; i++)//Even Numbers Displayer
   {
       if(q[i]%2==0)
       printf("%d  ", q[i]);
   }
                                       printf("\n");
  
   printf("Odd Numbers:");
   for(int i=0; i<=9; i++)//Odd Numbers Displayer
   {
       if(q[i]%2==1)
       printf("%d  ", q[i]);
   }
                                       printf("\n");
                                      
 
 
average=sum/10;
printf("Sum: %d\n", sum);
printf("Average: %d\n", average);
printf("Biggest Element: %d\n", big);
printf("Smallest Element: %d", small);
                                   printf("\n");
printf("Displaying in Reverse:");                             
  for(int i=9; i>=0; i--)//Displaying in Reverse
   printf("%d  ", q[i]);
  
printf("\n");
//Copy
printf("New One Dimensional Array originally is: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 \n");
printf("Copy of One-Dimensional Array to new Array:");
for (int i = 0; i < 10; ++i) {
       printf("%d   ", copyq[i]);
   }
  
  
  
  
 
   return 0;
}
add_action( 'wp_footer', function () { ?>
<script>
    (function($){
        $(document).on('ready', function(){
            $('.sp-ea-single>.ea-header a').on('click', function(e){
				e.preventDefault;
				var $this = $(this);
				setTimeout(function(){
					var targetTop = $this.offset().top - 150 + 'px';
					$("html, body").animate({ scrollTop: targetTop }, "slow");
				},  500);
            });
        });
    })(jQuery);
</script>
<?php },99 );
def login():
    url = "http://localhost:3000/login"
    driver.get(url)
    driver.maximize_window()

    # get values from user to enter in the fields
    actual_name = "chaitra@br.com"
    actual_pwd = "123456"

    time.sleep(5)
    driver.find_element(By.XPATH, "//input[@name='email']").send_keys(actual_name)
    driver.find_element(By.XPATH, "//input[@name='password']").send_keys(actual_pwd)
    username = actual_name
    password = actual_pwd

    time.sleep(10)

    # Execute a query to retrieve the salted and hashed password for the specified user
    query = f"SELECT salted_hash_of_password FROM websocket_authentication_details WHERE email_id = %s and is_active " \
            f"= true "
    cursor.execute(query, (username,))
    result = cursor.fetchone()

    try:
        if result:
            stored_password_hash = result[0]
            user_input_password = password.encode('utf-8')

            # Verify the user's input password against the stored hash
            if bcrypt.checkpw(user_input_password, stored_password_hash.encode('utf-8')):
                query1 = f"SELECT permissions_json FROM websocket_permissions_details where email_id = %s"
                cursor.execute(query1, (username,))
                rows = cursor.fetchall()

                # Check for the keys present in Db for password verified user
                unique_keys = set()
                for row in rows:
                    json_data = row[0]
                    if json_data:
                        unique_keys.update(json_data.keys())
                unique_keys_list = list(unique_keys)

                # check if the user has the below keys in order to login
                values_to_check = ["data_permissions", "permit_actions"]
                for value in values_to_check:
                    if value in unique_keys_list:
                        try:
                            driver.find_element(By.XPATH, "//button[text()='Login']").click()
                            time.sleep(3)
                            val = key_check(username)
                            progress(val)
                            document_path = "D:/testfolder/test.dat"
                            order_blotter(document_path)
                        except NoSuchElementException:
                            print(" ")
            else:
                print("wrong pass")
                driver.find_element(By.XPATH, "//button[text()='Login']").click()
                time.sleep(5)
        else:
            print("user details not found")
            driver.find_element(By.XPATH, "//button[text()='Login']").click()
            time.sleep(3)
    except Exception as e:
        print("An unexpected error occurred:", e)

    cursor.close()
    conn.close()

    try:
        if "Wrong email or password." in driver.page_source:
            print("Wrong pass or username. Retry with correct login creds")
            driver.refresh()
        else:
            print("Login successful")
    except Exception as e:
        print("An unexpected error occurred:", e)
    time.sleep(10)
# Plot Box plots.
ff = cbind( cellType = rownames(f1), color = colorCodes[1:13], f1[, 2:10] )
ff = melt( ff, measure.vars = 3:11)
# Import tkinter and json modules
import tkinter as tk
import json

# Create a root window
root = tk.Tk()

# Set the window title
root.title("Welcome")

# Set the window size
root.geometry("300x200")

# Create a function to save the user data to a json file
def save_user_data(username, password, filename="Accounts1.json"):
    # Create a dictionary with the user data
    user_data = {"username": username, "password": password}
    # Try to open the file and append the user data
    try:
        with open(filename, "r+") as file:
            # Load the existing data
            file_data = json.load(file)
            # Append the new user data
            file_data["users"].append(user_data)
            # Seek to the beginning of the file
            file.seek(0)
            # Dump the updated data
            json.dump(file_data, file, indent=4)
    # If the file does not exist, create a new file with the user data
    except FileNotFoundError:
        with open(filename, "w") as file:
            # Create a dictionary with a list of users
            file_data = {"users": [user_data]}
            # Dump the data to the file
            json.dump(file_data, file, indent=4)

# Create a function to open a new window for creating an account
def create_account():
    # Create a top-level window
    account_window = tk.Toplevel(root)
    # Set the window title
    account_window.title("Create Account")
    # Set the window size
    account_window.geometry("300x200")
    # Create a label for username
    username_label = tk.Label(account_window, text="Username:")
    # Create an entry box for username
    username_entry = tk.Entry(account_window)
    # Create a label for password
    password_label = tk.Label(account_window, text="Password:")
    # Create an entry box for password
    password_entry = tk.Entry(account_window, show="*")
    # Create a function to submit the account details
    def submit_account():
        # Get the username and password from the entry boxes
        username = username_entry.get()
        password = password_entry.get()
        # Save the user data to the json file
        save_user_data(username, password)
        # Close the account window
        account_window.destroy()
    # Create a button to submit the account details
    submit_button = tk.Button(account_window, text="Submit", command=submit_account)
    # Place the widgets on the window using grid layout
    username_label.grid(row=0, column=0, padx=10, pady=10)
    username_entry.grid(row=0, column=1, padx=10, pady=10)
    password_label.grid(row=1, column=0, padx=10, pady=10)
    password_entry.grid(row=1, column=1, padx=10, pady=10)
    submit_button.grid(row=2, column=1, padx=10, pady=10)

# Create a function to open a new window for logging in
def login():
    # Create a top-level window
    login_window = tk.Toplevel(root)
    # Set the window title
    login_window.title("Login")
    # Set the window size
    login_window.geometry("300x200")
    # Create a label for username
    username_label = tk.Label(login_window, text="Username:")
    # Create an entry box for username
    username_entry = tk.Entry(login_window)
    # Create a label for password
    password_label = tk.Label(login_window, text="Password:")
    # Create an entry box for password
    password_entry = tk.Entry(login_window, show="*")
    # Create a function to submit the login details
    def submit_login():
        # Get the username and password from the entry boxes
        username = username_entry.get()
        password = password_entry.get()
        # Try to open the json file and check the user data
        try:
            with open("Accounts1.json", "r") as file:
                # Load the data
                file_data = json.load(file)
                # Loop through the users list
                for user in file_data["users"]:
                    # If the username and password match, login successfully
                    if user["username"] == username and user["password"] == password:
                        # Close the login window
                        login_window.destroy()
                        # Show a message box
                        tk.messagebox.showinfo("Login", "Login successful!")
                        # Break the loop
                        break
                # If the loop ends without breaking, login failed
                else:
                    # Show a message box
                    tk.messagebox.showerror("Login", "Invalid username or password!")
        # If the file does not exist, show a message box
        except FileNotFoundError:
            tk.messagebox.showerror("Login", "No accounts found!")
    # Create a button to submit the login details
    submit_button = tk.Button(login_window, text="Submit", command=submit_login)
    # Place the widgets on the window using grid layout
    username_label.grid(row=0, column=0, padx=10, pady=10)
    username_entry.grid(row=0, column=1, padx=10, pady=10)
    password_label.grid(row=1, column=0, padx=10, pady=10)
    password_entry.grid(row=1, column=1, padx=10, pady=10)
    submit_button.grid(row=2, column=1, padx=10, pady=10)

# Create a label for welcome message
welcome_label = tk.Label(root, text="Welcome to the Tkinter GUI!")
# Create a button for creating an account
create_account_button = tk.Button(root, text="Create Account", command=create_account)
# Create a button for logging in
login_button = tk.Button(root, text="Login", command=login)
# Place the widgets on the window using pack layout
welcome_label.pack(padx=10, pady=10)
create_account_button.pack(padx=10, pady=10)
login_button.pack(padx=10, pady=10)

# Start the main loop
root.mainloop()
<script>
    jQuery(document).ready(function($){
        if (window.location.href === "xxxx") {
            $('body').append('<a href="xxx" style="margin-right: 2.8em; margin-bottom: .5em; z-index: 9999999; font-weight: bold; letter-spacing: .7px; border: 2px solid #FFFFFF; box-shadow: none; padding: .2em 2em;" class="fh-hide--mobile fh-fixed--bottom fh-icon--cal fh-button-true-flat-color fh-shape--round">BOOK NOW</a>');
            $('body').append('<a href="xxx" style="z-index: 9999999; letter-spacing: .7px; border: 2px solid #FFFFFF; box-shadow: none; padding: .2em 2em;" class="fh-hide--desktop fh-size--small fh-fixed--side fh-button-true-flat-color fh-color--white">BOOK NOW</a>');
        }
    });
</script>
https://web.archive.org/

and place 

id_

before /http

Add "id_" after the timestamp in a url. For example:

http://web.archive.org/web/20150901185758id_/http://www.example.com
רשימת אייקונים 
selector path {
    fill: gold!important;
}

החלפת איקונים 
selector rect {
    fill: #E1CDCC!important;
}
-- Online SQL Editor to Run SQL Online.
-- Use the editor to create new tables, insert data and all other SQL operations.
  
SELECT first_name, age
FROM Customers;
// var instance = 'dev12345';
// var username = 'admin';
// var password = 'yourpassword';

var graphql = JSON.stringify({
  query: "query {\r\n  countries {\r\n    name\r\n  }\r\n}",
  variables: {}
})


// Instantiate request with ServiceNow API incidents table endpoint
var request = new GlideHTTPRequest('https://countries.trevorblades.com/');
// Add authentication data
//request.setBasicAuth(username, password);

// Add the Accept header to get JSON response
request.addHeader('Accept', 'application/json');

// Execute the GET request
var response = request.post(graphql);

// Print the results: status code and number of records returned
gs.print(response.getStatusCode());
gs.print('Countries Response: ' + response.getBody());
      paddingTop:isFocused ?"20px":"10px"
      paddingTop:isFocused ?"20px":"20px"
<div className="sm:col-span-6">
        <div className="mt-6 flex items-center justify-end gap-x-6">
        <div className="mt-6 flex items-center justify-end gap-x-4">
          
          

            className="rounded-md text-[13px] text-[#31374A] px-6 py-[11px] border border-[#31374A]"
            //   onClick={cancelChanges}
            className="rounded-md text-[13px] text-[#31374A] px-6 py-[11px] border border-[#31374A] mr-2"

    Cancel Changes
            Cancel
@ -40,7 +40,7 @@ import { GrAttachment } from "react-icons/gr";
import { HiOutlineDownload } from "react-icons/hi";
import { IoPeopleCircleOutline } from "react-icons/io5";
import { LuUser } from "react-icons/lu";
import { MdOutlineNotes, MdOutlineStackedBarChart } from "react-icons/md";
import { MdKeyboardArrowDown, MdOutlineNotes, MdOutlineStackedBarChart } from "react-icons/md";
import { RiExpandRightLine } from "react-icons/ri";
import { RxCross2 } from "react-icons/rx";
import { TiTick } from "react-icons/ti";
@ -1267,7 +1267,7 @@ const TaskDetailsView = ({
                  <div className="w-[20%]">
                    <div className="flex items-center">
                      <IoPeopleCircleOutline className="text-blue-500 text-lg" />
                      <span className="text-[#6D6E6F] text-sm ml-1">
                      <span className="text-[#0D2E62] text-sm ml-1">
                        Assignee
                      </span>
                    </div>
@ -1369,7 +1369,7 @@ const TaskDetailsView = ({
                  <div className="w-[20%]">
                    <div className="flex items-center">
                      <FaRegCalendarAlt className="text-blue-500 text-sm" />
                      <span className="text-[#6D6E6F] text-sm ml-1">
                      <span className="text-[#0D2E62] text-sm ml-1">
                        Schedule
                      </span>
                    </div>
@ -1443,7 +1443,7 @@ const TaskDetailsView = ({
                    )}

                    <div className="mt-4 flex items-center max-w-fit">
                      <span className="text-[#6D6E6F] text-sm">
                      <span className="text-[#0D2E62] text-sm">
                        Estimated Time (Hours)
                      </span>

@ -1496,7 +1496,7 @@ const TaskDetailsView = ({
                      )}
                    </div>
                    <div className="mt-2 flex items-center max-w-fit">
                      <span className="text-[#6D6E6F] text-sm">
                      <span className="text-[#0D2E62] text-sm">
                        Log Actual Time (Hours)
                      </span>

@ -1554,7 +1554,7 @@ const TaskDetailsView = ({
                  <div className="w-[20%]">
                    <div className="flex items-center">
                      <MdOutlineStackedBarChart className="text-blue-500 text-md" />
                      <span className="text-[#6D6E6F] text-sm ml-1">
                      <span className="text-[#0D2E62] text-sm ml-1">
                        Priority
                      </span>
                    </div>
@ -1582,7 +1582,9 @@ const TaskDetailsView = ({
                            variant="light"
                            className="bg-inherit min-w-max px-2 h-[28px] rounded"
                          >
                            <BsThreeDots height={12} />
                            {/* <BsThreeDots height={12} /> */}
                            <span className="">Set Priority</span> 
                            <MdKeyboardArrowDown size={20} />
                          </Button>
                        )}
                      </DropdownTrigger>
@ -1620,7 +1622,7 @@ const TaskDetailsView = ({
                  <div className="w-[20%]">
                    <div className="flex items-center">
                      <FaChartLine className="text-blue-500 text-sm" />
                      <span className="text-[#6D6E6F] text-sm ml-1">
                      <span className="text-[#0D2E62] text-sm ml-1">
                        Status
                      </span>
                    </div>
@ -1654,7 +1656,8 @@ const TaskDetailsView = ({
                            variant="light"
                            className="bg-inherit min-w-max px-2 h-[28px] rounded"
                          >
                            <BsThreeDots height={12} />
                           <span className="">Update</span> 
                            <MdKeyboardArrowDown size={20} />
                          </Button>
                        )}
                      </DropdownTrigger>
@ -1691,7 +1694,7 @@ const TaskDetailsView = ({
                <div className="mt-2">
                  <div className="flex items-center">
                    <MdOutlineNotes className="text-blue-500 text-lg" />
                    <span className="text-[#6D6E6F] text-sm ml-1">
                    <span className="text-[#0D2E62] text-sm ml-1">
                      Description
                    </span>
                    <div
@ -1733,7 +1736,7 @@ const TaskDetailsView = ({
                  <div className="mt-4">
                    <div className="flex items-center mb-4">
                      <FaTasks className="text-blue-500 text-sm" />
                      <span className="text-[#6D6E6F] text-sm ml-1">
                      <span className="text-[#0D2E62] text-sm ml-1">
                        Subtasks
                      </span>
                    </div>
from machine import Pin, I2C, PWM, freq
import utime

set_temp = 50 #sets fan start temperature
 
sensor_temp = machine.ADC(4)
conversion_factor = 3.3 / (65535)
fan_speed = 0
fan_pwm = PWM(Pin(18)) #sets output pin
fan_pwm.freq(100) #sets pwm frequency
fan_pwm.duty_u16(fan_speed)
 
while True:
    reading = sensor_temp.read_u16() * conversion_factor 
    temperature = 27 - (reading - 0.706)/0.001721
    print(temperature)
    utime.sleep(2)
    if temperature > set_temp:
        fan_speed =  (temperature - set_temp) * 2000
        fan_speed = max(fan_speed,20000) #sets minimum speed to prevent stalling
        fan_speed = min(fan_speed,64000) 
        fan_pwm.duty_u16(int(fan_speed))
    else:
        fan_speed = 0
        fan_pwm.duty_u16(int(fan_speed)) 
        
 

Metabase Installation on Ubuntu

 

sudo apt-get update

sudo apt-get install openjdk-11-jdk

wget "https://downloads.metabase.com/v0.52.1/metabase.jar" -O ~/metabase.jar

java -jar ~/metabase.jar


Metabae Server on Port 3000:
http://localhost:3000


1- Mysql
2- Display Name: erpnext
3- Host: 127.0.0.1
4- Port: 3306
5- Database name: _2x22222222222222x
6- username: root
7- Password: 123..


 

Taimoor
Mobile: 0300-9808900
Email: Taimoor986@gmail.com
<?php 
/*gift_slide_bk_all*/
function gift_slide_bkg_all($gift_slide) {
    $ua = strtolower($_SERVER["HTTP_USER_AGENT"]);
    $isMob = is_numeric(strpos($ua, "mobile"));
    if ($isMob != 'mobile') {
        // Determine which background field to check based on the $gift_slide value
        if ($gift_slide == 'one') { $slideBackground = 'slide1background'; }
        if ($gift_slide == 'two') { $slideBackground = 'slide2background'; }
        if ($gift_slide == 'three') { $slideBackground = 'slide3background'; }
        if ($gift_slide == 'four') { $slideBackground = 'slide4background'; }
    $background = get_field($slideBackground, get_the_ID());
        if (!empty($background)) {
            // Apply Cloudinary transformations to the background URL
            if (strpos($background, "cloudinary.com") !== false) {
                // Extract the URL parts to insert transformations
                $parts = explode('/upload/', $background);
                if (count($parts) == 2) {
                    // Ensure the URL ends with .jpg and apply transformations including blur
                    $transformedUrl = $parts[0] . '/upload/f_auto,q_auto:eco,e_blur:5000/' . preg_replace('/\.\w+$/', '.jpg', $parts[1]);
                    return $transformedUrl;
                }
            }
            return $background; // Return the original URL if slideBackfield url field is empty
        } else {
        if ($gift_slide == 'one') { $gift_slide_number = 'slide1_type'; }
        if ($gift_slide == 'two') { $gift_slide_number = 'slide2_type'; }
        if ($gift_slide == 'three') { $gift_slide_number = 'slide3_type'; }
        if ($gift_slide == 'four') { $gift_slide_number = 'slide4_type'; }
     $slidetype = get_field($gift_slide_number, get_the_ID());
        if ($slidetype == 'photo editor') {
            if ($gift_slide == 'one') { $gift_field = 'gift_image'; }
            if ($gift_slide == 'two') { $gift_field = 'gift_image_2'; }
            if ($gift_slide == 'three') { $gift_field = 'gift_image_3'; }
            if ($gift_slide == 'four') { $gift_field = 'gift_image_4'; }
            $img_id = get_field($gift_field, get_the_ID());
            if (!empty($img_id)) {
                $media_url = wp_get_attachment_image_url($img_id, 'full');
                if (!empty($media_url)) {
                    return $media_url;
                }
            }
        } else {
            if ($gift_slide == 'one') { $gift_field = 'gif1'; }
            if ($gift_slide == 'two') { $gift_field = 'gif2'; }
            if ($gift_slide == 'three') { $gift_field = 'gif3'; }
            if ($gift_slide == 'four') { $gift_field = 'gif4'; }
       $media_id = get_field($gift_field, get_the_ID());
            if (!empty($media_id) && is_numeric($media_id)) {
                // Try fetching from the _cloudinary meta field
                $cloudinary_data = get_post_meta($media_id, '_cloudinary', true);
                if (isset($cloudinary_data['_cloudinary_url'])) {
                    $media_url = $cloudinary_data['_cloudinary_url'];
                    // Check if the media URL is from Cloudinary
        if (strpos($media_url, "cloudinary.com") !== false) {
            // Insert transformations for all media types
            $parts = explode('/upload/', $media_url);
            $media_url = $parts[0]. '/upload/f_auto,q_auto,so_2,e_blur:5000/'.$parts[1];
        }
                } else {
                    $media_url = wp_get_attachment_url($media_id);
                }
                $filetype = wp_check_filetype($media_url);
                if ($filetype['ext'] == 'mp4') {
                    if (strpos($media_url, "cloudinary.com") !== false) {
                        $parts = explode('/upload/', $media_url);
                        $transformed_media_url = $parts[0]. '/upload/f_auto,q_auto,so_2,e_blur:5000/'.$parts[1];
                        $transformed_media_url = str_replace(".mp4", ".jpg", $transformed_media_url);
                        return $transformed_media_url;
                    }
                } else {
                    return $media_url;
                }
            }
        if (!empty($media_id) && !is_numeric($media_id)) {
            $media_url = $media_id;
            $filetype = wp_check_filetype($media_id);
            if ($filetype['ext'] == 'mp4') {
                $media_name = basename(get_attached_file($media_id));
                $media_name_jpg = str_replace(".mp4", ".jpg", "$media_name");
                return "https://res.cloudinary.com/drt2tlz1j/video/upload/f_auto,q_auto,so_2,e_blur:5000/fn/$media_name_jpg";
            } else {
                return $media_url;
            }
        }
         if (empty($media_id)) {
            return 'https://res.cloudinary.com/drt2tlz1j/images/f_auto,q_auto:eco,e_blur:5000/v1700932277/fn/fallback-GS/fallback-GS.jpg?_i=AA';
        }
        }
    }
}
}
// register shortcode
add_shortcode('gift_slide_bkg_all', 'gift_slide_bkg_all');
<script src="https://upload-widget.cloudinary.com/global/all.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
    // Function to initialize Cloudinary widget and handle upload success
    function setupCloudinaryWidget(editButtonId, urlFieldSelector, submitButtonSelector) {
        var widget = cloudinary.createUploadWidget({
            cloudName: "drt2tlz1j",
            uploadPreset: "giftWidget",
            show_powered_by: false,
            sources: ["local", "image_search", "camera"],
						defaultSource: "local",
					googleApiKey: "AIzaSyAhy7PJXH7_3t9qbIiczK5nZHsaUOGEFMM",
            showAdvancedOptions: false,
            cropping: false,
            multiple: false,
					folder: "gs-uploads",
					clientAllowedFormats: ["image/*", "video/*", "mp4", "mov", "webm", "webp", "gif", "jpg", "png", "svg"],
					showCompletedButton: true,
            styles: {
                palette: {
                    window: "rgba(71, 80, 72, 0.74)",
                    windowBorder: "#FFFFFF",
                    tabIcon: "#009A42",
                    menuIcons: "#FFFFFF",
                    textDark: "#FFFFFF",
                    textLight: "#FFFFFF",
                    link: "#009A42",
                    action: "#009A42",
                    inactiveTabIcon: "#FFFFFF",
                    error: "#FA9B32",
                    inProgress: "#009A42",
                    complete: "#009A42",
                    sourceBg: "rgba(71, 80, 72, 0.37)"
                },
                fonts: { default: { active: true } }
            }
        }, (error, result) => {
            if (!error && result && result.event === "success") {
                console.log('Done! Here is the image info: ', result.info);
                var uploadedUrl = result.info.secure_url;
                
                // Fill the ACF URL field with the uploaded URL
                $(urlFieldSelector).val(uploadedUrl);
                
                // Submit the ACF form
                $(submitButtonSelector).click();
            }
        });

        // Attach click event to the edit button to open the widget
        $(editButtonId).on('click', function() {
            widget.open();
        });
    }

    // Setup Cloudinary widget for each edit button, URL field, and submit button
    setupCloudinaryWidget("#slide1edit", "input[name='acf[field_65c630a53001b]']", "button[name='acf[field_65c630e33001f]']");
    setupCloudinaryWidget("#slide2edit", "input[name='acf[field_65c630c93001c]']", "button[name='acf[field_65c6311130020]']");
    setupCloudinaryWidget("#slide3edit", "input[name='acf[field_65c630cf3001d]']", "button[name='acf[field_65c6311930021]']");
    setupCloudinaryWidget("#slide4edit", "input[name='acf[field_65c630d63001e]']", "button[name='acf[field_65c6312330022]']");
});
</script>
  import React, { useState, useEffect } from 'react';
  import axios from 'axios';
  import { Form } from 'react-bootstrap';

  const Filter01 = ({ setFilterValue }) => {
    const [data, setData] = useState([]);
    const [selectedItemId, setSelectedItemId] = useState('');
    const [loading, setLoading] = useState(true);
    const [error, setError] = useState(null);

    useEffect(() => {
      axios.get('http://5.34.198.87:8000/api/options/uainstruments')
        .then(response => {
          setData(response.data.data);
        })
        .catch(error => {
          setError(error);
        })
        .finally(() => {
          setLoading(false);
        });
    }, []);

    const handleSelectChange = (event) => {
      const selectedId = event.target.value;
      setSelectedItemId(selectedId);
      setFilterValue(selectedId); // Set the selectedId as the filter value
    };

    if (loading) {
      return <p>Loading...</p>;
    }

    if (error) {
      return <p>Error: {error.message}</p>;
    }

    if (data.length === 0) {
      return <p>No data available.</p>;
    }

    return (
  <div className="text-right ">
    <span className="mr-2 text-right float-right ms-3">نماد سهم پایه</span>
    <div className="flex items-center justify-end mb-3 w-[7%] ml-auto m-1">
      <Form.Select
        className="w-48 text-center"
        value={selectedItemId}
        onChange={handleSelectChange}
      >
        <option value=""> </option>
        {data.map((item) => (
          <option key={item.ua_instrument_id} value={item.ua_instrument_id}>
            {item.ua_instrument_symbol_fa}
          </option>
        ))}
      </Form.Select>
    </div>
  </div>
);

  };

  export default Filter01;
#include <iostream>


using namespace std;


int main() {

    int numbers[] = {10,20,30};
    int* ptrNumbers = &numbers[size(numbers) - 1];

    while (ptrNumbers >= &numbers[0]) {//or (ptrNumbers >= numbers)
            cout << *ptrNumbers <<endl;
            ptrNumbers--;
    }
    return 0;
}
    require([
       'Magento_Customer/js/customer-data'
    ], function (customerData) {
        var sections = ['cart'];
        customerData.invalidate(sections);
        customerData.reload(sections, true);
    });
#include <iostream>


using namespace std;

void increasePrice(double& price) {
    price *= 1.2;

}
int main() {

    double price = 100;
    increasePrice(price);
    cout << price;

    return 0;
}
#include <iostream>


using namespace std;

int main() {

    int number = 10;
    int* ptr = &number; // The address of operator
    *ptr = 20; // Indirection (de-referencing) operator
    cout << number;
    
    return 0;
}
Creating a list with a vector,matrix and list
lis<-list(c(1:10),matrix((1:12),3,4,TRUE),list((10:20),matrix(1:6),2,3))
print(lis)
#Giving names for list
names(lis)<-c("VECT","MAT","LISS")
print(lis$VECT)
#Adding an element at the end of the list
lis[4]<-"NEW ELEMENT"
print(lis[4])
#Removing the last element
lis[4]=NULL
print(lis)
#Updating the 3rd element
lis[3]<-"UPDATED ELEMENT"
print(lis)
#Creating a second list
lis2<-list(c(20:30))
print(lis2)
#Merging 2 lists
merg_lis<-list(lis,lis2)
print(merg_lis)
/**
 * 	Show ID in Wordpress
 * 
	Add ID in the action row of list tables for pages, posts,
	custom post types, media, taxonomies, custom taxonomies,
	users amd comments
	
	Inspiration:
	https://wordpress.org/plugins/admin-site-enhancements/
	https://www.itsupportguides.com/knowledge-base/wordpress/using-wordpress-post_row_actions-php-filter/
*/

add_filter('post_row_actions', 'add_custom_action_for_specific_post_type', 11, 2);
add_filter('page_row_actions', 'add_custom_action_for_specific_post_type', 11, 2);
add_filter('cat_row_actions', 'add_custom_action_for_specific_post_type', 11, 2);
add_filter('tag_row_actions', 'add_custom_action_for_specific_post_type', 11, 2);
add_filter('media_row_actions', 'add_custom_action_for_specific_post_type', 11, 2);
add_filter('comment_row_actions', 'add_custom_action_for_specific_post_type', 11, 2);
add_filter('user_row_actions', 'add_custom_action_for_specific_post_type', 11, 2);

/* Output the ID in the action row */
function add_custom_action_for_specific_post_type( $actions, $object ) {
        
	if ( current_user_can( 'edit_posts' ) ) {
		// For pages, posts, custom post types, media/attachments, users
		if ( property_exists( $object, 'ID' ) ) {
			$id = $object->ID;
		}
		// For taxonomies
		if ( property_exists( $object, 'term_id' ) ) {
			$id = $object->term_id;
		}
		// For comments
		if ( property_exists( $object, 'comment_ID' ) ) {
			$id = $object->comment_ID;
		}
		$actions['show-id-now'] = '<span style="color: gray;">ID: ' . $id . '</span>';
	}
	return $actions;
}
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import MailOutlineRoundedIcon from '@mui/icons-material/MailOutlineRounded';
import {SvgIconTypeMap} from "@mui/material";
import {OverridableComponent} from "@mui/material/OverridableComponent";
import {TuneRounded} from "@mui/icons-material";
import QueryStatsRoundedIcon from '@mui/icons-material/QueryStatsRounded';
import HandymanRoundedIcon from '@mui/icons-material/HandymanRounded';
import TroubleshootRoundedIcon from '@mui/icons-material/TroubleshootRounded';
import AdminPanelSettingsRoundedIcon from '@mui/icons-material/AdminPanelSettingsRounded';


enum SelectableSection {
    message = 'message',
    configuration = 'settings',
    message_statistic = 'message_statistic',
    applications_management = 'applications_management',
    administrator_menu = 'administrator_menu',
    audit = 'audit'
}

type SelectableSectionInfo = {
    name: string;
    displayName: string;
    icon: OverridableComponent<SvgIconTypeMap>;
    isInTabMenu: boolean;
};

const selectableSectionInfoMap: Record<SelectableSection, SelectableSectionInfo> = {
    [SelectableSection.message]: {
        name: 'message',
        displayName: 'Message monitoring',
        icon: MailOutlineRoundedIcon,
        isInTabMenu: true
    },
    [SelectableSection.configuration]: {
        name: 'settings',
        displayName: 'Configuration',
        icon: TuneRounded,
        isInTabMenu: true
    },
    [SelectableSection.message_statistic]: {
        name: 'message_statistics',
        displayName: 'Message Statistics',
        icon: QueryStatsRoundedIcon,
        isInTabMenu: true
    },
    [SelectableSection.applications_management]: {
        name: 'applications_management',
        displayName: 'Applications Management',
        icon: HandymanRoundedIcon,
        isInTabMenu: true
    },
    [SelectableSection.administrator_menu]: {
        name: 'administrator_menu',
        displayName: 'Administrator Menu',
        icon: AdminPanelSettingsRoundedIcon, //AdminPanelSettingsOutlinedIcon
        isInTabMenu: true
    },
    [SelectableSection.audit]: {
        name: 'audit',
        displayName: 'Audit',
        icon: TroubleshootRoundedIcon,
        isInTabMenu: true
    }
};

interface SelectableSectionsState {
    selected: SelectableSection;
}

const initialState: SelectableSectionsState  = {
    selected: SelectableSection.message,
};

const selectedSectionSlice = createSlice({
    name: 'selectedSections',
    initialState,
    reducers: {
        setSelectedSection: (state, action: PayloadAction<SelectableSection>) => {
            state.selected = action.payload;
        }
    },
});

export const { setSelectedSection } = selectedSectionSlice.actions;

export default selectedSectionSlice.reducer;

export const selectSelectedSection = (state: { selectableSections: SelectableSectionsState }) =>
    state.selectableSections.selected;

export const getSelectableSectionInfo = (selectableSection: SelectableSection): SelectableSectionInfo =>
    selectableSectionInfoMap[selectableSection];
let bg;

function setup() {
  createCanvas(400, 400, WEBGL);
  bg=createGraphics(400,400);
  bg.stroke(0);
  bg.strokeWeight(2.5);
  for(let i=0;i<1000;i++){
    bg.point(random(width),random(height));
    
  }
}

function draw() {
  background(245);
  rotateX(radians(frameCount));
  texture(bg);
  
  box(100);
}
rm -r generated/* var/cache/* var/view_preprocessed/* pub/static/*
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;

public class ScoreManager : MonoBehaviour
{
    public int score;
    public TextMeshProUGUI scoreText;
    void Start()
    {
        UpdateScoreText();
    }
    public void IncreaseScore(int amount)
    {
        score += amount;
        UpdateScoreText();
    }

    void UpdateScoreText()
    {
        scoreText.text = "Score: " + score;
    }
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Balloon : MonoBehaviour
{
    public int scoreToGive = 1;
    public int clicksToPop = 5;
    public float scaleIncreasePerClick = 0.1f;
    public ScoreManager scoreManager;

    private void OnMouseDown()
    {
        clicksToPop -= 1;

        transform.localScale += Vector3.one * scaleIncreasePerClick;

        if(clicksToPop ==0)
        {
            scoreManager.IncreaseScore(scoreToGive);
            Destroy(gameObject);
        }
    }
}
// Featured Thumbnail
function featured_thumbnail() { 
	ob_start(); ?>
	<div class="thumbnail-block">
		<?php $featured_img_url = get_the_post_thumbnail_url( get_the_ID(),'full'); ?>
		<div class="page-thumbnail" style="background-image: url('<?php echo $featured_img_url; ?>');"></div>
	</div>
	<?php return ob_get_clean();
}
add_shortcode ('featured_thumbnail','featured_thumbnail');
function diff(start, end) {
    start = document.getElementById("start").value; //to update time value in each input bar
    end = document.getElementById("end").value; //to update time value in each input bar
    
    start = start.split(":");
    end = end.split(":");
    var startDate = new Date(0, 0, 0, start[0], start[1], 0);
    var endDate = new Date(0, 0, 0, end[0], end[1], 0);
    var diff = endDate.getTime() - startDate.getTime();
    var hours = Math.floor(diff / 1000 / 60 / 60);
    diff -= hours * 1000 * 60 * 60;
    var minutes = Math.floor(diff / 1000 / 60);

    return (hours < 9 ? "0" : "") + hours + ":" + (minutes < 9 ? "0" : "") + minutes;
}
@media (max-width: 767px) {
    #socket .container {
        text-align: center;
    }

    #socket .social_bookmarks li,
    #socket .social_bookmarks,
    #socket .sub_menu_socket li,
    #socket .sub_menu_socket,
    #socket .copyright {
        float: none !important;
    }

    #socket .sub_menu_socket li,
    #socket .social_bookmarks li {
        display: inline-block;
    }

    #socket .social_bookmarks {
        margin: 0 0 5px 0;
    }

    #socket .sub_menu_socket {
        margin: 0 !important;
        height: 30px;
    }

    #footer .flex_column, .widget {
        margin-bottom: 0 !important;
    }
}
func _on_button_2_pressed():
	get_tree().quit()
star

Thu Feb 15 2024 07:07:16 GMT+0000 (Coordinated Universal Time)

@dsce

star

Thu Feb 15 2024 07:06:43 GMT+0000 (Coordinated Universal Time)

@dsce

star

Thu Feb 15 2024 07:06:23 GMT+0000 (Coordinated Universal Time)

@dsce

star

Thu Feb 15 2024 07:04:40 GMT+0000 (Coordinated Universal Time)

@dsce

star

Thu Feb 15 2024 06:51:32 GMT+0000 (Coordinated Universal Time)

@Almergoco

star

Thu Feb 15 2024 05:37:44 GMT+0000 (Coordinated Universal Time)

@dsce

star

Thu Feb 15 2024 05:21:33 GMT+0000 (Coordinated Universal Time)

@dsce

star

Wed Feb 14 2024 21:41:25 GMT+0000 (Coordinated Universal Time)

@naveedrashid

star

Wed Feb 14 2024 21:40:09 GMT+0000 (Coordinated Universal Time)

@naveedrashid

star

Wed Feb 14 2024 18:36:38 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/python-program-to-read-character-by-character-from-a-file/

@tofufu #python

star

Wed Feb 14 2024 18:35:29 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/4803999/how-to-convert-a-file-into-a-dictionary

@tofufu #python

star

Wed Feb 14 2024 18:18:24 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Wed Feb 14 2024 18:17:11 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Wed Feb 14 2024 15:00:19 GMT+0000 (Coordinated Universal Time)

@KickstartWeb #php

star

Wed Feb 14 2024 14:10:17 GMT+0000 (Coordinated Universal Time)

@Shira

star

Wed Feb 14 2024 09:25:46 GMT+0000 (Coordinated Universal Time)

@kervinandy123 #c

star

Wed Feb 14 2024 08:25:13 GMT+0000 (Coordinated Universal Time)

@Ria

star

Wed Feb 14 2024 06:52:33 GMT+0000 (Coordinated Universal Time)

@chaitra_antapur

star

Tue Feb 13 2024 18:42:13 GMT+0000 (Coordinated Universal Time)

@jrray

star

Tue Feb 13 2024 14:57:06 GMT+0000 (Coordinated Universal Time)

@Shira

star

Tue Feb 13 2024 14:13:19 GMT+0000 (Coordinated Universal Time)

@Shira

star

Tue Feb 13 2024 12:28:21 GMT+0000 (Coordinated Universal Time)

@odesign

star

Tue Feb 13 2024 08:37:19 GMT+0000 (Coordinated Universal Time) https://www.programiz.com/sql/online-compiler/

@jatin #undefined

star

Tue Feb 13 2024 06:15:33 GMT+0000 (Coordinated Universal Time)

@RahmanM

star

Tue Feb 13 2024 05:54:34 GMT+0000 (Coordinated Universal Time)

@ayhamsss

star

Tue Feb 13 2024 05:54:03 GMT+0000 (Coordinated Universal Time)

@ayhamsss

star

Tue Feb 13 2024 03:59:15 GMT+0000 (Coordinated Universal Time)

@2018331055

star

Tue Feb 13 2024 03:58:40 GMT+0000 (Coordinated Universal Time)

@2018331055

star

Tue Feb 13 2024 03:56:35 GMT+0000 (Coordinated Universal Time)

@2018331055

star

Mon Feb 12 2024 19:36:54 GMT+0000 (Coordinated Universal Time) https://forums.raspberrypi.com/viewtopic.php?t

@csmith66

star

Mon Feb 12 2024 19:09:26 GMT+0000 (Coordinated Universal Time)

@Taimoor

star

Mon Feb 12 2024 17:25:03 GMT+0000 (Coordinated Universal Time)

@FOrestNAtion

star

Mon Feb 12 2024 17:24:20 GMT+0000 (Coordinated Universal Time)

@FOrestNAtion

star

Mon Feb 12 2024 16:29:53 GMT+0000 (Coordinated Universal Time)

@taharjt

star

Mon Feb 12 2024 15:39:17 GMT+0000 (Coordinated Universal Time)

@sinasina1368 #c++

star

Mon Feb 12 2024 15:15:56 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/70094461/getting-window-checkout-quotedata-or-store-code-are-undefined-error-when-cart-it

@zaki

star

Mon Feb 12 2024 14:50:46 GMT+0000 (Coordinated Universal Time)

@sinasina1368 #c++

star

Mon Feb 12 2024 14:37:20 GMT+0000 (Coordinated Universal Time)

@sinasina1368 #c++

star

Mon Feb 12 2024 14:33:00 GMT+0000 (Coordinated Universal Time)

@khaleel

star

Mon Feb 12 2024 13:58:13 GMT+0000 (Coordinated Universal Time)

@suira #php #wordpress

star

Mon Feb 12 2024 13:44:52 GMT+0000 (Coordinated Universal Time)

@kobis2003

star

Mon Feb 12 2024 11:21:39 GMT+0000 (Coordinated Universal Time)

@seb_prjcts_be

star

Mon Feb 12 2024 09:21:24 GMT+0000 (Coordinated Universal Time)

@zaki #commandline

star

Mon Feb 12 2024 08:41:40 GMT+0000 (Coordinated Universal Time)

@iliavial #c#

star

Mon Feb 12 2024 08:40:04 GMT+0000 (Coordinated Universal Time)

@iliavial #c#

star

Mon Feb 12 2024 06:31:42 GMT+0000 (Coordinated Universal Time)

@omnixima #css

star

Mon Feb 12 2024 06:17:17 GMT+0000 (Coordinated Universal Time)

@Bugs_Developer #javascript

star

Mon Feb 12 2024 04:50:45 GMT+0000 (Coordinated Universal Time)

@omnixima #css

star

Mon Feb 12 2024 03:39:17 GMT+0000 (Coordinated Universal Time)

@azariel

Save snippets that work with our extensions

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