Snippets Collections
Run CMD as admin and copy/paste:

taskkill /im msedge.exe /f
reg delete "HKCU\Software\Policies\Microsoft\Edge" /f
reg delete "HKLM\Software\Policies\Microsoft\Edge" /f
//let winW = $(window).width();
let winW = window.innerWidth;

if (winW >= 1025) {
          
}
const testObj = {
  name: 'David',
  movie: 'fight club',
  active: true,
};

const testObj2 = {
  name: 'kevin',
  movie: 'Bladerunner',
  active: false,
};



function getData(...args) {
  args.forEach(({name, movie}) => {
    console.log({name, movie});
  });
}



function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '') {
        return;
    }

    //Type appropriate comment here, and begin script below
    var pattern = /^[(]?(\d{3})[)]?[-|\s]?(\d{3})[-|\s]?(\d{4})$/;

    if (!pattern.test(newValue)) {
        alert('Phone enter a valid phone number');
        g_form.setValue('variable_name', '');
    }
}
for /R %f IN (*.mkv) DO ffmpeg -i "%f" -c copy "%~nf.mp4"
Note: Single-state adapter.
Note: Uses the mt7921au chipset.
Note: Uses the standard Mediatek device ID (VID/PID) for the mt7921au chipset: ID 0e8d:7961
Note: Oldest LTS kernel that supports this adapter: kernel 6.1
>================================<
>=====>  EDUP EP-AX1672 <=======<
>================================<
@Override
public List<Cliente> orderedByBubbleSortName() {
        List<Cliente> clientes = findAll();
        int n = clientes.size();
        boolean swapped;
        for (int i = 0; i < n - 1; i++) {
            swapped = false;
            for (int j = 0; j < n - i - 1; j++) {
                if (clientes.get(j).getNome().compareToIgnoreCase(clientes.get(j + 1).getNome()) > 0) {
                    Cliente temp = clientes.get(j);
                    clientes.set(j, clientes.get(j + 1));
                    clientes.set(j + 1, temp);
                    swapped = true;
                }
            }
            if (!swapped) {
                break;
            }
        }
        return clientes;
    }
 @Override
    public Cliente save(Cliente cliente) {
        String query = "INSERT INTO clientes (nome, email, senha, pagamento) VALUES (?, ?, ?, ?)";
        try (PreparedStatement stmt = connection.prepareStatement(query, Statement.RETURN_GENERATED_KEYS)) {
            stmt.setString(1, cliente.getNome());
            stmt.setString(2, cliente.getEmail());
            stmt.setString(3, cliente.getSenha());
            stmt.setString(4, cliente.getPagamento().toString());
            stmt.executeUpdate();

            ResultSet rs = stmt.getGeneratedKeys();
            if (rs.next()) {
                cliente.setId(rs.getInt(1));
            }
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return cliente;
    }
SELECT i.SubscriberKey
	,i.EmailAddress
	,i.System_Language__c
	,i.Mailing_Country__c
	,i.First_Name__c
	,i.Cat_Campaign_Most_Recent__c
	,i.Business_Unit__c
	,i.System_Opt_in_for_eMail__c
	,i.DateAdded
	,i.PCCReg
FROM [Test_Retail_TA_News_2024_INCLUDE] i
WHERE 1 = 1
    AND NOT EXISTS (
        SELECT NULL
        FROM [Test_Retail_TA_News_2024_EXCLUDE] ex
        WHERE 1 = 1
            AND i.SubscriberKey = ex.SubscriberKey
    )
    
 
SELECT a.SubscriberKey,
       a.reason
FROM (
        SELECT s.SubscriberKey,
            'Undeliverable' as reason
        FROM ENT._Subscribers s
        JOIN Test_Retail_TA_News_2024_INCLUDE c on c.SubscriberKey = s.SubscriberKey
        WHERE 1 = 1
            AND s.status in ('held', 'bounced', 'unsubscribe', 'unsubscribed')
            AND s.SubscriberKey IN (
                SELECT x.SubscriberKey
                FROM [Test_Retail_TA_News_2024_INCLUDE] x
                WHERE 1 = 1
            )
             
    ) a

    
UNION ALL
SELECT a.SubscriberKey,
       a.reason
FROM (
        SELECT b.SubscriberKey,  
              'Dealer Exclusion' as reason
        FROM [Test_Retail_TA_News_2024_INCLUDE] b
        WHERE 1 = 1
            AND LOWER(
                RIGHT (
                    b.EmailAddress,
                    LEN(b.EmailAddress) - CHARINDEX('@', b.EmailAddress)
                )
            ) IN (
                SELECT LOWER(x.Domain)
                FROM ent.[Dealer Domains] x
            )
    ) a
UNION ALL
SELECT a.SubscriberKey,
       a.reason
FROM (
        SELECT b.SubscriberKey,
            'Hard bounce DE' as reason
        FROM [Test_Retail_TA_News_2024_INCLUDE] b
        WHERE 1 = 1
            AND b.SubscriberKey IN (
                SELECT x.SubscriberKey
                FROM ent.[Hard Bounces - Exclusion] x
            )
    ) a
UNION ALL
SELECT a.SubscriberKey,
       a.reason
FROM (
        SELECT b.SubscriberKey,
            'Cat Agency Exclusion' as reason
        FROM [Test_Retail_TA_News_2024_INCLUDE] b
        WHERE 1 = 1
            AND LOWER(
                RIGHT (
                    b.EmailAddress,
                    LEN(b.EmailAddress) - CHARINDEX('@', b.EmailAddress)
                )
            ) IN (
                SELECT LOWER(x.Domain)
                FROM ent.[Cat_Agency_Domains] x
            )
    ) a
UNION ALL
SELECT a.SubscriberKey,
       a.reason
FROM (
        SELECT b.SubscriberKey,
            'Competitor Exclusion' as reason
        FROM [Test_Retail_TA_News_2024_INCLUDE] b
        WHERE 1 = 1
            AND LOWER(
                RIGHT (
                    b.EmailAddress,
                    LEN(b.EmailAddress) - CHARINDEX('@', b.EmailAddress)
                )
            ) IN (
                SELECT LOWER(x.Domain)
                FROM ent.[Competitor Domains] x
            )
    ) a 
    
    UNION ALL
SELECT a.SubscriberKey,
       a.reason
FROM (
        SELECT b.SubscriberKey,
            'AMC Status' as reason
        FROM [Test_Retail_TA_News_2024_INCLUDE] b
        WHERE 1 = 1
         AND   b.AMC_Status__c IN ('Inactive', 'Expired')
    ) a 

       UNION ALL
SELECT a.SubscriberKey,
       a.reason
FROM (
        SELECT b.SubscriberKey,
            'AMC Not Marketable' as reason
        FROM [Test_Retail_TA_News_2024_INCLUDE] b
        WHERE 1 = 1
         AND   b.AMC_Last_Activity_Record_ID__c LIKE 'Not Marketable' 
         AND (b.AMC_Status__c LIKE 'Active' OR b.AMC_Status__c IS NULL)
    ) a 
SELECT 
c.ID as SubscriberKey,
i.Cat_Campaign_Most_Recent__c,
i.Email__c as EmailAddress,
i.ID as Interaction_ID,
i.CreatedDate,
i.First_Name__c,
i.Last_Name__c,
i.Business_Phone__c,
i.Company_Name__c,
i.Mailing_Country__c,
i.Mailing_Zip_Postal_Code__c,
i.Purchase_Timeframe__c,
i.Level_of_Interest__c,
i.System_Opt_in_for_eMail__c,
i.Contact_Source_Details_Most_Recent__c,
i.System_Language__c,
i.Industry__c,
i.Industry_Level_2_Master__c,
i.Job_Role__c,
i.Serial_Number__c,
i.Ci_Fleet_Size__c,
i.Business_Unit__c,
c.AMC_Status__c,
c.AMC_Last_Activity_Record_ID__c

FROM ent.interaction__c_salesforce i
JOIN ent.Contact_Salesforce_1 c ON c.Email = i.Email__c
WHERE i.Email__c IS NOT NULL
AND (i.System_Language__c LIKE 'en_%' OR i.System_Language__c IS NULL)
AND (i.Mailing_Country__c = 'US' OR i.Mailing_Country__c = 'CA')
AND (i.Mailing_State_Province__c NOT LIKE 'QC' OR i.Mailing_State_Province__c IS NULL)
AND i.Business_Unit__c IN  (
    'CISD',
    'GASD',
    'Product Support',
    'PS'
    )
AND i.Cat_Campaign_Most_Recent__c NOT IN (
'PCC eNews',
'OHTE Offers',
'Mid America Trucking Show',
'Product Support On-Highway Legacy Engines Initiate Dealer',
'Million Miler',
'Iron Planet Auction - On Highway Legacy Machine',
'Product_Support_ECommerce_Contact',
'Iron Planet Auction - On Highway Legacy Engine',
'EP Spec Sizer Nurture',
'Parts.cat.com Account Registration',
'EP General Nurture',
'Drivecat.com - Mini Survey',
'OHTE Independent Shop Sweepstakes',
'Product Support Million Miler',
'OHTE Trucking Is Life eNews'
)

AND i.Id IN (
    SELECT max(i2.Id)
    FROM ent.interaction__c_salesforce i2
    GROUP BY i2.Email__c
)




int gcd(int a,int b){
  if(a==0 || b==0) return (a+b);
  else if(a>=b) return gcd(a-b,b);
  else return gcd(a,b-a);
}
var checkbox = document.getElementById("some-checkbox");
checkbox.indeterminate = true;
# Visualize the distribution of sentiment values
import matplotlib.pyplot as plt
import seaborn as sns

# Set the style of the visualization
sns.set(style='whitegrid')

# Create a histogram of the sentiment values
plt.figure(figsize=(10, 6))
sns.histplot(df['sentiment'], bins=30, kde=True, color='blue')
plt.title('Distribution of Sentiment Values')
plt.xlabel('Sentiment')
plt.ylabel('Frequency')
plt.show()
$ youtube-dl --write-description --write-info-json --write-annotations --write-sub --write-thumbnail https://www.youtube.com/watch?v=7E-cwdnsiow
# Perform sentiment analysis on the tweets and plot the results
from textblob import TextBlob
import matplotlib.pyplot as plt
import seaborn as sns

# Function to get the sentiment polarity

def get_sentiment(text):
    return TextBlob(text).sentiment.polarity

# Apply the function to the tweet column

df['sentiment'] = df['tweet'].apply(get_sentiment)

# Plot the sentiment distribution
plt.figure(figsize=(10, 6))
sns.histplot(df['sentiment'], bins=30, kde=True)
plt.title('Sentiment Distribution of Tweets')
plt.xlabel('Sentiment Polarity')
plt.ylabel('Frequency')
plt.show()

print('Sentiment analysis and plot completed.')
# This code will plot the frequency of hate speech over the index of the dataset.

import pandas as pd
import matplotlib.pyplot as plt

# Load the data
df = pd.read_csv('train new.csv')

# Plot the frequency of hate speech over the index of the dataset
plt.figure(figsize=(12, 6))
plt.plot(df.index, df['hate_speech_count'], label='Hate Speech Count')
plt.xlabel('Index (Proxy for Time)')
plt.ylabel('Hate Speech Count')
plt.title('Frequency of Hate Speech Over Time')
plt.legend()
plt.show()
//{ Driver Code Starts
#include <bits/stdc++.h> 
using namespace std; 

// } Driver Code Ends

class Solution
{   
    public:
    //Function to rotate matrix anticlockwise by 90 degrees.
    void rotateby90(vector<vector<int> >& matrix, int n) 
    { 
        for(int i=0;i<n;i++){
            reverse(matrix[i].begin(),matrix[i].end());
        }
        for(int i=0;i<n;i++){
            for(int j=i;j<n;j++){
                swap(matrix[i][j],matrix[j][i]);
            }
        }
    } 
};


//{ Driver Code Starts.
int main() {
    int t;
    cin>>t;
    
    while(t--) 
    {
        int n;
        cin>>n;
        vector<vector<int> > matrix(n); 

        for(int i=0; i<n; i++)
        {
            matrix[i].assign(n, 0);
            for( int j=0; j<n; j++)
            {
                cin>>matrix[i][j];
            }
        }

        Solution ob;
        ob.rotateby90(matrix, n);
        for (int i = 0; i < n; ++i)
            for (int j = 0; j < n; ++j)
                cout<<matrix[i][j]<<" ";
        cout<<endl;
    }
    return 0;
}
// } Driver Code Ends
JedisCluster only supports SCAN commands with MATCH patterns containing hash-tags ( curly-brackets enclosed strings )
class A:
    def method(self):
        print("A's method called")     
class B(A):
    def method(self):
        print("B's method called")
        super().method()       
class C(A):
    def method(self):
        print("C's method called")
        super().method()
       
class D(B, C):
    def method(self):
        print("D's method called")
        super().method()   
d = D()
d.method()
import re

# read phone number from user
phone_number = input("Enter your phone number: ")

# validate phone number using regex
if re.match(r'^\d{10}$', phone_number):
    print("Phone number is valid.")
else:
    print("Phone number is invalid.")

# read email ID from user
email_id = input("Enter your email ID: ")

# validate email ID using regex
if re.match(r'^[a-zA-Z0-9]+@[a-zA-Z0-9]+\.[a-zA-Z]{2,}$', email_id):
    print("Email ID is valid.")
else:
    print("Email ID is invalid.")

import turtle
t=turtle.Turtle()
def draw_point(t,point):
      t.dot(20)


point=t.goto(0,0)
draw_point(t,point)
import turtle

t=turtle.Turtle()


def draw_rectangle(t,w,h,size,color,fill):
      t.begin_fill()
      t.pensize(size)
      #t.shapesize(5,5,5)
      t.pencolor(color)
      t.fillcolor(fill)
      t.fd(w)
      t.rt(90)
      t.fd(h)
      t.rt(90)
      t.fd(w)
      t.rt(90)
      t.fd(h)
      turtle.bgcolor("yellow")
     
      t.end_fill()
      
draw_rectangle(t,200,100,5,"blue","green")
turtle.done()
Develop a cutting-edge cryptocurrency exchange app with advanced trading functionalities and real-time market data. Our team offers full customization, API integration, and compliance with regulatory standards for a secure trading experience.

import turtle
class Circle:
    def __init__(self, x, y, radius):
        self.x = x
        self.y = y
        self.radius = radius
    def __str__(self):
     return "Circle at ({self.x}, {self.y}) with radius {self.radius}"
def draw_circles(circles):
      t = turtle.Turtle()
      
      
      for circle in circles:
        t.goto(circle.x, circle.y)
        
        t.circle(circle.radius)
        
     
# Create some Circle objects
c1 = Circle(0, 0, 75)
c2 = Circle(10, 10, 100)
c3 = Circle(50,50,200)

# Draw the circles on a canvas
draw_circles([c1, c2, c3])
$response = $client->post('https://login.salesforce.com/services/oauth2/token', [
    'form_params' => [
        'grant_type' => 'password',
        'client_id' => env('SALESFORCE_CLIENT_ID'),
        'client_secret' => env('SALESFORCE_CLIENT_SECRET'),
        'username' => env('SALESFORCE_USERNAME'),
        'password' => env('SALESFORCE_PASSWORD') . env('SALESFORCE_SECURITY_TOKEN'),
    ],
]);
import pandas as pd

dict_data = {
    'users': ['user_123', 'user_abc'],
    'tasks': ['test1', 'test2']
}

df = pd.DataFrame.from_dict(dict_data)
df.to_html('out.html')
import pandas as pd

dict_data = {
    'users': ['user_123', 'user_abc'],
    'tasks': ['test1', 'test2']
}

df = pd.DataFrame.from_dict(dict_data)
df.to_pickle('out.pkl')

# read pkl file
print(pd.read_pickle('out.pkl'))
bool f(int ind,int target,vector<int>& nums,vector<vector<int>>& dp)
  {
      if(dp[ind][target]!=-1)
      return dp[ind][target];
      if(target==0)return true;
      if(ind==0)return (nums[0]==target);
      bool nottake = f(ind-1,target,nums,dp);
      bool take=false;
      if(target>=nums[ind])
       take = f(ind-1,target-nums[ind],nums,dp);
      return dp[ind][target]=(take || nottake);
  }
    bool isSubsetSum(vector<int>arr, int sum){
        // code here
        
        int n = arr.size();
        vector<vector<int>> dp(n,vector<int>(sum+1,-1));
        return f(n-1,sum,arr,dp);
    }
Foreach ($1 in gci -recurse -name C:\folders_to_scan\) {$1 = "C:\folders_to_scan\" + $1 ; C:\trid_path\trid.exe $1} >> trid_output.txt
//chat-support component
//HTML
<div id="assistant">
  // Button to open the chat support popup
  <button id="assistant-popup-button" (click)="openSupportPopup()">
    Chat Support?
  </button>
  
  // Popup container for chat support, visibility controlled by isOpen property
  <div id="assistant-popup" [style.display]="isOpen ? 'block' : 'none'">
    
    // Header section of the popup with a close button
    <div id="assistant-popup-header">
      Your friendly Assistant
      
      // Button to close the chat support popup
      <button id="assistant-popup-close-button" (click)="openSupportPopup()">
       X
      </button>
    </div>
    
    // Body of the popup containing chat messages
    <div id="assistant-popup-body">
      <div class="messages" #scrollMe>
        
        // Loop through messages array to display each message
        <div *ngFor="let message of messages" class="message">
          // Display message with a specific class based on message type
          <div [class]="message.type">
            {{ message.message }}
          </div>
        </div>
        
        // Display a loading indicator if messages are being loaded
        <div
          *ngIf="loading"
          class="message"
          style="width: 100%; display: block"
        >
          <div [class]="'client'">...</div>
        </div>
      </div>
    </div>
    
    // Footer of the popup containing the input form for new messages
    <form id="assistant-popup-footer" [formGroup]="chatForm">
      // Input field for typing new messages, bound to chatForm control
      <input
        formControlName="message"
        type="text"
        id="assistant-popup-input"
        placeholder="Type your message here..."
      />
      
      // Submit button for sending new messages, disabled if form is invalid
      <button
        id="assistant-popup-submit-button"
        [disabled]="!chatForm.valid"
        (click)="sendMessage()"
      >
        Submit
      </button>
    </form>
  </div>
</div>

//TS
import { Component, ViewChild } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { MessageService } from '../service/api.service';

export interface Message {
  type: string;
  message: string;
}

@Component({
  selector: 'app-chat-support',
  templateUrl: './chat-support.component.html',
  styleUrls: ['./chat-support.component.scss'],
})
export class ChatSupportComponent {
  isOpen = false; //Variable to toggle chat interface visibility
  loading = false; //Indicates if a message is being sent/loading
  messages: Message[] = []; //Array to store chat messages
  chatForm = new FormGroup({
    message: new FormControl('', [Validators.required]), // Input field for user message
  });
  @ViewChild('scrollMe') private myScrollContainer: any;

  constructor(private messageService: MessageService) {
  }
  // Function to open or close the chat interface
  openSupportPopup() {
    this.isOpen = !this.isOpen;
  }
  // Function to send a user message to the Rasa chatbot
  sendMessage() {
    const sentMessage = this.chatForm.value.message!;
    this.loading = true;
    // Add user message to the messages array
    this.messages.push({
      type: 'user',
      message: sentMessage,
    });
    this.chatForm.reset();
    this.scrollToBottom();
    
 //Send user message to Rasa chatbot backend via messageService
    this.messageService.sendMessage(sentMessage).subscribe((response: any) => {
      for (const obj of response) {
        let value
        // Check if the response has a 'text' property
        if (obj.hasOwnProperty('text') ) {
          value = obj['text']
          this.pushMessage(value) //Add the text response to the messages array

        }
        // Check if the response has an 'image' property
        if (obj.hasOwnProperty('image') ) {
          value = obj['image']
          this.pushMessage(value) //Add the image response to the messages array
        }
      }
    });
  }

//Function to add a client message (bot response) to the messages array
  pushMessage(message:string){
     this.messages.push({
        type: 'client',
        message: message,
      });
      this.scrollToBottom();//Scroll to the bottom of the chat container
  }

  //Function to scroll to the bottom of the chat container
  scrollToBottom() {
    setTimeout(() => {
      try {
 // Set the scrollTop property to the maximum scroll height
        this.myScrollContainer.nativeElement.scrollTop =
          this.myScrollContainer.nativeElement.scrollHeight + 500;
      } catch (err) {}
    }, 150);
  }
}

//SCSS
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
#assistant {
  font-family: "Roboto", sans-serif;
  #assistant-popup-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    z-index: 1000;
  }

  #assistant-popup {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 450px;
    height: 50vh;
    min-height: 450px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    z-index: 1000;
    display: none;
    #assistant-popup-header {
      background-color: #333;
      color: white;
      font-size: 18px;
      padding: 10px;
      border-top-left-radius: 5px;
      border-top-right-radius: 5px;
      #assistant-popup-close-button {
        float: right;
        border: none;
        background-color: transparent;
        color: #fff;
        font-size: 14px;
        cursor: pointer;
      }
    }

    #assistant-popup-body {
      height: calc(100% - 133px);
      padding: 10px;
    }

    #assistant-popup-footer {
      background-color: #333;
      color: white;
      font-size: 14px;
      padding: 10px;
      border-bottom-left-radius: 5px;
      border-bottom-right-radius: 5px;
      #assistant-popup-input {
        width: 100%;
        padding: 10px;
        border: 1px solid #fff;
        border-radius: 5px 5px 0 0;
        box-sizing: border-box;
        font-size: 14px;
      }

      #assistant-popup-submit-button {
        width: 100%;
        padding: 10px;
        background-color: #2ca1da;
        color: #fff;
        border: none;
        border-radius: 0 0 5px 5px;
        cursor: pointer;
        font-size: 14px;
      }
    }

    .messages {
      height: 100%;
      overflow: auto;
      .message {
        display: flow-root;
        width: 100%;
        .client {
          background-color: #d7d7d7;
          color: #333;
          padding: 10px;
          border-radius: 5px;
          margin-bottom: 10px;
          display: inline-block;
          max-width: 80%;
        }

        .user {
          border: 0.5px solid #333;
          background-color: #85ff7a;
          color: #333;
          padding: 10px;
          border-radius: 5px;
          margin-bottom: 10px;
          display: inline-block;
          max-width: 80%;
          text-align: right;
          float: right;
        }
      }
    }
  }
}


//API service
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';

@Injectable({
  providedIn: 'root',
})
export class MessageService {
  constructor(private http: HttpClient) {}
  
// Function to send a message to the Rasa chatbot backend
  sendMessage(message: string) {
//Make a POST request to the Rasa chatbot webhook endpoint
    return this.http.post('http://localhost:5005/webhooks/rest/webhook', { message: message });
  }
}

//APP component
//HTML
<router-outlet></router-outlet>
<app-chat-support></app-chat-support>

//Module ts
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ChatSupportComponent } from './assistant/chat-support.component'

@NgModule({
  declarations: [AppComponent, ChatSupportComponent],
  imports: [
    BrowserModule,
    AppRoutingModule,
    HttpClientModule,
    FormsModule,
    ReactiveFormsModule,
  ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}
import pandas as pd

# All arrays must be of the same length
dict_data = {
    'users': [{'name': 'test'}, {'name': '123'}], 
    'tasks': [{'name': 'test123'}, {'name': '45456'}]
}

df = pd.DataFrame.from_dict(dict_data)
df.to_json('out.json', indent = 4)
from random import randint
from faker import Faker
from datetime import date
import pandas as pd

f = Faker()

s_date = date(2018, 5, 1)
e_date = date(2018, 5, 30)

dict_data = {'date': [], 'email': [], 'money': []}

for _date in pd.date_range(start = s_date, end = e_date):
    dict_data['date'].append(_date)
    dict_data['email'].append(f.email())
    dict_data['money'].append(randint(1, 100) * 0.99)

df = pd.DataFrame.from_dict(dict_data)
df.to_csv('out.csv', index = 0)
//{ Driver Code Starts
// Initial Template for C++

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

// } Driver Code Ends
// User function Template for C++

class Solution {
  public:
    vector<vector<int>> sortedMatrix(int N, vector<vector<int>> Mat) {
        // code here
        vector<int> v;
        for(int i=0;i<N;i++){
            for(int j=0;j<N;j++){
                v.push_back(Mat[i][j]);
            }
        }
        sort(v.begin(),v.end());
        vector<vector<int>> sorted(N);
        for(int i=0;i<v.size();i++){
            sorted[i/N].push_back(v[i]);
        }
        return sorted;
    }
};

//{ Driver Code Starts.

int main() {
    int t;
    cin >> t;
    while (t--) {
        int N;
        cin >> N;
        vector<vector<int>> v(N, vector<int>(N));
        for (int i = 0; i < N; i++)
            for (int j = 0; j < N; j++) cin >> v[i][j];
        Solution ob;
        v = ob.sortedMatrix(N, v);
        for (int i = 0; i < N; i++) {
            for (int j = 0; j < N; j++) cout << v[i][j] << " ";
            cout << "\n";
        }
    }
}
// } Driver Code Ends
for /R /D %I IN (*.*) DO TRID "%I\*" ce
star

Thu Jun 20 2024 07:15:40 GMT+0000 (Coordinated Universal Time) https://www.elevenforum.com/t/my-personal-pc-shows-edge-browser-managed-by-my-organization-why.16062/

@Curable1600 #windows #browsers

star

Thu Jun 20 2024 07:05:22 GMT+0000 (Coordinated Universal Time)

@divyasoni23 #jquery

star

Thu Jun 20 2024 05:58:52 GMT+0000 (Coordinated Universal Time)

@davidmchale #functions #...args

star

Thu Jun 20 2024 03:20:59 GMT+0000 (Coordinated Universal Time) https://gist.github.com/jamesmacwhite/58aebfe4a82bb8d645a797a1ba975132

@baamn #batch #ffmpeg #cmd

star

Wed Jun 19 2024 23:35:32 GMT+0000 (Coordinated Universal Time) https://262.ecma-international.org/5.1/#sec-15.7.3.2

@curtisbarry

star

Wed Jun 19 2024 23:35:29 GMT+0000 (Coordinated Universal Time) https://262.ecma-international.org/5.1/#sec-15.7.3.2

@curtisbarry

star

Wed Jun 19 2024 23:35:19 GMT+0000 (Coordinated Universal Time) https://262.ecma-international.org/5.1/#sec-15.7.3.2

@curtisbarry

star

Wed Jun 19 2024 23:35:02 GMT+0000 (Coordinated Universal Time) https://262.ecma-international.org/5.1/#sec-15.7.3.2

@curtisbarry

star

Wed Jun 19 2024 23:34:58 GMT+0000 (Coordinated Universal Time) https://262.ecma-international.org/5.1/#sec-15.7.3.2

@curtisbarry

star

Wed Jun 19 2024 23:34:55 GMT+0000 (Coordinated Universal Time) https://262.ecma-international.org/5.1/#sec-15.7.3.2

@curtisbarry

star

Wed Jun 19 2024 23:34:53 GMT+0000 (Coordinated Universal Time) https://262.ecma-international.org/5.1/#sec-15.7.3.2

@curtisbarry

star

Wed Jun 19 2024 23:34:46 GMT+0000 (Coordinated Universal Time) https://262.ecma-international.org/5.1/#sec-15.7.3.2

@curtisbarry

star

Wed Jun 19 2024 23:34:42 GMT+0000 (Coordinated Universal Time) https://262.ecma-international.org/5.1/#sec-15.7.3.2

@curtisbarry

star

Wed Jun 19 2024 23:34:37 GMT+0000 (Coordinated Universal Time) https://262.ecma-international.org/5.1/#sec-15.7.3.2

@curtisbarry

star

Wed Jun 19 2024 22:51:20 GMT+0000 (Coordinated Universal Time) https://github.com/morrownr/USB-WiFi/blob/main/home/USB_WiFi_Adapters_that_are_supported_with_Linux_in-kernel_drivers.md

@curtisbarry

star

Wed Jun 19 2024 22:51:08 GMT+0000 (Coordinated Universal Time) https://github.com/morrownr/USB-WiFi/blob/main/home/USB_WiFi_Adapters_that_are_supported_with_Linux_in-kernel_drivers.md

@curtisbarry

star

Wed Jun 19 2024 22:49:09 GMT+0000 (Coordinated Universal Time) https://github.com/morrownr/USB-WiFi/blob/main/home/USB_WiFi_Adapters_that_are_supported_with_Linux_in-kernel_drivers.md

@curtisbarry

star

Wed Jun 19 2024 22:49:02 GMT+0000 (Coordinated Universal Time) https://github.com/morrownr/USB-WiFi/blob/main/home/USB_WiFi_Adapters_that_are_supported_with_Linux_in-kernel_drivers.md

@curtisbarry

star

Wed Jun 19 2024 22:48:56 GMT+0000 (Coordinated Universal Time) https://github.com/morrownr/USB-WiFi/blob/main/home/USB_WiFi_Adapters_that_are_supported_with_Linux_in-kernel_drivers.md

@curtisbarry

star

Wed Jun 19 2024 18:36:46 GMT+0000 (Coordinated Universal Time)

@gabriellesoares

star

Wed Jun 19 2024 18:04:50 GMT+0000 (Coordinated Universal Time)

@gabriellesoares

star

Wed Jun 19 2024 17:37:02 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Wed Jun 19 2024 17:36:31 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Wed Jun 19 2024 17:35:58 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Wed Jun 19 2024 17:07:30 GMT+0000 (Coordinated Universal Time) https://drive.google.com/drive/folders/1chtRQXbiSUDuN2m5qR3qJNneydRYvWPg?usp=sharing

@Ayesha452

star

Wed Jun 19 2024 15:38:46 GMT+0000 (Coordinated Universal Time)

@Xeno_SSY #c++

star

Wed Jun 19 2024 15:36:58 GMT+0000 (Coordinated Universal Time) https://css-tricks.com/almanac/selectors/i/indeterminate/

@eliranbaron102 #javascript

star

Wed Jun 19 2024 14:53:13 GMT+0000 (Coordinated Universal Time)

@EbadulHaque #python

star

Wed Jun 19 2024 14:50:12 GMT+0000 (Coordinated Universal Time) https://ostechnix.com/youtube-dl-tutorial-with-examples-for-beginners/

@baamn #youtube-dl #video #download #youtube

star

Wed Jun 19 2024 14:49:06 GMT+0000 (Coordinated Universal Time)

@EbadulHaque #python

star

Wed Jun 19 2024 14:39:54 GMT+0000 (Coordinated Universal Time)

@EbadulHaque #python

star

Wed Jun 19 2024 13:09:33 GMT+0000 (Coordinated Universal Time)

@Xeno_SSY #c++

star

Wed Jun 19 2024 12:47:06 GMT+0000 (Coordinated Universal Time)

@manhmd #java

star

Wed Jun 19 2024 10:35:22 GMT+0000 (Coordinated Universal Time)

@pvignesh

star

Wed Jun 19 2024 10:34:49 GMT+0000 (Coordinated Universal Time)

@pvignesh

star

Wed Jun 19 2024 10:34:24 GMT+0000 (Coordinated Universal Time)

@pvignesh

star

Wed Jun 19 2024 10:33:52 GMT+0000 (Coordinated Universal Time)

@pvignesh

star

Wed Jun 19 2024 09:49:58 GMT+0000 (Coordinated Universal Time) https://www.blockchainappfactory.com/cryptocurrency-exchange-software

@auroragrace #cryptoexchange #cryptoexchangedevelopment

star

Wed Jun 19 2024 09:36:01 GMT+0000 (Coordinated Universal Time)

@pvignesh

star

Wed Jun 19 2024 09:04:29 GMT+0000 (Coordinated Universal Time) https://chatgpt.com/

@yjoshi.techark

star

Wed Jun 19 2024 08:38:45 GMT+0000 (Coordinated Universal Time)

@ayushg103 #c++

star

Wed Jun 19 2024 08:32:13 GMT+0000 (Coordinated Universal Time) https://mark0.net/forum/index.php?topic

@baamn

star

Wed Jun 19 2024 08:28:51 GMT+0000 (Coordinated Universal Time)

@iamkatmakhafola

star

Wed Jun 19 2024 08:17:23 GMT+0000 (Coordinated Universal Time)

@Xeno_SSY #c++

star

Wed Jun 19 2024 08:09:21 GMT+0000 (Coordinated Universal Time) https://www.reddit.com/r/commandline/comments/17beywz/parse_through_all_subdirectories_and_run_a_exe_on/?rdt

@baamn #batch #file #trid

Save snippets that work with our extensions

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