Snippets Collections
<div class="images xs-gutter">
    <img class="img-md sm-brr" src="https://picsum.photos/200" alt="" />
</div>

<div class="images">
    <img class="img-lg sm-brr" src="https://picsum.photos/200" alt="" />
</div>

<div class="images">
    <img class="img-xl sm-brr" src="https://picsum.photos/200" alt="" />
</div>

<div class="images">
    <img class="img-xxxl sm-brr" src="https://picsum.photos/200" alt="" />
</div>

<div class="images">
    <img class="img-full sm-brr" src="https://picsum.photos/200" alt="" />
</div>
<button type="button" class="btn btn_primary btn_floating">Button</button>
<button type="button" class="btn btn_primary"><i class="header_icon link fa fa-github fa-lg"></i> Primary
</button>
<button type="button" class="btn btn_primary_outline"><i class="header_icon link fa fa-github fa-lg"></i> Primary
</button>
<button type="button" class="btn btn_primary" disabled>Button</button>
<button type="button" class="btn btn_primary_outline" disabled>Button</button>
<button type="button" class="btn btn_primary_outline">Button</button>
<input type="button" class="btn btn_secondary_outline" value="Input">
<span type="button" class="btn btn_success_outline">Span</span>
<a href="#" type="button" class="btn btn_danger_outline">Anchor</a>
<label type="button" class="btn btn_warning_outline">Label</label>
<button type="button" class="btn btn_info_outline">Button</button>
<input type="button" class="btn btn_light_outline" type="button" value="Input">
<span type="button" class="btn btn_dark_outline">Span</span>
<button type="button" class="btn btn_primary">Button</button>
<input type="button" class="btn btn_secondary" value="Input">
<span type="button" class="btn btn_success">Span</span>
<a href="#" type="button" class="btn btn_danger">Anchor</a>
<label type="button" class="btn btn_warning">Label</label>
<button type="button" class="btn btn_info">Button</button>
<input type="button" class="btn btn_light" type="button" value="Input">
<span type="button" class="btn btn_dark">Span</span>
<a href="#" type="button" class="btn btn_link">Anchor</a>
private void longPressWithDelay(By elementId, int delay) {
    TouchAction action = new TouchAction((PerformsTouchActions) driver.getInnerDriver());
    MobileElement elementToBeLongTapped = (MobileElement) new WebDriverWait(driver.getInnerDriver(), 10)
            .until(ExpectedConditions.elementToBeClickable(elementId));
    action.longPress(LongPressOptions.longPressOptions().withDuration(Duration.ofSeconds(delay))
                    .withElement(ElementOption.element(elementToBeLongTapped)))
            .release()
            .perform();
}
private void toggleMobilabDeviceWiFiToOn() {
    Set<String> availablePersonas = (Set<String>) context.getTestState(TEST_CONTEXT.AVAILABLE_PERSONAS);
    LOGGER.info("availablePersonas injioCukes=  " + availablePersonas);
    for (String persona : availablePersonas) {
        if ((allDrivers.getPlatformForUser(persona).equals(Platform.android)) && Runner.isRunningInCI()) {
            ToggleWIFI toggleWIFI = new ToggleWIFI(allDrivers.getDriverForUser(persona));
            toggleWIFI.userTogglesWifi("enable");
            Wait.waitFor(20);
        }
    }
}
<div class="alert alert_primary">
    A simple primary alert—check it out!
</div>
<div class="alert alert_secondary">
    A simple secondary alert—check it out!
</div>
<div class="alert alert_success">
    A simple success alert—check it out!
</div>
<div class="alert alert_danger">
    A simple danger alert—check it out!
</div>
<div class="alert alert_warning">
    A simple warning alert—check it out!
</div>
<div class="alert alert_info">
    A simple info alert—check it out!
</div>
<div class="alert alert_light">
    A simple light alert—check it out!
</div>
<div class="alert alert_dark">
    A simple dark alert—check it out!
</div>
<div class="alert alert_primary">
    A simple primary alert with <a href="#" class="alert_link">an example link</a>. Give it a click
    if you like.
</div>
<div class="alert alert_secondary">
    A simple secondary alert with <a href="#" class="alert_link">an example link</a>. Give it a click 
    if you like.
</div>
<div class="alert alert_success">
    A simple success alert with <a href="#" class="alert_link">an example link</a>. Give it a click
    if you like.
</div>
<div class="alert alert_danger">
    A simple danger alert with <a href="#" class="alert_link">an example link</a>. Give it a click
    if you like.
</div>
<div class="alert alert_warning">
    A simple warning alert with <a href="#" class="alert_link">an example link</a>. Give it a click
    if you like.
</div>
<div class="alert alert_info">
    A simple info alert with <a href="#" class="alert_link">an example link</a>. Give it a click if
    you like.
</div>
<div class="alert alert_light">
    A simple light alert with <a href="#" class="alert_link">an example link</a>. Give it a click if
    you like.
</div>
<div class="alert alert_dark">
    A simple dark alert with <a href="#" class="alert_link">an example link</a>. Give it a click if
    you like.
</div>
<div class="alert alert_success">
  <h4 class="alert_heading">Well done!</h4>
  <p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.	   </p>
  <hr>
  <p>Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>
</div>
<div class="alert alert_primary"><i class="header_icon link fa fa-github fa-lg"></i>
      A simple primary alert—check it out!
</div>
<div class="alert alert_secondary"><i class="header_icon link fa fa-github fa-lg"></i>
      A simple secondary alert—check it out!
</div>
<div class="alert alert_success"><i class="header_icon link fa fa-github fa-lg"></i>
      A simple success alert—check it out!
</div>
<div class="alert alert_danger"><i class="header_icon link fa fa-github fa-lg"></i>
      A simple danger alert—check it out!
</div>
<div class="alert alert_warning"><i class="header_icon link fa fa-github fa-lg"></i>
      A simple warning alert—check it out!
</div>
<div class="alert alert_info"><i class="header_icon link fa fa-github fa-lg"></i>
      A simple info alert—check it out!
</div>
<div class="alert alert_light"><i class="header_icon link fa fa-github fa-lg"></i>
      A simple light alert—check it out!
</div>
<div class="alert alert_dark"><i class="header_icon link fa fa-github fa-lg"></i>
      A simple dark alert—check it out!
 </div>
<img class="avatar avatar_normal" src="http://placehold.it/100x100" alt="">
<img class="avatar avatar_small" src="http://placehold.it/100x100" alt="">
<img class="avatar avatar-1" src="http://placehold.it/100x100" alt="">
<img class="avatar avatar-2" src="http://placehold.it/100x100" alt="">
<img class="avatar avatar-3" src="http://placehold.it/100x100" alt="">
<img class="avatar avatar-4" src="http://placehold.it/100x100" alt="">
<img class="avatar avatar-5" src="http://placehold.it/100x100" alt="">
<img class="avatar avatar-6" src="http://placehold.it/100x100" alt="">
<div class="input-container standard success">
    <input type="text" />
    <label>Standard Input</label>
    <small>This is success message.</small>
</div>

<div class="input-container standard error">
    <input type="text" />
    <label>Standard Input</label>
    <small>This is error message.</small>
</div>
/*Vertical Card*/
<div class="card card-vertical">
    <div class="card-media">
        <img src="https://picsum.photos/seed/picsum/200/300.jpg" alt="" class="responsive-img" />
    </div>
    <div class="card-description-wrapper">
        <div class="card-primary">
            <h3>Title</h3>
            <p class="card-primary-subtitle">Subtitle</p>
        </div>
        <div class="card-secondary">
            <p class="card-secondary-description">
                Lorem Ipsum is simply dummy text of the printing and
                typesetting industry.
            </p>
        </div>
        <div class="card-actions">
            <a><i class="fa fa-heart-o" aria-hidden="true"></i> </a>
            <a><i class="fa fa-share-alt" aria-hidden="true"></i> </a>
            <a><i class="fa fa-ellipsis-v" aria-hidden="true"></i> </a>
        </div>
    </div>
</div>

/*Card with overlay*/
<div class="card card-vertical relative">
    <div class="card-media">
        <img src="https://picsum.photos/seed/picsum/200/300.jpg" alt="" class="responsive-img" />
    </div>
    <div class="card-description-wrapper">
        <div class="card-primary">
            <h3>Title</h3>
            <p class="card-primary-subtitle">Subtitle</p>
        </div>
        <div class="card-secondary">
            <p class="card-secondary-description">
                Lorem Ipsum is simply dummy text of the printing and
                typesetting industry.
            </p>
        </div>
        <div class="card-actions">
            <a><i class="fa fa-heart-o" aria-hidden="true"></i> </a>
            <a><i class="fa fa-share-alt" aria-hidden="true"></i> </a>
            <a><i class="fa fa-ellipsis-v" aria-hidden="true"></i> </a>
        </div>
    </div>
    <div class="card-overlay">
        <a href=""><span>Text Overlay</span> </a>
    </div>
</div>

/* Card with badge*/
<div class="card card-vertical relative">
    <div class="card-media">
        <img src="https://picsum.photos/seed/picsum/200/300.jpg" class="responsive-img" />
    </div>
    <div class="card-description-wrapper">
        <div class="card-primary">
            <h3>Title</h3>
            <p class="card-primary-subtitle">Subtitle</p>
        </div>
        <div class="card-secondary">
            <p class="card-secondary-description">
                Lorem Ipsum is simply dummy text of the printing and
                typesetting industry.
            </p>
        </div>
        <div class="card-actions">
            <a><i class="fa fa-heart-o" aria-hidden="true"></i> </a>
            <a><i class="fa fa-share-alt" aria-hidden="true"></i> </a>
            <a><i class="fa fa-ellipsis-v" aria-hidden="true"></i> </a>
        </div>
    </div>
    <span class="status-badge status-busy round-badge card-badge"></span>
</div>

/*Card with dismiss*/
<div class="card card-vertical relative card-wth-dismiss">
    <div class="card-primary px-16">
        <h3>Title</h3>
        <p class="card-primary-subtitle">Subtitle</p>
    </div>
    <div class="card-media mt-16">
        <img src="https://picsum.photos/seed/picsum/200/300.jpg" alt="" class="responsive-img" />
    </div>
    <div class="card-description-wrapper">
        <div class="card-secondary">
            <p class="card-secondary-description">
                Lorem Ipsum is simply dummy text of the printing and
                typesetting industry
            </p>
        </div>
        <div class="card-actions">
            <a><i class="fa fa-heart-o" aria-hidden="true"></i> </a>
            <a><i class="fa fa-share-alt" aria-hidden="true"></i> </a>
            <a><i class="fa fa-ellipsis-v" aria-hidden="true"></i> </a>
        </div>
    </div>
    <span class="card-dismiss-icon" id="dismiss"><i class="fa fa-times" aria-hidden="true"></i>
    </span>
</div>
   <div class="alert alert--primary">The simple primary alert - Check it out  </div>

   <div class="alert alert--secondary">The simple secondary alert - Check it out </div>

   <div class="alert alert--success">The simple success alert - Check it out </div>

   <div class="alert alert--danger">The simple success alert - Check it out </div>

   <div class="alert alert--warning">The simple success alert - Check it out </div>

   <div class="alert alert--info">The simple success alert - Check it out </div>

   <div class="alert alert--light">The simple success alert - Check it out </div>

   <div class="alert alert--dark">The simple success alert - Check it out </div>

<div class="avatar avatar-xsm">
     <img class="img-round" src="../image/img_avatar.png" alt="Sarthi-avatar-image"/>
</div>
<div class="avatar avatar-sm">
     <img class="img-round" src="../image/img_avatar.png" alt="Sarthi-avatar-image"/>
</div>
<div class="avatar avatar-md">
     <img class="img-round" src="../image/img_avatar.png" alt="Sarthi-avatar-image"/>
</div>
<div class="avatar avatar-lg">
     <img class="img-round" src="../image/img_avatar.png" alt="Sarthi-avatar-image" />
</div>
<Accordion allowZeroExpanded>
    {items.map((item) => (
        <AccordionItem key={item.uuid}>
            <AccordionItemHeading>
                <AccordionItemButton>
                    {item.heading}
                </AccordionItemButton>
            </AccordionItemHeading>
            <AccordionItemPanel>
              {item.content}
            </AccordionItemPanel>
        </AccordionItem>
    ))}
</Accordion>
/*
->to find the MST using Prim's algorithm
Steps:-
	1)define the priority queue(pq) and push any arbitrary pair in it with {0,node}
	2)now ,run a loop till size of priority queue > 0
			->get the curr as from pq's top and also currweight from pq's top
			->now,if visi[pq] is true continue
			->else
				->mark curr as visited
				->add currweight to ans,here ans is the cost of MST
				->traverse,the adjacenecy list of curr
					->if child is not visited
						->push the pair of {childWeight,child} into the priority queue

	3)at last the MST will be printed,but while printing keep in mind that we start printing after the processing of first node has been completed for that we keep a is_first varible and make it false after the first node's processing completes.

	4)also,ans contains the total weight of the MST,we can return that if in question it is just asked to give the weight of MST


	Note:- Prim's algo is very much similar to dijkstra just the difference is that in dijkstra we push the sum of currDist and childWeight in priority queue while in Prim's we to not do any of the addition stuff here we just push the weigth of child.


Time Complexity :- O(E log V)
*/
vector<pair<ll, ll>> g[100001];
vector<ll> visi(100001, false);

void Prims(ll n) {

	priority_queue <
	pair<ll, pair<ll, ll>>,
	     vector <pair<ll, pair<ll, ll>>>,
	     greater <pair<ll, pair<ll, ll>> >> pq; //here,we are taking pair<int,Pait<int,int>> because we want to print the MST if in question just weight is asked use a queue with just the pair.

	bool first = true;
	vector<bool> visi(n, false);
	pq.push({0, { -1, 0}});//pushing the random vertex into the queue.
	ll ans = 0;


	while (pq.size() > 0) {
		int curr = pq.top().second.second;
		int par = pq.top().second.first;
		int w = pq.top().first;
		pq.pop();
		if (visi[curr])
			continue;
		visi[curr] = true;

		if (!first) {
			cout << "[" << curr << "-" << par << "@" << w << "]" << endl;
			ans += w;
		}
		first = false;
		for (auto itr : g[curr]) {
			if (visi[itr.first] == false)
				pq.push({itr.second, {curr, itr.first}});
		}
	}


	cout << "The weight of MST is :- " << ans << endl;

}
type Keys = "option1" | "option2";
type Flags = { [K in Keys]: boolean };
<!-- Solid buttons -->
<button class="btn primary-button btn-solid">Primary</button>
<button class="btn secondary-button btn-solid">Hover</button>
<button class="btn primary-button-br btn-solid">Active</button>
<button class="btn secondary-button-br btn-solid">Disabled</button>

<!-- Link with outline buttons -->
<button class="btn primary-link-button btn-outline"><a href="">Click Here!</a></button>
<button class="btn secondary-link-button btn-outline"><a href="">Download</a></button>

<!-- Button with icons -->
<button class="btn primary-button-with-icon">
    <i class="fas fa-shopping-cart"></i>
    Add to cart
</button>

<button class="btn secondary-button-with-icon">
    <i class="far fa-thumbs-up"></i> Like
</button>

<!-- Float Buttons -->
<button class="float-btn add-button"> + </button>
<button class="float-btn go-up-button"> ^ </button>
<button class="float-btn remove-button"> x </button>
<button class="float-btn envelope-button"><i class="fas fa-envelope"></i></button>
<link rel="stylesheet" href="https://harshita-crypto-ui.netlify.app/style.css">
  <div class="alert-box alert-success">
      <span><i class="fa fa-check-circle"></i> Success! Indicates positive action to the user.</span>
  </div>
  <div class="alert-box alert-danger">
      <span><i class="fa fa-exclamation-triangle"></i> Danger! Indicates danger negative action to the
          user.</span>
  </div>
  <div class="alert-box alert-warning">
      <span> <i class="fa fa-exclamation-triangle"></i> Warning Alert. Indicates warning to the user.
      </span>
  </div>
  <div class="alert-box alert-primary">
      Primary Alert. Indicates any regular or normal information to the
      user.
  </div>
  <div class="alert-box alert-secondary">
      Secondary Alert. Indicates any secondary information to the user.
  </div>
 <div class="alert-box alert-success">
     <span><i class="fa fa-check-circle"></i> Success! Indicates positive action to the user.</span>
     <i class="fa fa-times close-alert"></i>
 </div>
 <div class="alert-box alert-danger">
     <span><i class="fa fa-exclamation-triangle"></i> Danger! Indicates danger or negative action to
         the
         user.</span>
     <i class="fa fa-times close-alert"></i>
 </div>
 <div class="alert-box alert-warning">
     <span> <i class="fa fa-exclamation-triangle"></i> Warning Alert. Indicates warning to the user.
     </span>
     <i class="fa fa-times close-alert"></i>
 </div>
 <div class="alert-box alert-primary">
     Primary Alert. Indicates any regular or normal information to the
     user.
     <i class="fa fa-times close-alert"></i>
 </div>
 <div class="alert-box alert-secondary">
     Secondary Alert. Indicates any secondary information to the user.
     <i class="fa fa-times close-alert"></i>
 </div>
 <div class="alert-box alert-success">
     <span><i class="fa fa-check-circle"></i> Success! Indicates positive action to the user.</span>
     <i class="fa fa-times close-alert"></i>
 </div>
 <div class="alert-box alert-danger">
     <span><i class="fa fa-exclamation-triangle"></i> Danger! Indicates danger or negative action to
         the
         user.</span>
     <i class="fa fa-times close-alert"></i>
 </div>
 <div class="alert-box alert-warning">
     <span> <i class="fa fa-exclamation-triangle"></i> Warning Alert. Indicates warning to the user.
     </span>
     <i class="fa fa-times close-alert"></i>
 </div>
 <div class="alert-box alert-primary">
     Primary Alert. Indicates any regular or normal information to the
     user.
     <i class="fa fa-times close-alert"></i>
 </div>
 <div class="alert-box alert-secondary">
     Secondary Alert. Indicates any secondary information to the user.
     <i class="fa fa-times close-alert"></i>
 </div>
<h1>Example heading <span class="badge bg-secondary">New</span></h1>
<h2>Example heading <span class="badge bg-secondary">New</span></h2>
<h3>Example heading <span class="badge bg-secondary">New</span></h3>
<h4>Example heading <span class="badge bg-secondary">New</span></h4>
<h5>Example heading <span class="badge bg-secondary">New</span></h5>
<h6>Example heading <span class="badge bg-secondary">New</span></h6>
 <h1>Heading one <span class="badge bg-secondary">New</span></h1>
 <h2>Heading two <span class="badge bg-secondary">New</span></h2>
 <h3>Heading three <span class="badge bg-secondary">New</span></h3>
 <h4>Heading four <span class="badge bg-secondary">New</span></h4>
 <h5>Heading five <span class="badge bg-secondary">New</span></h5>
 <h6>Heading six <span class="badge bg-secondary">New</span></h6>
<h1>Heading demo <span class="badge bg-secondary">New</span></h1>
<h2>Heading demo <span class="badge bg-secondary">New</span></h2>
<h3>Heading demo <span class="badge bg-secondary">New</span></h3>
<h4>Heading demo <span class="badge bg-secondary">New</span></h4>
<h5>Heading demo <span class="badge bg-secondary">New</span></h5>
<h6>Heading demo <span class="badge bg-secondary">New</span></h6>
/*This is the program to  ilustrate the Disjoint set union(DSU) concept 
	Applications:-
    	1)cycle detection in graph
        2)no of connected components with their size
        3)MST->kruskal's Algorithm
        4)to find which element belongs to which set
*/

//globel declearation of parent and size array
int size[100001];
int parent[100001];

//this function is call at the very beginning in the main funciton
void assignParents()
{
    for (int i = 0; i <= 100001; i++)
    {
        parent[i] = i;
        size[i] = 1;
    }
}

//--->Function to find super parent of a node<---

/*
 -->without any optimization<--

// int find_super_parent(int a)
// {
//     if (parent[a] == a)
//     {
//         return a;
//     }
//     else
//     {
//         return find_super_parent(parent[a]);
//     }
// }
*/

//-->with path optimization<--
int find_super_parent(int a)
{
    if (parent[a] == a)
    {
        return a;
    }
    else
    {
        int super_parent = find_super_parent(parent[a]);
        parent[a] = super_parent;

        return super_parent;
    }
}
/*
ll super_parent(ll n)
{
    if (parent[n] == n)
        return n;
    else
        return super_parent(parent[n]);
}

void make_union(ll a, ll b)
{

    ll p_a = super_parent(a);
    ll p_b = super_parent(b);

    if (p_a == p_b)
        cout << a << " and " << b << " already belongs to same set.\n";
    else
    {
        if (size[p_a] < size[p_b])
        {
            parent[p_a] = p_b;
            size[p_b] += size[p_a];
        }
        else
        {
            parent[p_b] = p_a;
            size[p_a] += size[p_b];
        }
    }
*/


/*---------------------------------------------------------------------------*/

//--->Function to make union of two elements/sets<---
//-->without any optimization
// void make_union(int a, int b)
// {
//     int pa = find_super_parent(a);
//     int pb = find_super_parent(b);

//     if (pa != pb)
//     {
//         cout << a << " " << b << endl;
//         parent[pa] = pb;
//         cout << "The set consisting entered elements has been merged" << endl;
//     }
//     else
//     {
//         cout << "Entered elements already belongs to same set" << endl;
//     }
// }

//-->with size optimization
void make_union(int a, int b)
{
    int pa = find_super_parent(a);
    int pb = find_super_parent(b);

    if (pa == pb)
    {
        cout << "Entered elements already belongs to same set" << endl;
    }

    else
    {
        if (size[pa] < size[pb])
        {
            parent[pa] = pb;
            size[pb] += size[pa];
        }
        else
        {
            parent[pb] = pa;
            size[pa] += size[pb];
        }
    }
}
/*
->to find the MST using kruskal's algorithm
Steps:-
	1)sort the edges in acending order based on edge weight
	2)traverse on each edge
			->check if adding the current edge will make cycle or not(using the disjoint set union)
			->if yes ---> continue;
			->else
				->add that weight into the MST
			->break if the no of edges in MST in equal to n-1 (n == no of vertices)
            
 Time Complexity: O(ElogE) or O(ElogV). Sorting of edges takes O(ELogE) time. After sorting, we iterate through all edges and apply the find-union algorithm. The find and union operations can take at most O(LogV) time. So overall complexity is O(ELogE + ELogV) time. The value of E can be at most O(V2), so O(LogV) is O(LogE) the same. Therefore, the overall time complexity is O(ElogE) or O(ElogV)

*/


//this is Disjoint union stuff(respective functions are defined after the kruskal's function)
vector<ll> parent(100001), size(100001);
ll getSuperParent(ll v);
void makeUnion(ll a, ll b);


ll kruskal() {

	//taking the no of vertices and edges as input
	ll n, m;
	cin >> n >> m;

	//making the parent of all vertices as their own parent and size = 1(Disjoint Union stuff for cycle detection)
	for (int i = 0; i < n; i++) {
		parent[i] = i;
		size[i] = 1;
	}

	//storing the edges -> note that we are storing the edge weight first inorder to sort them later
	vector<pair<int, pair<int, int>>> e;

	//inputing the graph
	while (m--) {
		ll s, d, w;
		cin >> s >> d >> w;
		e.push_back({w, {s, d}});//pushing the edges into edges vector their weight first
	}

	sort(e.begin(), e.end());//sorting the vector of edges

	ll count = 0;//to count the edges in the MST
	ll ans = 0;// to store the weight of MST


	for (ll i = 0; i < e.size(); i++) {
		if (count == n - 1)//if no of edges is equal to no of vertices - 1 break(because MST contains only n-1 edges)
			break;
		ll src = e[i].second.first, dest = e[i].second.second, w = e[i].first;

		//checking if including the current edge will form a cycle or not if it does not then proceed futher
		if (getSuperParent(src) != getSuperParent(dest))
		{
			makeUnion(src, dest);
			cout << "[" << src << "-" << dest << "@" << w << "]" << endl;//printing the MST
			ans += w;//adding the weight of current edge into the ans
			count++;//increasing the no of edges into the MST
		}

	}

	cout << "Weight of MST is " << ans << endl;

	return ans;
}


//-----------------------------------------------------------------------------------
ll getSuperParent(ll v) {
	if (parent[v] == v)
		return v;
	return getSuperParent(parent[v]);
}

void makeUnion(ll a, ll b) {
	ll p_a = getSuperParent(a);
	ll p_b = getSuperParent(b);

	if (p_a == p_b)
		return;

	if (size[p_a] >= size[p_b]) {
		parent[p_b] = p_a;
		size[p_a] += size[p_b];
	} else {
		parent[p_a] = p_b;
		size[p_b] += size[p_a];
	}
}
   <h1>Example heading<span class="badge badge-primary">New</span></h1>
   <h2>Example heading<span class="badge badge-primary">New</span></h2>
   <h3>Example heading<span class="badge badge-secondary">New</span></h3>
   <h4>Example heading<span class="badge badge-secondary">New</span></h4>
   <h5>Example heading<span class="badge badge-round-pill">New</span></h5>
   <h1>Example heading<span class="badge badge-primary">New</span></h1>
   <h2>Example heading<span class="badge badge-primary">New</span></h2>
   <h3>Example heading<span class="badge badge-secondary">New</span></h3>
   <h4>Example heading<span class="badge badge-secondary">New</span></h4>
   <h5>Example heading<span class="badge badge-round-pill">New</span></h5>
 <h1>Heading with badge <span class="badge bg-secondary">New</span></h1>
 <h2>Heading with badge <span class="badge bg-secondary">New</span></h2>
 <h3>Heading with badge <span class="badge bg-primary">New</span></h3>
 <h4>Heading with badge <span class="badge bg-success">New</span></h4>
 <h5>Heading with badge <span class="badge bg-danger rounded-pill">New</span></h5>
 <h6>Heading with badge <span class="badge bg-secondary rounded-pill">New</span></h6>
 <figure class="status-badge-wrapper">
     <img src="images/avatar-image.jpg" alt="status-badge" class="image-large" />
     <span class="status bottom-right-badge-lg online"></span>
 </figure>
 <figure class="status-badge-wrapper">
     <img src="images/avatar-image.jpg" alt="status-badge" class="image-small" />
     <span class="status bottom-right-badge-sm online"></span>
 </figure>
 <figure class="status-badge-wrapper">
     <img src="images/avatar-image.jpg" alt="status-badge" class="image-large" />
     <span class="status bottom-right-badge-lg offline"></span>
 </figure>
 <figure class="status-badge-wrapper">
     <img src="images/avatar-image.jpg" alt="status-badge" class="image-small" />
     <span class="status bottom-right-badge-sm offline"></span>
 </figure>
   <i class="fa fa-shopping-cart"><span class="badge-w-icon">1</span></i>
   <i class="fa fa-heart"><span class="badge-w-icon">10</span></i>
<span class="badge_wrapper">Text With a badge
<span class="badge badge_primary badge_small position_absolute right-0 top-0">4</span>
</span>
<span class="badge_wrapper">Text With a badge
<span class="badge badge_primary badge_small position_absolute left-0 top-0">4</span>
</span>
<span class="badge_wrapper">Text With a badge
<span class="badge badge_primary position_absolute right-0 top-0">4</span>
</span>
<span class="badge_wrapper">Text With a badge
<span class="badge badge_primary position_absolute left-0 top-0">4</span>
</span>
<span class="badge_wrapper">Text With a badge
<span class="badge badge_primary badge_large position_absolute right-0 top-0">4</span>
</span>
<span class="badge_wrapper">Text With a badge
<span class="badge badge_primary badge_large position_absolute left-0 top-0">4</span>
</span>
  <button class="btn primary">Primary</button>
  <button class="btn secondary">Secondary</button>
<span class="badge_wrapper">
    <button class="btn btn_primary">Button With a badge</button>
    <span class="badge badge_circle badge_secondary position_absolute right-0">4</span>
</span>
<span class="badge_wrapper">
    <button class="btn btn_primary">Button With a badge</button>
    <span class="badge badge_pill badge_secondary position_absolute left-0">44+</span>
</span>
<span class="badge_wrapper">
    <button class="btn btn_primary">Button With a badge</button>
    <span class="badge badge_secondary position_absolute right-0 badge_large">4</span>
</span>
<span class="badge_wrapper">
    <button class="btn btn_primary">Button With a badge</button>
    <span class="badge badge_secondary position_absolute left-0 badge_large">4</span>
</span>
<span class="badge_wrapper">
    <button class="btn btn_primary badge_button_toggle">Toggle</button>
    <span class="badge badge_secondary position_absolute right-0 badge_toggle">4</span>
</span>
<span class="badge_wrapper">
    <i class="header_icon link fa fa-github fa-4x"></i>
    <span class="badge badge_circle badge_primary position_absolute right-0">4</span>
</span>
<span class="badge_wrapper">
    <i class="header_icon link fa fa-github fa-4x"></i>
    <span class="badge badge_pill badge_primary position_absolute left-0 badge_small">4</span>
</span>
<span class="badge_wrapper">
    <i class="header_icon link fa fa-github fa-4x"></i>
    <span class="badge badge_pill badge_primary position_absolute left-0">4</span>
</span>
<span class="badge_wrapper">
    <i class="header_icon link fa fa-github fa-4x"></i>
    <span class="badge badge_circle badge_primary position_absolute right-0">4</span>
</span>
<div class="badge_wrapper">
  <img class="avatar avatar_large" src="../../../resources/avatar.jpg" alt="logo">
    <span class="badge badge_circle badge_primary position_absolute right-0 top-0 translate-m-lx-ry">4</span>
</div>
<div class="badge_wrapper">
  <img class="avatar avatar_large" src="../../../resources/avatar.jpg" alt="logo">
    <span class="badge badge_circle badge_primary position_absolute right-0 bottom-0 translate-m-lx-ly">4</span>
</div>
<div class="badge_wrapper">
  <img class="avatar avatar_normal" src="../../../resources/avatar.jpg" alt="">
    <span class="badge badge_circle badge_primary position_absolute right-0">4</span>
</div>
<div class="badge_wrapper">
  <img class="avatar avatar_small" src="../../../resources/avatar.jpg" alt="">
    <span class="badge badge_primary badge_small position_absolute right-0">4</span>
</div>    
</div>
#include <bits/stdc++.h>
using namespace std;
#define M 8
#define N 6
// void merge(int*, int , int, int);
// void mergesort(int arr[], int low, int high){
//     if(low>=high)
//     return;
//     int mid = (low+high)/2;
//     mergesort(arr, low, mid);
//     mergesort(arr, mid+1, high);
//     merge(arr, low, mid, high);
// }

// void merge(int arr[], int low, int mid, int high){
//     int n1 = mid-low+1, n2 = high-mid;
//     int left[n1], right[n2];
//     for(int i = 0; i<n1; i++)
//     left[i] = arr[low+i];
//     for(int j = 0; j<n2; j++)
//     right[j] = arr[mid+1+j];
//     int i = 0, j = 0, k = low;
//     while(i<n1 && j<n2){
//         if(left[i] > right[j]){
//             arr[k++] = right[j++];
//         }
//         else
//         arr[k++] = left[i++];
//     }
//     while(i < n1)
//     arr[k++] = left[i++];
//     while(j<n2)
//     arr[k++] = right[j++];
// }
// void intersection(int a[], int b[]){
//     int j=0, i=0;
//     vector<int> v;
//     while(i<M && j<N){
//         if(a[i]==a[i-1] && i!=0){
//             i++;
//             continue;
//         }
        
//         if(a[i]<b[j]){
//             i++;continue;
//         }
//         if(a[i]>b[j]){j++;
//             continue;
//         }
        
//         if(a[i]==b[j]){
//             v.push_back(a[i]);
//             i++;j++;
//         }
//     }
//     for(auto x: v)
//     cout<<x<<" ";
// }
// void unions(int a[], int b[]){
//     int i= 0, j = 0;
//     vector<int> v;
//     while(i<M && j<N){
//         if(i!=0 && a[i]==a[i-1]){
//             i++;continue;
//         }
//         if(b[j]==b[j-1] && j!=0){
//             j++;continue;
//         }
//         if(a[i]<b[j]){
//             v.push_back(a[i]);
//             i++;
//         }
//         else if(a[i]>b[j]){
//             v.push_back(b[i]);
//             j++;
//         }
//         else{
//             v.push_back(a[i]);
//             i++; j++;
//         }
//     }
//     while(i<M){
//         v.push_back(a[i]);
//         i++;
//     }
//      while(j<N){
//         v.push_back(b[j]);
//         j++;
//     }
//     for(auto x: v)
//     cout<<x<<" ";
// }
void print(int arr[]){
    for(int i = 0; i< M; i++)
    cout<<arr[i]<<" ";
}
void swap(int *a, int *b){
    int temp = *a;
    *a = *b;
    *b = temp;
}
int hoarspartition(int arr[],int l, int h){
    // swap(&arr[index], &arr[0]);
    int pivot = arr[l];
    int i=l-1, j=h+1;
    while(true){
        do{
            i++;
        }while(arr[i]<pivot);
        do{
            j--;
        }while(arr[j]>pivot);
        if(i>=j)
        return j;
        swap(&arr[i], &arr[j]);
    }
}
void quicksort(int arr[], int l, int h){
    if(l<h){
        int p = hoarspartition(arr, l, h);
        quicksort(arr, l, p);
        quicksort(arr, p+1, h);
    }
}
// void lumotopartion(int arr[], int index){
//     swap(&arr[index], &arr[M-1]);
//     int pivot = arr[M-1];
//     int i = -1;
//     for(int j= 0; j<M; j++){
//         if(arr[j]<pivot){
//             i++;
//             swap(&arr[i], &arr[j]);
//         }
//     }
//     swap(&arr[i+1], &arr[M-1]);
// }
int main(){
    int arr[M];
    for(int i = 0; i< M; i++){
        cin>>arr[i];
    }
  //  int index;
    //cin>>index;
  //  lumotopartion(arr, index);
  //  hoarspartition(arr, index)<<endl;
  //  mergesort(arr, 0, N-1);
  quicksort(arr, 0, M-1);
     print(arr);
   // unions(arr, b);
}
<span class="badge badge_pill badge_primary">Primary</span>
<span class="badge badge_pill badge_secondary">Secondary</span>
<span class="badge badge_pill badge_danger">Danger</span>
<span class="badge badge_pill badge_success">Success</span>
<span class="badge badge_pill badge_info">Info</span>
<span class="badge badge_pill badge_warning">Warning</span>
<span class="badge badge_pill badge_dark">Dark</span>
<span class="badge badge_pill badge_light">Light</span>
<span class="badge badge_primary">Primary</span>
<span class="badge badge_secondary">Secondary</span>
<span class="badge badge_danger">Danger</span>
<span class="badge badge_success">Success</span>
<span class="badge badge_info">Info</span>
<span class="badge badge_warning">Warning</span>
<span class="badge badge_dark">Dark</span>
<span class="badge badge_light">Light</span>
<h1>Example heading <span class="badge badge_pill badge_primary">New</span></h1>
 <button type="button" class="btn btn_secondary">Button 
   <span class="badge badge_primary">New</span>
</button>
                           <div class="avatar avatar-text avatar-xsm">KD</div>
                           <div class="avatar avatar-text avatar-sm">KD</div>
                           <div class="avatar avatar-text avatar-md">KD</div>
                           <div class="avatar avatar-text avatar-lg">KD</div>
// utils-lib.js lives outside of the front-end/app project
import { initReactI18next } from "react-i18next";

export const i18nInstance = i18n
  .use(otherThings)
  .use(initReactI18next);

// App.tsx or App root
import { i18nInstance } from 'utils-lib';
const App = () => 
  <I18nextProvider i18n={i18nInstance}>
     <MyComp />
  </I18nextProvider>


import { useTranslation } from 'react-i18next';

const MyComp = () => {
  const { t, i18n } = useTranslation();
  return <div>{t('tag')}</div>  
}

  i18nInstance.init(generateI18nInitOptions(), error => {
    // handle your errors
  });
star

Tue Feb 01 2022 08:07:54 GMT+0000 (Coordinated Universal Time)

@AnishJakka

star

Tue Feb 01 2022 08:10:29 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 08:12:45 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 08:13:52 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 08:14:41 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 08:15:41 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 08:31:25 GMT+0000 (Coordinated Universal Time)

@adityapandit

star

Tue Feb 01 2022 08:32:56 GMT+0000 (Coordinated Universal Time)

@adityapandit

star

Tue Feb 01 2022 08:42:14 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 08:44:05 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 08:45:23 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 08:46:24 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 08:50:19 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 08:51:39 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 08:52:41 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 09:13:31 GMT+0000 (Coordinated Universal Time)

@rakshapawar10

star

Tue Feb 01 2022 09:58:00 GMT+0000 (Coordinated Universal Time)

@scjuly19

star

Tue Feb 01 2022 10:13:30 GMT+0000 (Coordinated Universal Time)

@suyashcodex

star

Tue Feb 01 2022 10:18:25 GMT+0000 (Coordinated Universal Time)

@Krishna2296

star

Tue Feb 01 2022 10:48:44 GMT+0000 (Coordinated Universal Time) https://react-accessible-accordion.springload.co.nz/

@aabhishek22

star

Tue Feb 01 2022 11:32:21 GMT+0000 (Coordinated Universal Time)

@vaibhav_55

star

Tue Feb 01 2022 11:40:13 GMT+0000 (Coordinated Universal Time) https://www.typescriptlang.org/docs/handbook/advanced-types.html#mapped-types

@avivdaniel

star

Tue Feb 01 2022 12:07:59 GMT+0000 (Coordinated Universal Time)

@Manjushree

star

Tue Feb 01 2022 12:51:57 GMT+0000 (Coordinated Universal Time)

@harshitadaswani

star

Tue Feb 01 2022 13:01:59 GMT+0000 (Coordinated Universal Time)

@chernov1111

star

Tue Feb 01 2022 13:15:26 GMT+0000 (Coordinated Universal Time)

@Shrushti

star

Tue Feb 01 2022 13:18:01 GMT+0000 (Coordinated Universal Time)

@Shrushti

star

Tue Feb 01 2022 13:18:48 GMT+0000 (Coordinated Universal Time)

@Shrushti

star

Tue Feb 01 2022 13:27:32 GMT+0000 (Coordinated Universal Time)

@shikha

star

Tue Feb 01 2022 13:28:57 GMT+0000 (Coordinated Universal Time)

@shikha

star

Tue Feb 01 2022 13:32:08 GMT+0000 (Coordinated Universal Time)

@shikha

star

Tue Feb 01 2022 13:37:16 GMT+0000 (Coordinated Universal Time)

@vaibhav_55

star

Tue Feb 01 2022 13:43:11 GMT+0000 (Coordinated Universal Time)

@vaibhav_55

star

Tue Feb 01 2022 13:43:18 GMT+0000 (Coordinated Universal Time)

@Shrushti

star

Tue Feb 01 2022 13:44:17 GMT+0000 (Coordinated Universal Time)

@Shrushti

star

Tue Feb 01 2022 13:44:19 GMT+0000 (Coordinated Universal Time)

@shikha

star

Tue Feb 01 2022 13:47:42 GMT+0000 (Coordinated Universal Time)

@Shrushti

star

Tue Feb 01 2022 14:01:05 GMT+0000 (Coordinated Universal Time)

@Shrushti

star

Tue Feb 01 2022 14:06:40 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 14:08:37 GMT+0000 (Coordinated Universal Time)

@tanishk15sharma

star

Tue Feb 01 2022 14:08:51 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 14:11:52 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 14:13:33 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 14:16:40 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 14:17:08 GMT+0000 (Coordinated Universal Time)

@harsh_it_8118

star

Tue Feb 01 2022 14:18:04 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 14:18:51 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 14:20:22 GMT+0000 (Coordinated Universal Time)

@swapnil

star

Tue Feb 01 2022 14:41:10 GMT+0000 (Coordinated Universal Time)

@Krishna2296

star

Tue Feb 01 2022 15:33:18 GMT+0000 (Coordinated Universal Time) https://github.com/i18next/react-i18next/issues/788

@avivdaniel

Save snippets that work with our extensions

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