Snippets Collections
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Myntra</title>
    <link rel="stylesheet" href="myntra.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

</head>
<script src="https://kit.fontawesome.com/yourcode.js" crossorigin="anonymous"></script>

<body>
    <header>
        <nav class="nav-section">
            <div class="logo-png">
                <img src="image/myntra-logo.png" alt="">
            </div>
            <ul>
                <li><a href="">MEN</a></li>
                <li><a href="">WOMEN</a></li>
                <li><a href="">KIDS</a></li>
                <li><a href="">HOME & LIVING</a></li>
                <li><a href="">BEAUTY</a></li>
                <li><a href="">STUDIO</a></li>

            </ul>
            <div class="search-section">
                <div class="icon-div">
                    <i class="fa fa-search"></i>
                </div>
                <div class="search-div">
                    <input type="search" name="s" id="search-box" placeholder="Search for products, brands and more">
                </div>
            </div>
            <div class="icons-3">
                <div class="user">
                    <i class="fa fa-user"></i>
                    <p>Profile</p>
                </div>
                <div class="heart">
                    <i class="fa fa-heart"></i>
                    <p>Whislist</p>
                </div>
                <div class="bag">
                    <i class="fa fa-shopping-bag"></i>
                    <p>Cart</p>
                </div>
            </div>
        </nav>
    </header>
    <section class="banner-section">
        <div class="banner-image">
            <img src="image/banner.webp" alt="">
        </div>
    </section>
    <!-- FOOTER START -->
    <footer class="myntra-footer">
        <div class="four-option-footer">
            <div class="option-one">
                <h5><strong>ONLINE SHOPPING</strong></h5>
                <li><a href=""></a>Home</li>
                <li><a href=""></a>Kids</li>
                <li><a href=""></a>Home & Living</li>
                <li><a href=""></a>Beauty</li>
                <li><a href=""></a>Gift Cards</li>
                <li><a href=""></a>Myntra Insider</li>
                <div class="links">
                    <h5><strong>USEFUL LINKS</strong></h5>
                    <li><a href="">Blog</a></li>
                    <li><a href="">Careers</a></li>
                    <li><a href="">Site Map</a></li>
                    <li><a href="">Corporate Information</a></li>
                    <li><a href="">Whitehat</a></li>
                    <li><a href="">Cleartrip</a></li>
                </div>
            </div>

            <div class="option-two">
                <h5><strong>CUSTOMER POLICIES</strong></h5>
                <li><a href=""></a>Copntact Us</li>
                <li><a href=""></a>FAQ</li>
                <li><a href=""></a>T&C</li>
                <li><a href=""></a>Terms Of Use</li>
                <li><a href=""></a>Track Orders</li>
                <li><a href=""></a>Shipping</li>
                <li><a href=""></a>Cancellation</li>
                <li><a href=""></a>Returns</li>
                <li><a href=""></a>Privacy Policy</li>
                <li><a href=""></a>Grivence Officer</li>
            </div>
            <div class="option-three">
                <h5><strong>EXPERIENCE MYNTRA APP ON MOBILE</strong></h5>
                <div class="image-horizontal-div">
                    <div class="gplay">
                        <img src="image/Gplay.png" alt="">
                    </div>
                    <div class="istore">
                        <img src="image/istore.png" alt="">
                    </div>
                </div>
                <div class="option-three-down">
                    <h5><strong>KEEP IN TOUCH</strong></h5>
                    <div class="social-icon">
                        <div class="fb">
                            <img src="image/fb.png" alt="">
                        </div>
                        <div class="x">
                            <img src="image/x.png" alt="">
                        </div>
                        <div class="yt">
                            <img src="image/yt.png" alt="">
                        </div>
                        <div class="insta">
                            <img src="image/insta.png" alt="">
                        </div>
                    </div>
                </div>
            </div>
            <div class="option-four">
                <div class="option-four-logo">
                    <div class="orig">
                        <div class="ori-size">
                            <img src="image/ori.png" alt="">
                        </div>
                        <p><span class="ori-2">100% ORIGINAL</span> guarantee for <br> all products at myntra.com
                        </p>
                    </div>
                    <div class="rep">
                        <div class="rep-size">
                            <img src="image/rep.png" alt="">
                        </div>
                        <p><span class="rep-2">Return within 14days </span>of receiving your order</p>
                    </div>
                </div>
            </div>

        </div>
        <div class="pop-searches">
            <h4><strong>POPULAR SEARCHES</strong></h4>
            <p>Sherwani | Track Pants | Blazers | Sweaters For Men | Men Wedding Dresses | Kurta Pajama | Raincoats |
                Shorts Trousers | Waistcoat | Inner Wear | Nightwear | Jeans | Shirts | Jogger Jeans | Men Suits | T
                Shirts Sweatshirts | Jackets For Men | Tracksuits | Ripped Jeans | Ethnic Wear | Hoodies | Raksha
                Bandhan Gifts | Watches | Shoes | Belts Swimwear | Dhotis | Boxers | Vests | Thermals Socks | Shrugs |
                Bracelets | Rings Sunglasses | Headphones Wallets Helmets | Caps | Mufflers | Gloves | Ties | Cufflinks
                | Men Sandals | Floaters | Flip Flops | Trunks | Bags </p>
        </div>
        <div class="info-section">
            <div class="contact">
                In case of any concern,<span class="blue-contact"> Contact Us</span>
            </div>
            <div class="copyright">
                © 2023 www.myntra.com. All rights reserved.
            </div>
            <div class="flipkartcompany">
                A Flipkart Company
            </div>
        </div>
        <div class="horizontal-line"></div>
        <div class="secound-last-footer">
            <h3><strong>MEN’S SHOPPING AT MYNTRA: A SUPERIOR EXPERIENCE</strong></h3>
            <p>Myntra is one of the best sites when it comes to online shopping for men. The finest of material,
                superior design and unbeatable style go into the making of our men’s shopping collection. Our range of
                online shopping men’s wear, accessories, footwear and personal care products are second to none.
                Compared with other men’s shopping sites, Myntra brings you the best price products which won’t hurt
                your pocket. With seasonal discounts on trendy casual wear, suits, blazers, sneakers and more, online
                shopping for men at Myntra just gets even more irresistible!</p> <br>
            <h3><strong>ONLINE SHOPPING FOR MEN: OPTIONS UNLIMITED</strong></h3>
            <p>At Myntra, our online shopping fashion for men collection features plenty of options to create multiple
                outfits. At our men’s online shop we have brought together an exhaustive range of products from the best
                men’s brands. Here is a list of must-haves from the wide variety of awesome products at Myntra:</p>
            <ul>
                <li>
                    Opt for a charming yet laid-back look with cool <span class="cool">T-shirts</span> and casual shirts
                    worn with stylish jeans,
                    casual trousers or shorts. Stay sharp and sophisticated with our smart options in formal shirts and
                    trousers. Look dapper when meeting your clients in our smooth suits. Put on trendy blazers for
                    formal occasions. On your online men’s clothes’ shopping journey, make sure you include kurtas,
                    jackets and sherwanis from our festive wear collection. Stay warm and comfortable in sweaters and
                    sweatshirts. Get fit and ready for adventure, with our sports and active wear collection.
                </li>
                <li>
                    Once you are done with your online men’s clothes’ shopping, make sure you pick up the right
                    accessories to complement your look. Whether you are travelling to work or outside the city our wide
                    variety of bags, backpacks and luggage collection will ensure you are well-packed. Our beautiful
                    watches and smart watches work well to enhance your overall style quotient. Reach out for our
                    sunglasses during the summers – let your eyes stay protected while you opt for maximum swag.
                </li>
                <li>Bring impeccable style to your shoe closet with our incredible collection of footwear for men. Look
                    classy during formal and semi-formal occasions with derbies, loafers and oxfords. Stay hip and
                    happening in parties with boat shoes, monks and brogues from our casual men’s footwear range. Lead
                    an active lifestyle with sneakers and running shoes from our sports footwear selection. Pick up
                    sandals, floaters and flip-flops for a trip to the beach. We also host socks in our men’s online
                    shopping collection. That’s basically everything under one roof!</li>
            </ul>
            <p>Make sure you check out fun printed men’s T-shirts featuring your favourite characters from DC Comics and
                Marvel studios. Relive the magic of your favourite superhero from Justice League. Fly high with
                Superman, battle the bad guys with Batman, or get trendy in lightning-speed with a Flash T-shirt. Grab
                our cool Marvel Avengers T-shirts. Stay powered up with the Iron Man, or walk with the warriors in a
                Thor T-shirt.</p>
            <p>
                Our online shopping fashion for mens collection includes even more amazing merchandise such as
                innerwear, sleepwear, track pants, personal care, wallets, belts and other fashion accessories.
            </p>
        </div>
        <div class="last-footer-myntra">
            <h3><strong>MEN’S SHOPPING MADE EASY AT MYNTRA</strong></h3>
            <p>
                Myntra is the most convenient men’s online store, what with our simplified shopping and payment
                procedures. With just a few clicks of the mouse or taps on your smartphone, you can buy your favorites
                from the best men’s brands right away.
            </p>
        </div>
    </footer>
</body>

</html>
$ git commit --amend --author="John Doe <john@doe.org>" --no-edit
$ git rebase --continue
Stopped at 5772b4bf2... Add images to about page
You can amend the commit now, with

    git commit --amend

Once you are satisfied with your changes, run

    git rebase --continue
$ git config user.name "John Doe"
$ git config user.email "john@doe.org"
$ git config --global user.name "John Doe"
$ git config --global user.email "john@doe.org"
$ git filter-branch --env-filter '
WRONG_EMAIL="wrong@example.com"
NEW_NAME="New Name Value"
NEW_EMAIL="correct@example.com"

if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then
    export GIT_COMMITTER_NAME="$NEW_NAME"
    export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$WRONG_EMAIL" ]
then
    export GIT_AUTHOR_NAME="$NEW_NAME"
    export GIT_AUTHOR_EMAIL="$NEW_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags
echo "The name of all files having all permissions :"
for file in *
do
# check if it is a file
if [ -f $file ]
then
# check if it has all permissions
if [ -r $file -a -w $file -a -x $file ]
then
# print the complete file name with -l option ls -l $file
# closing second if statement
fi
# closing first if statement
fi
done
echo enter first number
read a
echo enter second number
read b
echo enter third number
read c
if [ $a -eq $b -a $b -eq $c ]
then
echo all numbers are equal
exit
fi
if [ $a -lt $b ]
then
s1=$a
s2=$b
else
s1=$b
s2=$a
fi
if [ $s1 -gt $c ]
then
s2=$s1
s1=$c
fi
echo "smallest number is " $s1
sudo su
printf "<user>:$(openssl passwd -apr1 <your password>)\n" >> /etc/nginx/.htpasswd
print(c3.Pkg.file('meta://esg/src/model/mentionTracking/EsgMentionTrackingMl.MentionTrackingPipeline.py').readString())
/*
 * Une collection TreeMap est par défaut triée avec ses clés, mais si vous avez besoin de trier une TreeMap
 * par valeurs, Java fournit un moyen en utilisant la classe Comparator.
 */

package TreeMap;

import java.util.*;

/**
 *
 * @author fabrice
 */
class Tri_par_valeurs {
  
  // Static method which return type is Map and which extends Comparable. 
  // Comparable is a comparator class which compares values associated with two keys.  
  public static <K, V extends Comparable<V>> Map<K, V> valueSort(final Map<K, V> map) {
      
      // compare the values of two keys and return the result
      Comparator<K> valueComparator = (K k1, K k2) -> {
          int comparisonResult = map.get(k1).compareTo(map.get(k2));
          if (comparisonResult == 0) return 1;
          else return comparisonResult;
      };
      
      // Sorted Map created using the comparator
      Map<K, V> sorted = new TreeMap<K, V>(valueComparator); // create a new empty TreeMap ordered according to the given comparator
      
      sorted.putAll(map); // copy mappîngs of "map" into "sorted" an order them by value
      
      return sorted;
  }
  
    public static void main(String[] args) {
        TreeMap<Integer, String> map = new TreeMap<Integer, String>();
        
        // Feed the Map
        map.put(1, "Anshu"); 
        map.put(5, "Rajiv"); 
        map.put(3, "Chhotu"); 
        map.put(2, "Golu"); 
        map.put(4, "Sita"); 
        
        // Display elements before sorting 
        Set unsortedSet = map.entrySet();
        Iterator i1 = unsortedSet.iterator();
        while (i1.hasNext()) {
            Map.Entry mapEntry = (Map.Entry) i1.next();
            System.out.println("Key: " + mapEntry.getKey() + " - Value: " + mapEntry.getValue());
        }
        
        // call method valueSort() and assign the output to sortedMap
        Map sortedMap = valueSort(map);
        System.out.println(sortedMap);
        
        // Display elements after sorting 
        Set sortedSet = sortedMap.entrySet();
        Iterator i2 = sortedSet.iterator();
        while (i2.hasNext()) {
            Map.Entry mapEntry = (Map.Entry) i2.next();
            System.out.println("Key: " + mapEntry.getKey() + " - Value: " + mapEntry.getValue());
        }
    }
}
Dạ Táng said:
tôi đi làm thì thỉnh thoảng sẽ có người hỏi tôi là làm công nhân ở đấy à?
tôi dĩ nhiên không phải nhưng tầm nhìn và tâm thế của người hỏi đến đâu thì người ta sẽ chỉ hỏi đến thế thôi, chứ chả bao giờ hỏi "làm quản lý, hay làm gì " ở đó.

các anh quote tôi cũng suy nghĩ tương tự, nên không có tiền thì đừng nhìn người có tiền mà bàn tán, các anh chưa đủ tuổi =]]
gớm, đến bàn tán m cũng ko dám
nghèo thôi, đừng có vừa nghèo vừa hèn vậy chứ mai fen
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css"
/>
.grecaptcha-badge { 
    visibility: hidden !important;
}
struct Etudiant {
	int matricule;
	char nom[10];
	double note;
};


ifstream creerFichierbin_in(const string& nomDuFichier) {
	ifstream FicLire(nomDuFichier);
    return FicLire;
}


Etudiant* allouerMemoire(const int nbValeur) {
    return new Etudiant[nbValeur];
}


void afficheTableau(span<Etudiant> tab) {
    int numeroEtudiant = 1;
    for(auto etudiant: tab){
        cout << "Etudiant " << numeroEtudiant << ": "; 
        cout << etudiant.matricule << " "
             << etudiant.nom  << " "
             << etudiant.note << endl;
             numeroEtudiant++;
    }
}

int nbLigneFichierBin(const string& nomDuFichier) {

    ifstream ficLireBin = creerFichierbin_in(nomDuFichier);
    ficLireBin.seekg(0, ios::end);
    int nbElem;
    nbElem = ficLireBin.tellg() / sizeof(Etudiant);
    return nbElem;
}


void lireFichierBin(const string& nomDuFichier, Etudiant tab[]) {
	ifstream ficLireBin = creerFichierbin_in(nomDuFichier);
    ficLireBin.read(reinterpret_cast<char*>(tab), sizeof(Etudiant));
}

Etudiant etudiantMeilleurNote(span<Etudiant> tab) {
    Etudiant meilleurNote;
    bool first = true;
	for(auto etudiant: tab){
	    if(first){
	        meilleurNote = etudiant;
	        first = false;
	    }
	    if(etudiant.note > meilleurNote.note){
	        meilleurNote = etudiant;
	    }
	}
	
	return meilleurNote;
	
	
}
XAML
<dxe:ComboBoxEdit.StyleSettings>  
   <dxe:CheckedComboBoxStyleSettings />  
</dxe:ComboBoxEdit.StyleSettings>  
var obj = {
  x: 45,
  b: {
    func: function(){alert('a')},
    name: "b"
  },
  a: "prueba"
};

var nw = moveProp(obj, "a", "x"); //-- move 'a' to position of 'x'
console.log(nw, obj);


//--

function moveProp(obj, moveKey, toKey){
  var temp = Object.assign({}, obj)
  var tobj;
  var resp = {};

  tobj = temp[moveKey];
  delete temp[moveKey];
  for(var prop in temp){
    if (prop===toKey) resp[moveKey] = tobj;
    resp[prop] = temp[prop]; 
  }
  return resp;
}
/********* tables *************/

CREATE TABLE xsequences (
	id      int IDENTITY(1,1) NOT NULL,
	code    varchar(20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
	prefix  varchar(20) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NOT NULL,
	digits  int DEFAULT 1 NOT NULL,
	currsec int DEFAULT 0 NOT NULL,
	PRIMARY KEY (id)
);

CREATE INDEX ndx_seq_code_prf ON xsequences(code, prefix);

CREATE TABLE HISDBTST.dbo.xsequences_format (
	id      int IDENTITY(1,1) NOT NULL,
	code    varchar(20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
	prefix  varchar(20) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NOT NULL,
	digits  int DEFAULT 1 NOT NULL,
	PRIMARY KEY (id)
);

CREATE INDEX ndx_seq_fmt_code ON xsequences_format(code);




/************************ p_sequence: Sequence generator ***********/
/*
code            prefix          digits (zero filled)
--------------  -----------     ------
PATRECORD             yyMM-	    4
EMERGENCY       "EM"yyMMdd-	    3
OUTPATIENT	    "OP"yyMMdd-	    3
INPATIENT   	"IP"yyMMdd-	    3
REQUIREMENT	    "RQ"yyMMdd-	    3
*/

CREATE procedure [dbo].p_sequence(
	@code   varchar(20), 
	@date   datetime, 
	@result varchar(100) output
)
as
begin
	declare @currsec int;
	declare @prefix varchar(20);
	declare @digits int;

	select @prefix=prefix,
	        @digits=digits
	from xsequences_format sf 
	where code=@code;

	set @prefix = format(isnull(@date,getdate()), @prefix);
	
	insert into xsequences(code, prefix, currsec)
	select @code, @prefix, 0
	WHERE NOT EXISTS(SELECT ID FROM xsequences WHERE code=@code and prefix=@prefix);	

	update dbo.xsequences 
	set currsec=currsec + 1, @currsec = currsec + 1
	WHERE code=@code and prefix=@prefix;

	set @result = isnull(@prefix,'') + dbo.lpad(@currsec, @digits);
end;



/********************* trigger example **************************/

CREATE TRIGGER [dbo].t_patient_record  ON  [dbo].patient 
for insert not for replication 
AS 
BEGIN
	SET NOCOUNT ON;
	
	declare @RecordNo varchar(30)
	declare @Date datetime = GETDATE();

	-- select @Date = Creation from inserted;

    /***/
	exec p_sequence 'RECORD', @Date, @RecordNo output;
	/***/
	
	update Pacient set RecordNo=@RecordNo where PatientId =(select PatientId from inserted)
END
CREATE OR ALTER PROCEDURE DATE_TO_CHAR(TDATE TIMESTAMP, FORMAT VARCHAR(100)) RETURNS (
	RESULT VARCHAR(100)
)
AS
DECLARE SDATE VARCHAR(100);
DECLARE DD VARCHAR(2);
DECLARE MM VARCHAR(2);
DECLARE YY VARCHAR(4);
DECLARE HH VARCHAR(2);
DECLARE MI VARCHAR(2);
DECLARE SS VARCHAR(2);
DECLARE ZZZ VARCHAR(3);
DECLARE XFORMAT VARCHAR(100);
DECLARE AM VARCHAR(2);
BEGIN
	XFORMAT = UPPER(FORMAT);
	SDATE = CAST(TDATE AS VARCHAR(100));
	YY = SUBSTRING(SDATE FROM 1 FOR 4);
	MM = SUBSTRING(SDATE FROM 6 FOR 2);
	DD = SUBSTRING(SDATE FROM 9 FOR 2);
	HH = SUBSTRING(SDATE FROM 12 FOR 2);
	MI = SUBSTRING(SDATE FROM 15 FOR 2);
	SS = SUBSTRING(SDATE FROM 18 FOR 2);
	ZZZ = SUBSTRING(SDATE FROM 21 FOR 3);

	XFORMAT = REPLACE(XFORMAT, 'YYYY', YY);
	XFORMAT = REPLACE(XFORMAT, 'MM', MM);
	XFORMAT = REPLACE(XFORMAT, 'DD', DD);
	XFORMAT = REPLACE(XFORMAT, 'YY', SUBSTRING(YY FROM 3 FOR 2));
	XFORMAT = REPLACE(XFORMAT, 'HH24', HH);

	AM = 'AM';

	IF (HH='12') THEN
	BEGIN
		AM = 'M';
		IF (MI > '00') THEN 
		BEGIN
			AM='PM';
		END
	END
	
	IF (HH='00') THEN 
	BEGIN
		HH='12';
		AM='AM';
	END
	
	IF (HH>'12') THEN
	BEGIN
		HH = TRIM(CAST(CAST(HH AS INTEGER)-12 AS VARCHAR(2)));
		IF (CHAR_LENGTH(HH)<2) THEN 
		BEGIN
			HH='0'||HH;
		END
		AM='PM';
	END
	XFORMAT = REPLACE(XFORMAT, 'HH12', HH);
	XFORMAT = REPLACE(XFORMAT, 'HH', HH);
	XFORMAT = REPLACE(XFORMAT, 'MI', MI);
	XFORMAT = REPLACE(XFORMAT, 'SS', SS);
	XFORMAT = REPLACE(XFORMAT, 'ZZZ', ZZZ);

	RESULT = XFORMAT;
	SUSPEND;
END;
/usr/bin/ld: replica.o: in function `main':
replica.cpp:(.text+0x7d8): undefined reference to `moveplayer(float*, sf::Clock&)'
collect2: error: ld returned 1 exit status
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>

using namespace std;

// Initializing Dimensions.
// resolutionX and resolutionY determine the rendering resolution.
// Don't edit unless required. Use functions on lines 43, 44, 45 for resizing the game window.
const int resolutionX = 960;
const int resolutionY = 960;
const int boxPixelsX = 32;
const int boxPixelsY = 32;
const int gameRows = resolutionX / boxPixelsX; // Total rows on grid
const int gameColumns = resolutionY / boxPixelsY; // Total columns on grid

// Initializing GameGrid.
int gameGrid[gameRows][gameColumns] = {};

// The following exist purely for readability.
const int x = 0;
const int y = 1;
const int exists = 2;

/////////////////////////////////////////////////////////////////////////////
//                                                                         //
// Write your functions declarations here. Some have been written for you. //
//                                                                         //
/////////////////////////////////////////////////////////////////////////////

void drawPlayer(sf::RenderWindow& window, float player[], sf::Sprite& playerSprite);
void movePlayer(float player[], sf::Clock& playerClock);
void moveBullet(float bullet[], sf::Clock& bulletClock);
void drawBullet(sf::RenderWindow& window, float bullet[], sf::Sprite& bulletSprite);
void drawShrooms(sf::RenderWindow& window, int shroom[][2], sf::Sprite& shroomSprite,int maxShrooms);
void initializeShrooms(int shroom[][2],int maxShrooms);
void drawCentipede(sf::RenderWindow& window, float centipede[7]); 

int main()
{
	srand(time(0)); 

	// Declaring RenderWindow.
	sf::RenderWindow window(sf::VideoMode(resolutionX, resolutionY), "Centipede", sf::Style::Close | sf::Style::Titlebar);

	// Used to resize your window if it's too big or too small. Use according to your needs.
	window.setSize(sf::Vector2u(640, 640)); // Recommended for 1366x768 (768p) displays.
	//window.setSize(sf::Vector2u(1280, 1280)); // Recommended for 2560x1440 (1440p) displays.
	// window.setSize(sf::Vector2u(1920, 1920)); // Recommended for 3840x2160 (4k) displays.
	
	// Used to position your window on every launch. Use according to your needs.
	window.setPosition(sf::Vector2i(100, 0));

	// Initializing Background Music.
	sf::Music bgMusic;
	bgMusic.openFromFile("Centipede_Skeleton/Music/field_of_hopes.ogg");
	bgMusic.play();
	bgMusic.setVolume(50);

	// Initializing Background.
	sf::Texture backgroundTexture;
	sf::Sprite backgroundSprite;
	backgroundTexture.loadFromFile("Centipede_Skeleton/Textures/background.png");
	backgroundSprite.setTexture(backgroundTexture);
	backgroundSprite.setColor(sf::Color(255, 255, 255, 200)); // Reduces Opacity to 25%
        
	// Initializing Player and Player Sprites.
	float player[2] = {};
	player[x] = (gameColumns / 2) * boxPixelsX;
	player[y] = (gameColumns * 3 / 4) * boxPixelsY;
	sf::Texture playerTexture;
	sf::Sprite playerSprite;
	playerTexture.loadFromFile("Centipede_Skeleton/Textures/player.png");
	playerSprite.setTexture(playerTexture);
	playerSprite.setTextureRect(sf::IntRect(0, 0, boxPixelsX, boxPixelsY));
	
	sf::Clock playerClock;

	// Initializing Bullet and Bullet Sprites.
	float bullet[3] = {};
	bullet[x] = player[x];
	bullet[y] = player[y] - boxPixelsY;
	bullet[exists] = true;
	sf::Clock bulletClock;
	sf::Texture bulletTexture;
	sf::Sprite bulletSprite;
	bulletTexture.loadFromFile("Centipede_Skeleton/Textures/bullet.png");
	bulletSprite.setTexture(bulletTexture);
	bulletSprite.setTextureRect(sf::IntRect(0, 0, boxPixelsX, boxPixelsY));
	
	//initializing shrooms:
	const int maxShrooms = 10;
	int shroom[maxShrooms][2] = {};
        
	sf::Texture shroomTexture;
	sf::Sprite shroomSprite;
	shroomTexture.loadFromFile("Centipede_Skeleton/Textures/mushroom.png");
	shroomSprite.setTexture(shroomTexture);
	shroomSprite.setTextureRect(sf::IntRect(0, 0, boxPixelsX, boxPixelsY));
      
        initializeShrooms(shroom,maxShrooms);           //calling shroom's function to initialize position;
	while(window.isOpen()) {

		///////////////////////////////////////////////////////////////
		//                                                           //
		// Call Your Functions Here. Some have been written for you. //
		// Be vary of the order you call them, SFML draws in order.  //
		//                                                           //
		///////////////////////////////////////////////////////////////

		window.draw(backgroundSprite);
		drawPlayer(window, player, playerSprite);
		if (bullet[exists] == true) {
			moveBullet(bullet, bulletClock);
			drawBullet(window, bullet, bulletSprite);
		}
		
		
		drawShrooms(window,shroom,shroomSprite,maxShrooms);
		
		movePlayer(player,playerClock);
		
		
		
		
		
           sf::Event e;
		while (window.pollEvent(e)) {
			if (e.type == sf::Event::Closed) {
				return 0;
			}
		
		}		
		window.display();
		window.clear();
	}
 }

////////////////////////////////////////////////////////////////////////////
//                                                                        //
// Write your functions definitions here. Some have been written for you. //
//                                                                        //
////////////////////////////////////////////////////////////////////////////

void drawPlayer(sf::RenderWindow& window, float player[], sf::Sprite& playerSprite) {
	playerSprite.setPosition(player[x], player[y]);
	window.draw(playerSprite);
}
void moveBullet(float bullet[], sf::Clock& bulletClock) {
	if (bulletClock.getElapsedTime().asMilliseconds() < 20)
		return;

	bulletClock.restart();
	bullet[y] -= 10;	
	if (bullet[y] < -32)
		bullet[exists] = false;
}
void drawBullet(sf::RenderWindow& window, float bullet[], sf::Sprite& bulletSprite) {
	bulletSprite.setPosition(bullet[x], bullet[y]);
	window.draw(bulletSprite);
}


void drawShrooms(sf::RenderWindow& window, int shroom[][2], sf::Sprite& shroomSprite,int maxShrooms){
     
     for(int i=0;i<maxShrooms;i++){
                          
                          
                          
                          shroomSprite.setPosition(shroom[i][x],shroom[i][y]);
                          window.draw(shroomSprite);                            
                                                                                  } 
                                                                                      
                  } 

void initializeShrooms(int shroom[][2],int maxShrooms){
     
     for(int i=0;i<maxShrooms;i++){
                          shroom[i][x] =     rand()%gameRows * boxPixelsX; 
                          shroom[i][y] =     rand()%gameColumns * boxPixelsY;            
                                                                }
                                                                        }
                          
void movePlayer(float player[], sf::Clock& playerClock) {
    float movementSpeed = 5.0f;
    int bottomLimit = resolutionY - (6 * boxPixelsY); // Calculate the bottom limit
    
    if (sf::Keyboard::isKeyPressed(sf::Keyboard::W) && player[y] > bottomLimit) {
        player[y] -= movementSpeed + 3;
    }
    if (sf::Keyboard::isKeyPressed(sf::Keyboard::S) && player[y] < resolutionY - boxPixelsY) {
        player[y] += movementSpeed + 3;
    }
    if (sf::Keyboard::isKeyPressed(sf::Keyboard::D) && player[x] < resolutionX - boxPixelsX) {
        player[x] += movementSpeed + 3;
    }
    if (sf::Keyboard::isKeyPressed(sf::Keyboard::A) && player[x] > 0) {
        player[x] -= movementSpeed + 3;
    }
}

                                                                  
                      /* TO DO centipede sprite,centepede movement,mushrooms alignment i-e above a particulr row number,*/

SELECT    
	roles.principal_id                           AS RolePrincipalID
 	,roles.name                                  AS RolePrincipalName
 	,database_role_members.member_principal_id   AS MemberPrincipalID
 	,members.name                                AS MemberPrincipalName
FROM sys.database_role_members AS database_role_members  
JOIN sys.database_principals AS roles  
  ON database_role_members.role_principal_id = roles.principal_id  
JOIN sys.database_principals AS members  
  ON database_role_members.member_principal_id = members.principal_id
Beleaf Technologies is a leading crypto token development company that specializes in creating bespoke blockchain-based tokens. With a focus on innovation and security, they offer end-to-end solutions for token creation, smart contracts, and decentralized applications. Their expert team ensures seamless integration and customization, empowering businesses to harness the potential of blockchain technology for various applications, from finance to supply chain management.


To Contact
Telegram: https://t.me/BeleafTech
Whatsapp: +91 80567 86622
Skype: live:.cid.62ff8496d3390349
Mail to: business@beleaftechnologies.com
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include <cmath>
#include <span>
#include <vector> 
#include <algorithm>

#include "cppitertools/range.hpp"
#include "cppitertools/enumerate.hpp"

#include "verification_allocation.hpp"
#include "debogage_memoire.hpp"

using namespace std;
using namespace iter;

struct Personne {
    char nom[10];
    int age;
};

ifstream creerFichiertxt_in(const string& nomDuFichier) {
    return {};
}

int nbLigneFichierTxt(const string& nomDuFichier) {
    return {};
}

ifstream creerFichierbin_in(const string& nomDuFichier) {
    return {};
}

ofstream creerFichierbin_out(const string& nomDuFichier) {
    return {};
}

Personne* allouerMemoire(const int nbPersonne) {
    return {};
}

void lireFichiertxt(const string& nomDuFichier, span<Personne> personnes) {

}

void afficheTableau(span<Personne> personnes) {

}

void ecrireFichierBinaire(const string& nomDuFichier, span<Personne> personnes) {
    
}

int nbElemFichierBin(const string& nomDuFichier) {
    return {};
}

void lireFichierBin(const string& nomDuFichier, span<Personne> personnes) {
    
}

void trierPersonneParAge(span<Personne> personnes) {
   
}

void trierPersonneParNom(span<Personne> personnes) {
    
}

Personne plusGrandAge(span<Personne> personnes) {
    return {};
}


Personne plusPetitAge(span<Personne> personnes) {
    return {};
}

int main() {
    srand((unsigned)time(NULL));
    bibliotheque_cours::VerifierFuitesAllocations verifierFuitesAllocations;

    const string nomFichier_txt = "age.txt";
    const string nomFichier_bin = "age.bin";

    //Calcul du nombre de lignes dans le fichier texte
    int nbLigneTxt = nbLigneFichierTxt(nomFichier_txt);
    static const int CAPACITE = 10;
    Personne* personnes_txt = allouerMemoire(CAPACITE);

    // Lecture des données depuis le fichier texte
    span<Personne> span_personnes_txt = span(personnes_txt, nbLigneTxt > CAPACITE ? CAPACITE : nbLigneTxt);
    lireFichiertxt(nomFichier_txt, span_personnes_txt);

    cout << "Affichage des données lues depuis le fichier texte :" << endl;
    afficheTableau(span_personnes_txt);
    cout << endl << endl;

    // Ecriture des données dans le fichier binaire
    ecrireFichierBinaire(nomFichier_bin, span_personnes_txt);

    // Calcul du nombre d'éléments dans le fichier binaire
    int nbLigneBin = nbElemFichierBin(nomFichier_bin);


    // Lecture des données depuis le fichier binaire
    Personne* personnes_bin = allouerMemoire(CAPACITE);

    span<Personne> span_personnes_bin = span(personnes_bin, nbLigneBin > CAPACITE ? CAPACITE : nbLigneBin);
    lireFichierBin(nomFichier_bin, span_personnes_bin);

    cout << "Affichage des données lues depuis le fichier binaire :" << endl;
    afficheTableau(span_personnes_bin);
    cout << endl << endl;

    cout << "Tri des personnes par âge..." << endl;
    trierPersonneParAge(span_personnes_bin);
    afficheTableau(span_personnes_bin);
    cout << endl << endl;

    cout << "Tri des personnes par nom..." << endl;
    trierPersonneParNom(span_personnes_bin);
    afficheTableau(span_personnes_bin);
    cout << endl << endl;

    cout << "Personne la plus âgée :" << endl;
    Personne p = plusGrandAge(span_personnes_bin);
    cout << left << setw(10) << p.nom << p.age << endl << endl;

    cout << "Personne la plus jeune :" << endl;
    p = plusPetitAge(span_personnes_bin);
    cout << left << setw(10) << p.nom << p.age << endl << endl;

    delete[] personnes_txt;
    delete[] personnes_bin;
    personnes_txt = nullptr;
    personnes_bin = nullptr;

    return 0;
}

ls = [1, 2, 9, 4, 5, 2, 3, 9, 1]
result = max(ls, key=ls.count)

# or
# result = max(set(ls), key=ls.count)
<script>
  (() => {
  document.write((new Date()).toLocaleDateString('ru', {
    "month": "long"
  }))
})();
</script> и
<script>
  (() => {
  let d = new Date();
  d.setMonth(d.getMonth() + 1);
  document.write(d.toLocaleDateString('ru', {
    "month": "long"
  }))
})();
</script>

<script>
  var months = ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'];

  var currentDate = new Date();
  var currentMonth = months[currentDate.getMonth()];

  var nextMonthDate = new Date();
  nextMonthDate.setMonth(nextMonthDate.getMonth() + 1);
  var nextMonth = months[nextMonthDate.getMonth()];

  document.write(currentMonth + ' и ' + nextMonth);
</script>
import json

from kafka import KafkaConsumer

from river import linear_model
from river import preprocessing
from river import metrics
from river import imblearn
from river import optim


# Use rocauc as the metric for evaluation
metric = metrics.ROCAUC()

# Create a logistic regression model with a scaler
# and Random Under Sampler to deal with data imbalance
model = (
    preprocessing.StandardScaler() |
    imblearn.RandomUnderSampler(
        classifier=linear_model.LogisticRegression(
            loss=optim.losses.Log(weight_pos=5)
        ),
        desired_dist={0: .8, 1: .2},
        seed=42
    )
)

# Create our Kafka consumer
consumer = KafkaConsumer(
    "ml_training_data",
    bootstrap_servers=["localhost:9092"],
    auto_offset_reset="earliest",
    enable_auto_commit=True,
    group_id="the-group-id",
    value_deserializer=lambda x: json.loads(x.decode("utf-8")),
)

# Use each event to update our model and print the prediction and metrics
for event in consumer:
    event_data = event.value
    try:
        x = event_data["x"]
        y = event_data["y"]
        prediction = model.predict_one(x)
        y_pred = model.predict_proba_one(x)

        model.learn_one(x, y)
        metric.update(y, y_pred)
        print(f"Prediction: {prediction}   Accuracy:{metric}")
    except:
        print("Processing bad data...")
Sending:
   x: {'Time': 0.0, 'V1': -1.3598071336738, 'V2': -0.0727811733098497, 'V3': 2.53634673796914, 'V4': 1.37815522427443, 'V5': -0.338320769942518, 'V6': 0.462387777762292, 'V7': 0.239598554061257, 'V8': 0.0986979012610507, 'V9': 0.363786969611213, 'V10': 0.0907941719789316, 'V11': -0.551599533260813, 'V12': -0.617800855762348, 'V13': -0.991389847235408, 'V14': -0.311169353699879, 'V15': 1.46817697209427, 'V16': -0.470400525259478, 'V17': 0.207971241929242, 'V18': 0.0257905801985591, 'V19': 0.403992960255733, 'V20': 0.251412098239705, 'V21': -0.018306777944153, 'V22': 0.277837575558899, 'V23': -0.110473910188767, 'V24': 0.0669280749146731, 'V25': 0.128539358273528, 'V26': -0.189114843888824, 'V27': 0.133558376740387, 'V28': -0.0210530534538215, 'Amount': 149.62}
   y: 0
Sending:
   x: {'Time': 0.0, 'V1': 1.19185711131486, 'V2': 0.26615071205963, 'V3': 0.16648011335321, 'V4': 0.448154078460911, 'V5': 0.0600176492822243, 'V6': -0.0823608088155687, 'V7': -0.0788029833323113, 'V8': 0.0851016549148104, 'V9': -0.255425128109186, 'V10': -0.166974414004614, 'V11': 1.61272666105479, 'V12': 1.06523531137287, 'V13': 0.48909501589608, 'V14': -0.143772296441519, 'V15': 0.635558093258208, 'V16': 0.463917041022171, 'V17': -0.114804663102346, 'V18': -0.183361270123994, 'V19': -0.145783041325259, 'V20': -0.0690831352230203, 'V21': -0.225775248033138, 'V22': -0.638671952771851, 'V23': 0.101288021253234, 'V24': -0.339846475529127, 'V25': 0.167170404418143, 'V26': 0.125894532368176, 'V27': -0.00898309914322813, 'V28': 0.0147241691924927, 'Amount': 2.69}
   y: 0
Sending:
   x: {'Time': 1.0, 'V1': -1.35835406159823, 'V2': -1.34016307473609, 'V3': 1.77320934263119, 'V4': 0.379779593034328, 'V5': -0.503198133318193, 'V6': 1.80049938079263, 'V7': 0.791460956450422, 'V8': 0.247675786588991, 'V9': -1.51465432260583, 'V10': 0.207642865216696, 'V11': 0.624501459424895, 'V12': 0.066083685268831, 'V13': 0.717292731410831, 'V14': -0.165945922763554, 'V15': 2.34586494901581, 'V16': -2.89008319444231, 'V17': 1.10996937869599, 'V18': -0.121359313195888, 'V19': -2.26185709530414, 'V20': 0.524979725224404, 'V21': 0.247998153469754, 'V22': 0.771679401917229, 'V23': 0.909412262347719, 'V24': -0.689280956490685, 'V25': -0.327641833735251, 'V26': -0.139096571514147, 'V27': -0.0553527940384261, 'V28': -0.0597518405929204, 'Amount': 378.66}
   y: 0
import time
import json
import random

from kafka import KafkaProducer
from river import datasets


# Create a Kafka producer that connects to Kafka on port 9092
producer = KafkaProducer(
    bootstrap_servers=["localhost:9092"],
    value_serializer=lambda x: json.dumps(x).encode("utf-8"),
)

# Initialize the River credit card fraud dataset.
dataset = datasets.CreditCard()

# Send observations to the Kafka topic with a random sleep
for x, y in dataset:
    print("Sending:")
    print(f"   x: {x}")
    print(f"   y: {y}")
    data = {"x": x, "y": y}     
    data = {"x": x, "y": y}
    producer.send("ml_training_data", value=data)

    time.sleep(
# filename: docker-compose.yaml
version: '3.7'
services:
  zookeeper:
    image: zookeeper:latest
    container_name: "zookeeper-stream-ml"
    ports:
      - "2181:2181"
    environment:
      ZOOKEEPER_CLIENT_PORT: 2181
      ZOOKEEPER_TICK_TIME: 2000
  kafka:
    image: wurstmeister/kafka:latest
    restart: unless-stopped
    container_name: "kafka-stream-ml"
    ports:
      - "9092:9092"
    expose:
      - "9093"
    depends_on:
      - zookeeper
    environment:
      KAFKA_ZOOKEEPER_CONNECT: zookeeper-stream-ml:2181/kafka
      KAFKA_BROKER_ID: 0
      KAFKA_ADVERTISED_HOST_NAME: kafka-stream-ml
      KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-stream-ml:9093,OUTSIDE://localhost:9092
      KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT
      KAFKA_CREATE_TOPIC: "ml_training_data:1:1"
import streamlit as st
import pandas as pd
import plotly.graph_objects as go
from streamlit_autorefresh import st_autorefresh
import pinotdb


def get_funnel_figure(df):
    trace = go.Funnel(
        x=df.agg('sum', numeric_only=1).values,
        y=['home', 'login', 'cart', 'shop', 'help', 'error',
           'checkout', 'OLD_CHECKOUT']
    )

    layout = go.Layout(margin={"l": 180, "r": 0, "t": 30, "b": 0, "pad": 0},
                       funnelmode="stack",
                       showlegend=False,
                       hovermode='closest',
                       title='',
                       legend=dict(orientation="v",
                                   bgcolor='#E2E2E2',
                                   xanchor='left',
                                   font=dict(size=12)))
    fig = go.Figure(trace, layout)
    fig.update_layout(title_text="Funnel", font_size=10)
    return fig


def get_sankey_figure(df):
    # Process the data to capture transitions
    all_transitions = []

    for path in df['web_page']:
        steps = path.split(',')
        transitions = list(zip(steps[:-1], steps[1:]))
        all_transitions.extend(transitions)

    transition_df = pd.DataFrame(all_transitions, columns=['source', 'target'])
    trans_count = (transition_df.groupby(['source', 'target'])
                   .size()
                   .reset_index(name='value')
                   .sort_values('value', ascending=False))

    # Create unique labels for the nodes
    unique_labels = pd.concat([trans_count['source'],
                               trans_count['target']]).unique()

    # Map the source and target strings to numeric values
    trans_count['source'] = trans_count['source'].map(
        {label: idx for idx, label in enumerate(unique_labels)})
    trans_count['target'] = trans_count['target'].map(
        {label: idx for idx, label in enumerate(unique_labels)})

    # Create the Sankey diagram
    fig = go.Figure(go.Sankey(
        node=dict(pad=15, thickness=15,
                  line=dict(color="black", width=0.5),
                  label=unique_labels),
        link=dict(arrowlen=15,
                  source=trans_count['source'],
                  target=trans_count['target'],
                  value=trans_count['value'])
    ))

    fig.update_layout(title_text="User Flow", font_size=10)
    return fig


def get_connection():
    conn = pinotdb.connect(host='localhost', port=9000,
                           path='/sql', scheme='http')
    return conn


def get_funnel_data(conn):
    query = """SELECT
                SUM(case when web_page='home' then 1 else 0 end) as home,
                SUM(case when web_page='login' then 1 else 0 end) as login,
                SUM(case when web_page='cart' then 1 else 0 end) as cart,
                SUM(case when web_page='shop' then 1 else 0 end) as shop,
                SUM(case when web_page='help' then 1 else 0 end) as help,
                SUM(case when web_page='error' then 1 else 0 end) as error,
                SUM(case when web_page='checkout' then 1 else 0 end) as checkout,
                SUM(case when web_page='OLD_CHECKOUT' then 1 else 0 end) as OLD_CHECKOUT,
                location,
                user_id
                FROM clickstream
                GROUP BY location, user_id
                LIMIT 200
            """
    df = pd.read_sql_query(query, conn)
    return df


def get_sankey_data(conn):
    df = pd.read_sql_query('SELECT * FROM clickstream LIMIT 200', conn)
    df = (df.groupby(['location', 'user_id'])['web_page']
					.apply(lambda x: ','.join(x))
				  .reset_index())
    return df


conn = get_connection()

# update every 30 seconds
st_autorefresh(interval=30 * 1000, key="dataframerefresh")

# Funnel Chart
funnel_data = get_funnel_data(conn)
funnel_fig = get_funnel_figure(funnel_data)
st.plotly_chart(funnel_fig, use_container_width=True)

# Sankey Chart
sankey_data = get_sankey_data(conn)
sankey_fig = get_sankey_figure(sankey_data)
st.plotly_chart(sankey_fig, use_container_width=True)
import json
import time
import random
import csv

from confluent_kafka import Producer


def acked(err, msg):
    if err is not None:
        print(f"Failed to deliver message: {msg.value()}: {err.str()}")


producer = Producer({'bootstrap.servers': 'localhost:9092'})

with open('funnel_steps.csv', newline='') as csvfile:
    reader = csv.DictReader(csvfile)

    for row in reader:
        print(f'Sending payload: {row}')
        # Send to Kafka
        payload = json.dumps(row)
        producer.produce(topic='clickstream-events', key=str(row['user_id']),
                         value=payload, callback=acked)

        # Random sleep
        sleep_time = random.randint(1, 4)
        time.sleep(sleep_time)
$ docker exec -it pinot-controller-wiki bin/pinot-admin.sh AddTable \
  -tableConfigFile /config/table.json \
  -schemaFile /config/schema.json \
  -exec
{
    "tableName": "clickstream",
    "tableType": "REALTIME",
    "segmentsConfig": {
      "timeColumnName": "ts",
      "schemaName": "clickstream",
      "replicasPerPartition": "1"
    },
    "tenants": {},
    "tableIndexConfig": {
      "streamConfigs": {
        "streamType": "kafka",
        "stream.kafka.topic.name": "clickstream-events",
        "stream.kafka.broker.list": "kafka-clickstream:9093",
        "stream.kafka.consumer.type": "lowlevel",
        "stream.kafka.consumer.prop.auto.offset.reset": "smallest",
        "stream.kafka.consumer.factory.class.name": 
          "org.apache.pinot.plugin.stream.kafka20.KafkaConsumerFactory",
        "stream.kafka.decoder.class.name": 
          "org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder",
          "realtime.segment.flush.threshold.rows": "1000",
          "realtime.segment.flush.threshold.time": "24h",
          "realtime.segment.flush.segment.size": "100M"
      }
    },
    "metadata": {},
    "ingestionConfig": {
      "transformConfigs": [
        {
          "columnName": "user_id",
          "transformFunction": "JSONPATH(meta, '$.user_id')"
        },
        {
          "columnName": "web_page",
          "transformFunction": "JSONPATH(meta, '$.web_page')"
        },
        {
          "columnName": "order",
          "transformFunction": "JSONPATH(meta, '$.order')"
        },
        {
          "columnName": "location",
          "transformFunction": "JSONPATH(meta, '$.location')"
        },
        {
          "columnName": "visit",
          "transformFunction": "JSONPATH(meta, '$.visit')"
        },
        {
            "columnName": "ts",
            "transformFunction": "\"timestamp\" * 1000"
        }
      ]
    }
  }
<?php
$taxonomyName = "service_line_category";
$terms = get_terms($taxonomyName,array('parent' => 0));
foreach($terms as $term) {
    echo '<a href="'.get_term_link($term->slug,$taxonomyName).'">'.$term->name.'</a>';
    $term_children = get_term_children($term->term_id,$taxonomyName);
    echo '<ul>';
    foreach($term_children as $term_child_id) {
        $term_child = get_term_by('id',$term_child_id,$taxonomyName);
        echo '<li><a href="' . get_term_link( $term_child->term_id, $taxonomyName ) . '">' . $term_child->name . '</a></li>';
    }
    echo '</ul>';
}
?>
{
    "schemaName": "clickstream",
    "dimensionFieldSpecs": [
      {
        "name": "user_id",
        "dataType": "INT"
      },
      {
        "name": "web_page",
        "dataType": "STRING"
      },
      {
        "name": "order",
        "dataType": "INT"
      },
      {
        "name": "location",
        "dataType": "STRING"
      },
      {
        "name": "visit",
        "dataType": "INT"
      }
    ],
    "dateTimeFieldSpecs": [
      {
        "name": "ts",
        "dataType": "TIMESTAMP",
        "format": "1:MILLISECONDS:EPOCH",
        "granularity": "1:MILLISECONDS"
      }
    ]
  }
$ docker exec -it kafka-clickstream kafka-topics.sh \
  --bootstrap-server localhost:9092 \
  --partitions 5 \
  --topic clickstream_events \
  --create
# For x86 machine
$ docker-compose up

# For Apple silicon   
$ docker-compose -f docker-compose-m1.yml up
version: '3.7'
services:
  zookeeper:
    image: zookeeper:3.5.6
    container_name: "zookeeper-clickstream"
    ports:
      - "2181:2181"
    environment:
      ZOOKEEPER_CLIENT_PORT: 2181
      ZOOKEEPER_TICK_TIME: 2000
  kafka:
    image: wurstmeister/kafka:latest
    restart: unless-stopped
    container_name: "kafka-clickstream"
    ports:
      - "9092:9092"
    expose:
      - "9093"
    depends_on:
      - zookeeper
    environment:
      KAFKA_ZOOKEEPER_CONNECT: zookeeper-clickstream:2181/kafka
      KAFKA_BROKER_ID: 0
      KAFKA_ADVERTISED_HOST_NAME: kafka-clickstream
      KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-clickstream:9093,OUTSIDE://localhost:9092
      KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT
  pinot-controller:
    image: apachepinot/pinot:0.12.0
    command: "StartController -zkAddress zookeeper-clickstream:2181 -dataDir /data"
    container_name: "pinot-controller-clickstream"
    volumes:
      - ./config:/config
      - ./data:/data
    restart: unless-stopped
    ports:
      - "9000:9000"
    depends_on:
      - zookeeper
  pinot-broker:
    image: apachepinot/pinot:0.12.0
    command: "StartBroker -zkAddress zookeeper-clickstream:2181"
    restart: unless-stopped
    container_name: "pinot-broker-clickstream"
    volumes:
      - ./config:/config
    ports:
      - "8099:8099"      
    depends_on:
      - pinot-controller
  pinot-server:
    image: apachepinot/pinot:0.12.0
    command: "StartServer -zkAddress zookeeper-clickstream:2181"
    restart: unless-stopped
    container_name: "pinot-server-clickstream"
    volumes:
      - ./config:/config
    ports:
      - "8098:8098"
    depends_on:
      - pinot-broker
version: '3.7'
services:
  zookeeper:
    image: zookeeper:latest
    container_name: "zookeeper-clickstream"
    ports:
      - "2181:2181"
    environment:
      ZOOKEEPER_CLIENT_PORT: 2181
      ZOOKEEPER_TICK_TIME: 2000
  kafka:
    image: wurstmeister/kafka:latest
    restart: unless-stopped
    container_name: "kafka-clickstream"
    ports:
      - "9092:9092"
    expose:
      - "9093"
    depends_on:
      - zookeeper
    environment:
      KAFKA_ZOOKEEPER_CONNECT: zookeeper-clickstream:2181/kafka
      KAFKA_BROKER_ID: 0
      KAFKA_ADVERTISED_HOST_NAME: kafka-clickstream
      KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-clickstream:9093,OUTSIDE://localhost:9092
      KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT
  pinot-controller:
    image: apachepinot/pinot:0.12.0-arm64
    command: "StartController -zkAddress zookeeper-clickstream:2181"
    container_name: "pinot-controller-clickstream"
    volumes:
      - ./config:/config
      - ./data:/data
    restart: unless-stopped
    ports:
      - "9000:9000"
    depends_on:
      - zookeeper
  pinot-broker:
    image: apachepinot/pinot:0.12.0-arm64
    command: "StartBroker -zkAddress zookeeper-clickstream:2181"
    restart: unless-stopped
    container_name: "pinot-broker-clickstream"
    volumes:
      - ./config:/config
    ports:
      - "8099:8099"
    depends_on:
      - pinot-controller
  pinot-server:
    image: apachepinot/pinot:0.12.0-arm64
    command: "StartServer -zkAddress zookeeper-clickstream:2181"
    restart: unless-stopped
    container_name: "pinot-server-clickstream"
    volumes:
      - ./config:/config
    ports:
      - "8098:8098"
      - "8097:8097"
    depends_on:
      - pinot-broker
.elementor-form input[type="tel"] {
direction: rtl;
}


לשים בכול האתר 


selector *{
    direction: rtl;
}
user_id,web_page,order,location,visit
1,home,1,Colorado,1
1,login,2,Colorado,1
1,shop,3,Colorado,1
1,cart,4,Colorado,1
1,checkout,5,Colorado,1
2,home,1,California,1
2,login,2,California,1
2,shop,3,California,1
2,cart,4,California,1
2,checkout,5,California,1
$ nats consumer add DebeziumStream viewer --ephemeral --pull --defaults > /dev/null
$ nats consumer next --raw --count 100 DebeziumStream viewer | jq -r '.payload'
{
  "before": null,
  "after": {
    "user_id": 4,
    "username": "user2",
    "password": "beseeingya",
    "email": "user2@email.com",
    "created_on": 1700505308855573,
    "last_login": null
  },
  "source": {
    "version": "2.2.0.Alpha3",
    "connector": "postgresql",
    "name": "glassflowtopic",
    "ts_ms": 1700505308860,
    "snapshot": "false",
    "db": "glassflowdb",
    "sequence": "[\"26589096\",\"26597648\"]",
    "schema": "public",
    "table": "accounts",
    "txId": 742,
    "lsn": 26597648,
    "xmin": null
  },
  "op": "c",
  "ts_ms": 1700505309220,
  "transaction": null
}
{
  "before": {
    "user_id": 3,
    "username": "",
    "password": "",
    "email": "",
    "created_on": 0,
    "last_login": null
  },
  "after": null,
  "source": {
    "version": "2.2.0.Alpha3",
    "connector": "postgresql",
    "name": "glassflowtopic",
    "ts_ms": 1700505331733,
    "snapshot": "false",
    "db": "glassflowdb",
    "sequence": "[\"26598656\",\"26598712\"]",
    "schema": "public",
    "table": "accounts",
    "txId": 743,
    "lsn": 26598712,
    "xmin": null
  },
  "op": "d",
  "ts_ms": 1700505331751,
  "transaction": null
}
$ psql -h 127.0.0.1 -U glassflowuser -d glassflowdb

glassflowdb=# INSERT INTO "public"."accounts" ("username", "password", "email", "created_on")
               VALUES ('user2', 'beseeingya', 'user2@email.com', NOW());
glassflowdb=# DELETE FROM accounts WHERE username = 'user3';
debezium.source.connector.class=io.debezium.connector.postgresql.PostgresConnector
debezium.source.offset.storage.file.filename=data/offsets.dat
debezium.source.offset.flush.interval.ms=0
debezium.source.database.hostname=postgres
debezium.source.database.port=5432
debezium.source.database.user=glassflowuser
debezium.source.database.password=glassflow
debezium.source.database.dbname=glassflowdb
debezium.source.topic.prefix=glassflowtopic
debezium.source.plugin.name=pgoutput

debezium.sink.type=nats-jetstream
debezium.sink.nats-jetstream.url=nats://nats:4222
debezium.sink.nats-jetstream.create-stream=true
debezium.sink.nats-jetstream.subjects=postgres.*.*
debezium:
    image: docker.io/debezium/server:latest
    volumes:
      - ./debezium/conf:/debezium/conf
    depends_on:
      - postgres
      - nats
star

Thu Nov 23 2023 07:55:32 GMT+0000 (Coordinated Universal Time)

@aditya2023

star

Thu Nov 23 2023 04:09:44 GMT+0000 (Coordinated Universal Time) https://www.git-tower.com/learn/git/faq/change-author-name-email

@alexnick

star

Thu Nov 23 2023 04:09:40 GMT+0000 (Coordinated Universal Time) https://www.git-tower.com/learn/git/faq/change-author-name-email

@alexnick

star

Thu Nov 23 2023 04:09:34 GMT+0000 (Coordinated Universal Time) https://www.git-tower.com/learn/git/faq/change-author-name-email

@alexnick

star

Thu Nov 23 2023 04:09:30 GMT+0000 (Coordinated Universal Time) https://www.git-tower.com/learn/git/faq/change-author-name-email

@alexnick

star

Thu Nov 23 2023 04:09:22 GMT+0000 (Coordinated Universal Time) https://www.git-tower.com/learn/git/faq/change-author-name-email

@alexnick

star

Thu Nov 23 2023 04:09:15 GMT+0000 (Coordinated Universal Time) https://www.git-tower.com/learn/git/faq/change-author-name-email

@alexnick

star

Thu Nov 23 2023 04:09:02 GMT+0000 (Coordinated Universal Time) https://www.git-tower.com/learn/git/faq/change-author-name-email

@alexnick

star

Thu Nov 23 2023 04:08:46 GMT+0000 (Coordinated Universal Time) https://www.git-tower.com/learn/git/faq/change-author-name-email

@alexnick

star

Thu Nov 23 2023 03:38:02 GMT+0000 (Coordinated Universal Time)

@viinod07

star

Thu Nov 23 2023 03:36:55 GMT+0000 (Coordinated Universal Time)

@viinod07

star

Wed Nov 22 2023 22:32:23 GMT+0000 (Coordinated Universal Time)

@marcopinero #nginx #ssl

star

Wed Nov 22 2023 17:12:38 GMT+0000 (Coordinated Universal Time)

@akshaypunhani #python

star

Wed Nov 22 2023 14:52:10 GMT+0000 (Coordinated Universal Time) https://www.geeksforgeeks.org/how-to-sort-a-treemap-by-value-in-java/

@fastoch #java

star

Wed Nov 22 2023 06:58:03 GMT+0000 (Coordinated Universal Time) https://voz.vn/t/dieu-it-biet-ve-dai-gia-dong-nat-xay-lau-dai-70-ty-o-que-lua-nghe-an.879396/

@abcabcabc

star

Wed Nov 22 2023 04:39:42 GMT+0000 (Coordinated Universal Time) https://iconoir.com/docs/packages/css

@themehoney

star

Tue Nov 21 2023 21:34:02 GMT+0000 (Coordinated Universal Time)

@odesign

star

Tue Nov 21 2023 20:41:28 GMT+0000 (Coordinated Universal Time)

@Mehdiiiiiii7

star

Tue Nov 21 2023 19:23:13 GMT+0000 (Coordinated Universal Time) https://supportcenter.devexpress.com/ticket/details/e1971/wpf-comboboxedit-create-a-checked-combobox

@amman

star

Tue Nov 21 2023 18:30:57 GMT+0000 (Coordinated Universal Time)

@marcopinero #javascript

star

Tue Nov 21 2023 18:26:52 GMT+0000 (Coordinated Universal Time)

@marcopinero #sql

star

Tue Nov 21 2023 18:25:25 GMT+0000 (Coordinated Universal Time)

@marcopinero #javascript

star

Tue Nov 21 2023 16:56:26 GMT+0000 (Coordinated Universal Time)

@yolobotoffender

star

Tue Nov 21 2023 16:38:03 GMT+0000 (Coordinated Universal Time)

@yolobotoffender

star

Tue Nov 21 2023 15:38:27 GMT+0000 (Coordinated Universal Time)

@merol007

star

Tue Nov 21 2023 13:07:28 GMT+0000 (Coordinated Universal Time) https://www.beleaftechnologies.com/token-development-company

@Gracesparkle

star

Tue Nov 21 2023 12:51:21 GMT+0000 (Coordinated Universal Time)

@Mehdiiiiiii7

star

Tue Nov 21 2023 12:39:45 GMT+0000 (Coordinated Universal Time)

@pika8oo #python #algos

star

Tue Nov 21 2023 12:07:50 GMT+0000 (Coordinated Universal Time)

@Annie #jquery

star

Tue Nov 21 2023 10:42:09 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:40:04 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:38:38 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:37:42 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:36:12 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:09:34 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:08:25 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:07:23 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:06:07 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:05:24 GMT+0000 (Coordinated Universal Time)

@gshailesh27 ##multiselect ##jqueryfilter ##jquerycardfilter

star

Tue Nov 21 2023 10:04:59 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:03:56 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:02:34 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 10:01:16 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 09:59:02 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 09:58:08 GMT+0000 (Coordinated Universal Time)

@odesign

star

Tue Nov 21 2023 09:46:31 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 09:14:21 GMT+0000 (Coordinated Universal Time)

@GlassFlow #nats

star

Tue Nov 21 2023 09:13:11 GMT+0000 (Coordinated Universal Time)

@GlassFlow #nats

star

Tue Nov 21 2023 09:11:39 GMT+0000 (Coordinated Universal Time)

@GlassFlow

star

Tue Nov 21 2023 09:10:36 GMT+0000 (Coordinated Universal Time)

@GlassFlow #yaml

Save snippets that work with our extensions

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