Snippets Collections
  // Derived state. These are the posts that will actually be displayed
  const searchedPosts = searchQuery.length > 0 ? posts.filter((post) => `${post.title} ${post.body}`.toLowerCase().includes(searchQuery.toLowerCase())) : posts;
The Campus
4 Crinan Street
London, London N1 9XW
United Kingdom
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
import React, { useState } from "react";
import { FaChevronDown, FaChevronRight } from "react-icons/fa";

const TreeNode = ({ node }) => {
  const [isExpanded, setIsExpanded] = useState(false);

  const handleToggle = () => {
    setIsExpanded(!isExpanded);
  };

  return (
    <div className="">
      <div
        onClick={handleToggle}
        className="flex items-center px-4  group rounded-md hover:text-blue-600 hover:bg-blue-200 text-base font-serif">
        {Object.keys(node).length > 1 ? (
          <span className="mr-2 text-xs ">
            {isExpanded ? <FaChevronDown /> : <FaChevronRight />}
          </span>
        ) : (
          <span className="ml-5"></span>
        )}
        {node.name}
      </div>
      {isExpanded && (
        <div className="ml-5 ">
          {Object.keys(node).map((key) => {
            if (Array.isArray(node[key])) {
              return node[key].map((child) => (
                <TreeNode key={child.name} node={child} />
              ));
            }
            return null;
          })}
        </div>
      )}
    </div>
  );
};

// Define the Tree component
const Tree = ({ data }) => {
  return (
    <div className="">
      {data.map((node) => (
        <TreeNode key={node.id} node={node} />
      ))}
    </div>
  );
};

const states = [
  {
    name: "Gujarat",
    districts: [
      {
        name: "Surat",
        cities: [
          {
            name: "varachha",
            area: [
              { name: "yogivhowk" },
              { name: "varachha" },
              { name: "puna" },
            ],
          },
          {
            name: "kamrej",
            area: [{ name: "tapi" }, { name: "choryashi" }],
          },
        ],
      },
      { name: "Rajkot", cities: [{ name: "jetpur" }, { name: "gondal" }] },
    ],
  },
  {
    name: "Rajasthan",
    districts: [
      {
        name: "Surat",
        cities: [
          {
            name: "varachha",
            area: [
              { name: "yogivhowk" },
              { name: "varachha" },
              { name: "puna" },
            ],
          },
          {
            name: "kamrej",
          },
        ],
      },
      { name: "Rajkot", cities: [{ name: "jetpur" }, { name: "gondal" }] },
    ],
  },
  {
    name: "Bihar",
    districts: [
      {
        name: "Surat",
        cities: [
          {
            name: "varachha",
            area: [
              { name: "yogivhowk" },
              { name: "varachha" },
              { name: "puna" },
            ],
          },
          {
            name: "kamrej",
          },
        ],
      },
      { name: "Rajkot", cities: [{ name: "jetpur" }, { name: "gondal" }] },
    ],
  },
  {
    name: "delhi",
    districts: [
      {
        name: "Surat",
        cities: [
          {
            name: "varachha",
            area: [
              { name: "yogivhowk" },
              { name: "varachha" },
              { name: "puna" },
            ],
          },
          {
            name: "kamrej",
          },
        ],
      },
      { name: "Rajkot", cities: [{ name: "jetpur" }, { name: "gondal" }] },
    ],
  },
];

function App() {
  return (
    <div className="flex flex-col w-60 h-96 border border-gray-300 rounded-md p-4 m-auto mt-52 overflow-y-scroll bg-blue-50">
      <Tree data={states} />
    </div>
  );
}

export default App;
<!-- Google tag (gtag.js) -->

<script async src="https://www.googletagmanager.com/gtag/js?id=G-2D1ZCVPF"></script>
3
<script>

  window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

  gtag('js', new Date());
7
​

  gtag('config', 'G-72D1ZCV3PF');

</script>
curl [URL] -d "key1=value1&key2=value2"
curl [URL] -F key1=value1 -F key2=value2 -F key2=@filename
curl [URL] -d "key1=value1&key2=value2"
curl [URL] -F key1=value1 -F key2=value2 -F key2=@filename
curl [URL] -d "key1=value1&key2=value2"
curl [URL] -F key1=value1 -F key2=value2 -F key2=@filename
   var swiper = new Swiper('.js-news-swiper', {
      slidesPerView: 'auto',
      centeredSlides: true,
      spaceBetween: 20,
      speed: 1500,
      pagination: {
        el: '.swiper-pagination',
        clickable: true
      },
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev'
      },
      autoplay: {
        delay: 2000,
        disableOnInteraction: false
      },
      loop: true,
      watchSlidesProgress: true
    });
<div class="p-ticker js-ticker">
    <div class="p-ticker__wrapper swiper-wrapper">
        <div class="p-ticker__item swiper-slide">
            <div class="p-ticker__text">
                text
            </div>
        </div>
        <div class="p-ticker__item swiper-slide">
            <div class="p-ticker__text">
                text
            </div>
        </div>
        <div class="p-ticker__item swiper-slide">
            <div class="p-ticker__text">
                text
            </div>
        </div>
        <div class="p-ticker__item swiper-slide">
            <div class="p-ticker__text">
                text
            </div>
        </div>
        <div class="p-ticker__item swiper-slide">
            <div class="p-ticker__text">
                text
            </div>
        </div>
    </div>
</div>
.p-ticker {
    width: 100%;
    .swiper-slide {
        width: auto;
    }
    &__wrapper {
        transition-timing-function: linear;
    }
    &__text {
        color: #000;
        font-size:  32px;
        font-weight: 900;
    }
}
    var mySwiper = new Swiper(".js-ticker", {	
        infinite: true,
        loop: true,
        slidesPerView: 'auto',
        speed: 8000,
        spaceBetween: 32,
        centeredSlides: true,
        autoplay: {
          delay: 0,
          disableOnInteraction: false,
          reverseDirection: false,
        },
      });

public class Pair<K,V>{
	private K key;
	private V value;
	public Pair(K key,V value){
		this.key=key;
		this.value=value;
	}
	public K getkey(){
		return this.key;
	}
	public V getvalue(){
		return this.value;
	}
	public static void main(String[] args){
		Pair<Integer,String> p1=new Pair<>(123,"qaz");
		System.out.println(p1.getkey()+" "+p1.getvalue());
		
		Pair<String,String> p2=new Pair<>("abc","qaz");
		System.out.println(p2.getkey()+" "+p2.getvalue());
	}
}
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.
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)) 
        
star

Fri Feb 16 2024 02:38:52 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/draggable-javascript-image-gallery-with-gsap--cms-37591t

@homunculus

star

Fri Feb 16 2024 02:37:11 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/javascript-based-animations-using-animejs-parameters--cms-28914t

@homunculus

star

Fri Feb 16 2024 02:35:17 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/how-to-build-a-css-loading-animation-with-keyframes--cms-93572t

@homunculus

star

Fri Feb 16 2024 02:33:01 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/how-to-create-animated-snow-on-a-website-with-css-and-javascript--cms-93562t

@homunculus

star

Fri Feb 16 2024 02:29:24 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/build-an-infinite-blinking-text-animation-with-css-and-a-touch-of-javascript--cms-93490t

@homunculus #css #javascript

star

Thu Feb 15 2024 23:49:23 GMT+0000 (Coordinated Universal Time) https://vitejs.dev/guide/

@winifredogbeiwi #react.js

star

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

@davidmchale #react #filter #query

star

Thu Feb 15 2024 21:40:26 GMT+0000 (Coordinated Universal Time) https://sharelatex.recurly.com/account/invoices/2505121

@jkirangw

star

Thu Feb 15 2024 15:12:42 GMT+0000 (Coordinated Universal Time) undefined

@rishim

star

Thu Feb 15 2024 14:10:14 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Thu Feb 15 2024 13:22:13 GMT+0000 (Coordinated Universal Time)

@Ajay1212

star

Thu Feb 15 2024 12:05:21 GMT+0000 (Coordinated Universal Time) https://chen-studio.co.il/wp-admin/admin.php?page

@chen #undefined

star

Thu Feb 15 2024 11:55:22 GMT+0000 (Coordinated Universal Time)

@katalinilles

star

Thu Feb 15 2024 10:45:04 GMT+0000 (Coordinated Universal Time) https://www.will-myers.com/articles/perfect-anchor-links-in-squarespace

@rosieames #html

star

Thu Feb 15 2024 10:02:44 GMT+0000 (Coordinated Universal Time)

@homunculus #javascript

star

Thu Feb 15 2024 09:57:09 GMT+0000 (Coordinated Universal Time)

@homunculus #html

star

Thu Feb 15 2024 09:54:58 GMT+0000 (Coordinated Universal Time)

@homunculus #scss

star

Thu Feb 15 2024 09:52:47 GMT+0000 (Coordinated Universal Time)

@homunculus #javascript #swiper

star

Thu Feb 15 2024 08:24:36 GMT+0000 (Coordinated Universal Time) https://lk.ko-rista.ru/

@Asjnsvaah

star

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

@dsce

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 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

Save snippets that work with our extensions

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