Snippets Collections
/**
We want to change the grid repeat() depending on the items in a grid
where repeat(4, 1fr) are dynamic values we can change in JS using setProperty()
note: setProperty(property-name, value)
*/

// our html = we add a data-grid attribure to show the grid number
<div class="qld-compare_page__courses" data-grid></div>

// our css
.courses{
  	//repeat(4, 1fr); replace with 2 new css variables, and a fallback
  	// in this case var(--compare-col-count) has a fallback of 4 
   repeat(var(--compare-col-count, 4), var(--compare-col-width, 205px));
}

// JS function

function adjustGrid(number) { // number will the dynamic value that changes
  	// get the parent to which the grid willl be appplied
    const parentGrid = document.querySelector(".qld-compare_page__courses");

 	 // if element exists
     if (parentGrid) { 
      // set the grid attribute in the html to the number value in the param
      parentGrid.dataset.grid = `courses-${number}`; 
	  // now we are using the set Property to get the var give it the number value
      parentGrid.style.setProperty("--compare-col-count", number);

       switch (number) { // if numbers 1, 2, 3 or 4 is reached then do your thing!
            case 1:
           // here we are using setProperty() to target that css var, and apply value
            parentGrid.style.setProperty("--compare-col-width", "minmax(205px, 230px)");
            break;
           
            case 2:
			// here we are using setProperty() to target that css var, and apply value
            parentGrid.style.setProperty("--compare-col-width", "minmax(205px, 249px)");
            break;

            case 3:
			// here we are using setProperty() to target that css var, and apply value
            parentGrid.style.setProperty("--compare-col-width", "minmax(205px, 1fr)");
            break;

           	case 4:
			// here we are using setProperty() to target that css var, and apply value
         	parentGrid.style.setProperty("--compare-col-width", "minmax(205px, 1fr)");
            break;
           
                default:
                parentGrid.style.setProperty("--compare-col-width", "205px");
                break;
            }
        }
    }



	//use local storage for the  number we want
  adjustGrid(JSON.parse(localStorage.getItem("courses") || "[]").length);




// the css starter
// note we are resetting the --compare-col-count
 &__courses {
      display: grid;
      grid-template-columns: clamp(120px, 39vw, 180px) repeat(var(--compare-col-count, 4), var(--compare-col-width, 205px));
      grid-template-rows: repeat(2, 1fr) repeat(6, 90px) repeat(1, 1fr);
      z-index: 1;
      column-gap: 1.6rem;


// NEXT SEE: CONVERT setProperty with CSS variables to object and functions
<!-------- Fareharbor Lightframe -------->
<script src="https://fareharbor.com/embeds/api/v1/?autolightframe=yes"></script>
<a href="https://fareharbor.com/embeds/book/autocaresdavid/?full-items=yes" style="-webkit-transform: rotate(0deg) !important;margin-top: 22em !important;  padding: .3em 2em !important; font-family:Aeonik, sans-serif !important; border:2px solid #000000 !important; text-decoration:none !important; font-weight: 700 !important; font-size:1.2em !important; box-shadow:none !important; border-radius: 56px !important;" class="fh-lang fh-fixed--side fh-button-1 fh-hide--desktop fh-size--small fh-button-true-flat-white fh-shape--round fh-color--black">Reserva ahora</a>


Imagine the thrill of building your financial empire without the constraints of a suit or the frenzy of Wall Street. 

	Well, the cryptocurrency exchange script could be your golden ticket to achieving that dream.

	Instead of countless hours of coding an exchange from scratch or spending a fortune on a developer, you can opt for a ready-made cryptocurrency exchange script. This allows you to set up your crypto trading platform quickly.

	It’s hassle-free so connect easily. Customize and start profiting while others dive into the trading frenzy!

Increase in demand
A growing wave of individuals is diving into the crypto market. Indicating that a large group of traders looking for a reliable crypto exchange

Endless possibilities for profits
From transaction fees to withdrawal fees and staking options, you are on the verge of creating your digital wealth!

No coding nightmares
Pre-build cryptocurrency exchange script take the burden off your shoulders. Allows you to save time, reduces stress, and avoids any existential crises.

	Why be satisfied with just watching the fluctuations in Bitcoin prices? Dive in and reap the benefits!

	Start your crypto exchange and get an exciting crypto wave of success.

	Who knows? In a few years, people might be talking about your crypto exchange in forums like this!
      
Website: https://www.trioangle.com/cryptocurrency-exchange-script/ 
WhatsApp us: +91 9361357439
Email us: sales@innblockchain.com
header {
  position: sticky; 
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center; 
 }
#!/usr/bin/env python3

"""
Extract responses from a HAR file, which can be exported by browser dev tools.
Files are written for URLs that match a certain regular expression.
"""
# XXX: Warning - Quick best effort script, i.e. no proper error handling.


import re
import sys
import json
import base64
import argparse

from typing import Dict, Iterator, Tuple, Optional


def parse_har_log(filename: str) -> Iterator[Tuple[Dict, Dict]]:
    with open(filename, "r") as fp:
        har = json.load(fp)
    if not isinstance(har, dict) or \
            "log" not in har or not isinstance(har["log"], dict)\
            or "entries" not in har["log"] or not isinstance(har["log"]["entries"], list):
        raise ValueError(f"No/invalid log entries in {filename}")
    yield from ((_["request"], _["response"]) for _ in har["log"]["entries"])


def match_request(request: Dict, url_rx: re.Pattern) -> bool:
    return "url" in request and isinstance(request["url"], str) and url_rx.match(request["url"]) is not None


def match_response(response: Dict) -> bool:
    return "status" in response and isinstance(response["status"], int) and response["status"] == 200


def dump_response(response: Dict, filename: str) -> bool:
    if "content" in response and isinstance(response["content"], dict):
        content: Dict = response["content"]
        if "text" in content and isinstance(content["text"], str):
            if "encoding" not in content:
                data: bytes = content["text"].encode("utf-8")
            elif isinstance(content["encoding"], str) and content["encoding"] == "base64":
                data = base64.b64decode(content["text"])
            else:
                return False
            try:
                with open(filename, "wb") as fp:
                    fp.write(data)
                    return True
            except OSError:
                return False
    return False


def main() -> int:
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("--url", type=str, default=None,
                        help="regular expression for the request url, no response content dump otherwise")
    parser.add_argument("file", metavar="archive.har",
                        help="http archive file to process")

    args = parser.parse_args()
    filename: str = args.file
    url_rx: Optional[re.Pattern] = re.compile(args.url) if args.url is not None else None

    for request, response in parse_har_log(filename):
        url: str = request["url"]
        fn: str = re.sub('[^a-zA-Z0-9_-]', '_', url)
        if url_rx is not None and match_request(request, url_rx) and match_response(response):
            if dump_response(response, fn):
                print(f"DUMP: {url}")
            else:
                print(f"FAIL: {url}")
        else:
            print(f"SKIP: {url}")

    return 0


if __name__ == "__main__":
    sys.exit(main())
### **Python Programming Basics for Beginners**
 
 
 
**Role:** You are an expert Python programming tutor. Your goal is to guide students through a personalized, step-by-step learning journey, helping them grasp essential Python programming concepts, particularly if they are beginners. The learning experience should be interactive, goal-driven, and completed within 3-4 hours. Follow the structured steps below, ensuring you introduce each concept progressively to avoid overwhelming the student by presenting everything at once.
 
 
 
**Session Outline:**
 
 
 
#### **0\. Initial Setup and Orientation**
 
 
 
**0.1 Google Colab Setup**
 
 
 
- **Step 1:** Introduce Google Colab and explain its purpose.
 
- **Step 2:** Guide the student through setting up a Google Colab notebook.
 
- **Step 3:** Explain how to write and run Python code in Colab.
 
 
 
**Interactive Checkpoint:** Have the student write and run a simple "Hello, World!" program. Provide immediate feedback before moving on.
 
 
 
---
 
 
 
#### **1\. Initial Assessment and Goal Setting**
 
 
 
**1.1 Student Assessment**
 
 
 
- **Step 1:** Ask the student about their experience with Python, including:
 
  - Variables and Data Types
 
  - Loops and Functions
 
- **Step 2:** Discuss their learning goals and any specific areas of interest.
 
 
 
**1.2 Goal Setting**
 
 
 
- **Step 1:** Based on the assessment, set a personalized learning goal:
 
  - **For Beginners:** Focus on Python basics and simple coding exercises.
 
  - **For Intermediate Students:** Emphasize more complex data manipulations or problem-solving.
 
- **Step 2:** Create and share a step-by-step learning plan tailored to their needs.
 
 
 
**Note:** Confirm the student's background and goals before proceeding to the next section.
 
 
 
---
 
 
 
#### **2\. Python Fundamentals**
 
 
 
**2.1 Core Concepts**
 
 
 
- **Step 1:** Introduce basic Python concepts one by one:
 
  - Variables and Data Types
 
  - Basic operations
 
- **Step 2:** Provide a small coding challenge after each concept, ensuring the student understands before moving to the next.
 
 
 
**Interactive Checkpoint:** Have the student write code to declare variables of different types and perform basic operations. Provide feedback and clarify any misunderstandings.
 
 
 
---
 
 
 
#### **3\. Control Flow: Lists, Loops, and Functions**
 
 
 
**3.1 Lists and Loops**
 
 
 
- **Step 1:** Introduce lists, explaining their structure and use.
 
- **Step 2:** Guide the student in writing simple loops to iterate over lists.
 
 
 
**3.2 Functions**
 
 
 
- **Step 1:** Explain the concept of functions and their importance in Python.
 
- **Step 2:** Walk the student through writing their own functions.
 
 
 
**3.3 Interactive Coding**
 
 
 
- **Step 1:** Encourage the student to write their own code for loops and functions.
 
- **Step 2:** Offer guidance as needed, providing hints or partial code.
 
 
 
**Interactive Checkpoint:** After completing loops and functions, present a problem for the student to solve using these concepts. Review their solution and offer feedback.
 
 
 
---
 
 
 
#### **4\. Object-Oriented Programming (OOP) and Classes**
 
 
 
**4.1 Introduction to Classes and Objects**
 
 
 
- **Step 1:** Explain the concept of Object-Oriented Programming (OOP) and its benefits.
 
- **Step 2:** Introduce classes and objects, using simple examples.
 
 
 
**4.2 Creating and Using Classes**
 
 
 
- **Step 1:** Walk the student through creating a class with attributes and methods.
 
- **Step 2:** Demonstrate how to create objects from the class and use its methods.
 
 
 
**Interactive Checkpoint:** Have the student create a simple class and use it in a short program. Provide feedback and correct any issues.
 
 
 
---
 
 
 
#### **5\. Error Handling and Debugging**
 
 
 
**5.1 Introduction to Error Handling**
 
 
 
- **Step 1:** Explain common types of errors in Python and the importance of handling them gracefully.
 
- **Step 2:** Introduce try, except, and finally blocks for error handling.
 
 
 
**5.2 Practical Error Handling**
 
 
 
- **Step 1:** Guide the student through writing code that includes error handling.
 
- **Step 2:** Discuss strategies for debugging and finding errors in code.
 
 
 
**Interactive Checkpoint:** Provide a buggy code snippet for the student to debug. Review their approach and offer guidance as needed.
 
 
 
---
 
 
 
#### **6\. File Handling and Data Input/Output**
 
 
 
**6.1 Reading from and Writing to Files**
 
 
 
- **Step 1:** Introduce file operations, explaining how to read from and write to files in Python.
 
- **Step 2:** Demonstrate reading data from a file and processing it.
 
 
 
**Interactive Checkpoint:** Have the student write a program to read a file and perform a simple task, such as counting lines. Review their work and provide feedback.
 
 
 
---
 
 
 
#### **7\. Practical Application Project**
 
 
 
**7.1 Hands-On Project**
 
 
 
- **Step 1:** Introduce a hands-on project, such as a simple text analysis.
 
- **Step 2:** Guide the student step by step in tasks like counting word occurrences or analyzing data patterns.
 
 
 
**Interactive Experimentation:** Encourage the student to experiment with the code, making modifications to observe different results. Provide feedback on their approach and reasoning after each step.
 
 
 
---
 
 
 
#### **8\. Reflection, Q&A, and Next Steps**
 
 
 
**8.1 Reflection**
 
 
 
- **Step 1:** Encourage the student to reflect on what they've learned.
 
- **Step 2:** Discuss any areas they found challenging and what they'd like to explore further.
 
 
 
**8.2 Interactive Discussion**
 
 
 
- **Step 1:** Facilitate a Q&A session where the student can ask questions or seek clarification on any topic.
 
 
 
**8.3 Next Steps**
 
 
 
- **Step 1:** Suggest further resources or topics for continued learning.
 
- **Step 2:** Provide a clear action plan for the student's continued learning journey.
 
 
 
---
 
 
 
**Session Guidelines:**
 
 
 
1. **Interactive Learning:**
 
   - Encourage the student to code as much as possible by themselves.
 
   - Provide hints, but do not give direct answers. Allow the student to struggle a bit before offering more guidance.
 
   - Confirm understanding before moving to the next step.
 
 
 
2. **Time Management:**
 
   - Ensure the session stays within the 3-4 hour timeframe.
 
   - Adjust the pace and depth based on the student's progress.
 
 
 
3. **Continuous Feedback:**
 
   - Offer regular feedback on the student's code and understanding.
 
   - Address any questions or difficulties the student encounters.
 
 
 
4. **Expectations After Pasting the Prompt** 
 
  - Clear instructions on what students should expect after pasting the prompt into ChatGPT, such as assessment, coding exercises, problem-solving, and feedback loops.
 
 
 
Now, let's start with the first step and guide you through getting started. Remember, always confirm your understanding by asking questions or proposing exercises to ensure you're comfortable before moving on.
https://community.dynamics.com/blogs/post/?postid=be407572-9096-47a7-af67-5d9b0f0d4894
Want to launch a profitable gambling business? Addus Technologies is a trusted Casino Gambling Game Development Company offering casino games, Lucky Draw games, and sports betting software. As a Casino Gambling Game Development Company, Addus helps business people, entrepreneurs, and investors start their gambling businesses with innovative solutions.
#include <iostream>
#include <vector>
using namespace std;
 
int main() 
{
  int n1, n2, i1=0, i2=0;
  
  cin >> n1;
  int a[n1];
  for(int i = 0; i < n1; ++i)
    cin >> a[i];
    
  cin >> n2;
  int b[n2];
  for(int i = 0; i < n2; ++i)
    cin >> b[i];
    
  vector<int> answer;
    
  while(i1 < n1 && i2 < n2)
  {
    if(a[i1] < b[i2])
    {
      answer.push_back(a[i1]);
      ++i1;
    }
    else if(a[i1] > b[i2])
    {
      answer.push_back(b[i2]);
      ++i2;
    }
  }
  
  while(i1 < n1)
  {
    answer.push_back(a[i1]);
    ++i1;
  }
  
  while(i2 < n2)
  {
    answer.push_back(b[i2]);
    ++i2;
  }
  
  for(int num : answer)
    cout << num << " ";
  
  return 0;
}
#include <iostream>
using namespace std;

void PrintArray(int a[], int n)
{
  for(int i = 0; i < n; ++i)
    cout << a[i] << " ";
}

int main() 
{
  int n, p1 = 0, p2 = 0;
  cin >> n;
  
  int a[n];
  for(int i = 0; i < n; ++i)
    cin >> a[i];
  
  while(p2 < n)
  {
    if(a[p2] % 2 == 0)
    {
      swap(a[p1], a[p2]);
      ++p1;
    }
    ++p2;
  }
  
  PrintArray(a, n);
  
  return 0;
}
@RestController
public class EventProducerController {
    private final KafkaTemplate<String, String> kafkaTemplate;
    @Autowired
    public EventProducerController(KafkaTemplate<String, String> kafkaTemplate) {
        this.kafkaTemplate = kafkaTemplate;
    }
    @GetMapping("/message/{message}")
    public String trigger(@PathVariable String message) {
        kafkaTemplate.send("messageTopic", message);
        return "Hello, Your message has been published: " + message;
    }
}
const req = await fetch(
    "http://localhost:3000/api/auth/signin", {
      method: "POST",
      header:{
        'Accept':'application/json',
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        username:myusername,
        password:mypassword
      })
    },
    
  )
HTTP 500 - error - {"success":true,"message":""}


Unzip the PrestaShop installation package and find the /prestashop folder.
Open /app/AppKernel.php file in a text editor.
Locate the getContainerClearCacheLockPath function.
Replace the existing code with the following:


protected function getContainerClearCacheLockPath(): string
{
    $class = $this->getContainerClass();
    $cacheDir = sys_get_temp_dir(); //$this->getCacheDir();

    return sprintf('%s/%s.php.cache_clear.lock', $cacheDir, $class);
}

Important: Revert After Installation


### **Python Programming Basics for Beginners**



**Role:** You are an expert Python programming tutor. Your goal is to guide students through a personalized, step-by-step learning journey, helping them grasp essential Python programming concepts, particularly if they are beginners. The learning experience should be interactive, goal-driven, and completed within 3-4 hours. Follow the structured steps below, ensuring you introduce each concept progressively to avoid overwhelming the student by presenting everything at once.



**Session Outline:**



#### **0\. Initial Setup and Orientation**



**0.1 Google Colab Setup**



- **Step 1:** Introduce Google Colab and explain its purpose.

- **Step 2:** Guide the student through setting up a Google Colab notebook.

- **Step 3:** Explain how to write and run Python code in Colab.



**Interactive Checkpoint:** Have the student write and run a simple "Hello, World!" program. Provide immediate feedback before moving on.



---



#### **1\. Initial Assessment and Goal Setting**



**1.1 Student Assessment**



- **Step 1:** Ask the student about their experience with Python, including:

  - Variables and Data Types

  - Loops and Functions

- **Step 2:** Discuss their learning goals and any specific areas of interest.



**1.2 Goal Setting**



- **Step 1:** Based on the assessment, set a personalized learning goal:

  - **For Beginners:** Focus on Python basics and simple coding exercises.

  - **For Intermediate Students:** Emphasize more complex data manipulations or problem-solving.

- **Step 2:** Create and share a step-by-step learning plan tailored to their needs.



**Note:** Confirm the student's background and goals before proceeding to the next section.



---



#### **2\. Python Fundamentals**



**2.1 Core Concepts**



- **Step 1:** Introduce basic Python concepts one by one:

  - Variables and Data Types

  - Basic operations

- **Step 2:** Provide a small coding challenge after each concept, ensuring the student understands before moving to the next.



**Interactive Checkpoint:** Have the student write code to declare variables of different types and perform basic operations. Provide feedback and clarify any misunderstandings.



---



#### **3\. Control Flow: Lists, Loops, and Functions**



**3.1 Lists and Loops**



- **Step 1:** Introduce lists, explaining their structure and use.

- **Step 2:** Guide the student in writing simple loops to iterate over lists.



**3.2 Functions**



- **Step 1:** Explain the concept of functions and their importance in Python.

- **Step 2:** Walk the student through writing their own functions.



**3.3 Interactive Coding**



- **Step 1:** Encourage the student to write their own code for loops and functions.

- **Step 2:** Offer guidance as needed, providing hints or partial code.



**Interactive Checkpoint:** After completing loops and functions, present a problem for the student to solve using these concepts. Review their solution and offer feedback.



---



#### **4\. Object-Oriented Programming (OOP) and Classes**



**4.1 Introduction to Classes and Objects**



- **Step 1:** Explain the concept of Object-Oriented Programming (OOP) and its benefits.

- **Step 2:** Introduce classes and objects, using simple examples.



**4.2 Creating and Using Classes**



- **Step 1:** Walk the student through creating a class with attributes and methods.

- **Step 2:** Demonstrate how to create objects from the class and use its methods.



**Interactive Checkpoint:** Have the student create a simple class and use it in a short program. Provide feedback and correct any issues.



---



#### **5\. Error Handling and Debugging**



**5.1 Introduction to Error Handling**



- **Step 1:** Explain common types of errors in Python and the importance of handling them gracefully.

- **Step 2:** Introduce try, except, and finally blocks for error handling.



**5.2 Practical Error Handling**



- **Step 1:** Guide the student through writing code that includes error handling.

- **Step 2:** Discuss strategies for debugging and finding errors in code.



**Interactive Checkpoint:** Provide a buggy code snippet for the student to debug. Review their approach and offer guidance as needed.



---



#### **6\. File Handling and Data Input/Output**



**6.1 Reading from and Writing to Files**



- **Step 1:** Introduce file operations, explaining how to read from and write to files in Python.

- **Step 2:** Demonstrate reading data from a file and processing it.



**Interactive Checkpoint:** Have the student write a program to read a file and perform a simple task, such as counting lines. Review their work and provide feedback.



---



#### **7\. Practical Application Project**



**7.1 Hands-On Project**



- **Step 1:** Introduce a hands-on project, such as a simple text analysis.

- **Step 2:** Guide the student step by step in tasks like counting word occurrences or analyzing data patterns.



**Interactive Experimentation:** Encourage the student to experiment with the code, making modifications to observe different results. Provide feedback on their approach and reasoning after each step.



---



#### **8\. Reflection, Q&A, and Next Steps**



**8.1 Reflection**



- **Step 1:** Encourage the student to reflect on what they've learned.

- **Step 2:** Discuss any areas they found challenging and what they'd like to explore further.



**8.2 Interactive Discussion**



- **Step 1:** Facilitate a Q&A session where the student can ask questions or seek clarification on any topic.



**8.3 Next Steps**



- **Step 1:** Suggest further resources or topics for continued learning.

- **Step 2:** Provide a clear action plan for the student's continued learning journey.



---



**Session Guidelines:**



1. **Interactive Learning:**

   - Encourage the student to code as much as possible by themselves.

   - Provide hints, but do not give direct answers. Allow the student to struggle a bit before offering more guidance.

   - Confirm understanding before moving to the next step.



2. **Time Management:**

   - Ensure the session stays within the 3-4 hour timeframe.

   - Adjust the pace and depth based on the student's progress.



3. **Continuous Feedback:**

   - Offer regular feedback on the student's code and understanding.

   - Address any questions or difficulties the student encounters.



4. **Expectations After Pasting the Prompt** 

  - Clear instructions on what students should expect after pasting the prompt into ChatGPT, such as assessment, coding exercises, problem-solving, and feedback loops.



Now, let's start with the first step and guide you through getting started. Remember, always confirm your understanding by asking questions or proposing exercises to ensure you're comfortable before moving on.
using System.Drawing.Drawing2D;

namespace CtrlCPopup {
    public partial class PopupForm : Form {
        private int targetY;
        private const int slideSpeed = 15;

        private System.Windows.Forms.Timer timerSlide;
        private System.Windows.Forms.Timer timerClose;

        private const int cornerRadius = 20;

        private static PopupForm currentPopup;

        public PopupForm() {
            InitializeForm();
        }

        private void InitializeForm() {
            this.StartPosition = FormStartPosition.Manual;
            this.FormBorderStyle = FormBorderStyle.None;
            this.BackColor = SystemAccentColorHelper.GetAccentColor();
            this.Size = new Size(180, 100);
            this.TopMost = true;
            this.ShowInTaskbar = false;

            Label lblMessage = new Label();
            lblMessage.Text = "Copied!";
            lblMessage.AutoSize = true;
            lblMessage.Font = new Font("Segoe UI", 20, FontStyle.Regular);
            lblMessage.ForeColor = Color.White;
            lblMessage.Location = new Point(33, 32);
            this.Controls.Add(lblMessage);

            timerSlide = new System.Windows.Forms.Timer();
            timerSlide.Interval = 10;
            timerSlide.Tick += TimerSlide_Tick;

            timerClose = new System.Windows.Forms.Timer();
            timerClose.Interval = 3000; //* 3 seconds auto-close
            timerClose.Tick += TimerClose_Tick;

            ApplyRoundedCorners();
        }

        private void ApplyRoundedCorners() {
            GraphicsPath path = new GraphicsPath();
            Rectangle bounds = new Rectangle(0, 0, this.Width, this.Height);

            path.AddArc(bounds.X, bounds.Y, cornerRadius * 2, cornerRadius * 2, 180, 90); // Top-left
            path.AddArc(bounds.Right - cornerRadius * 2, bounds.Y, cornerRadius * 2, cornerRadius * 2, 270, 90); // Top-right
            path.AddArc(bounds.Right - cornerRadius * 2, bounds.Bottom - cornerRadius * 2, cornerRadius * 2, cornerRadius * 2, 0, 90); // Bottom-right
            path.AddArc(bounds.X, bounds.Bottom - cornerRadius * 2, cornerRadius * 2, cornerRadius * 2, 90, 90); // Bottom-left
            path.CloseFigure();

            this.Region = new Region(path);
        }

        public void ShowPopup() {
            //! Close any existing popup
            if (currentPopup != null && !currentPopup.IsDisposed) {
                currentPopup.Close();
            }

            this.Left = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2;
            this.Top = Screen.PrimaryScreen.WorkingArea.Height;
            targetY = Screen.PrimaryScreen.WorkingArea.Height - this.Height - 20; // 20 pixels from the bottom

            this.Show();
            timerSlide.Start();
            timerClose.Start();

            currentPopup = this;
        }

        private void TimerSlide_Tick(object sender, EventArgs e) {
            if (this.Top > targetY) {
                this.Top -= slideSpeed;
            }
            else {
                timerSlide.Stop();
            }
        }

        private void TimerClose_Tick(object sender, EventArgs e) {
            this.Close();
        }
    }
}
<p>Struggling with complex equations or challenging math problems? MyAssignmenthelp offers expert Mathematics Assignment Help https://myassignmenthelp.com/uk/mathematics-assignment-help.html to simplify your academic journey. From algebra to calculus, our professionals provide accurate solutions tailored to your needs. Get timely and affordable assistance to achieve academic excellence.</p>
#include <iostream>
using namespace std;

void InsertionSort(int a[], int n)
{
  for(int i = 1; i < n; ++i)
  {
    int key = a[i];
    int j = i-1;
    
    while(j >= 0 && key < a[j])
    {
      a[j+1] = a[j];
      --j;
    }
    
    a[j+1] = key;
  }
}

int main() 
{
  int n;
  cin >> n;
  
  int a[n];
  for(int i = 0; i < n; ++i)
  {
    cin >> a[i];
    a[i] *= a[i];
  }
  
  InsertionSort(a, n);
  
  for(int i = 0; i < n; ++i)
  {
    cout << a[i] << " ";
  }
  
  return 0;
}
#include <iostream>
#include <vector>
#include <unordered_map>
#include <algorithm>
using namespace std;

int main() 
{
  int n; 
  cin >> n;
  
  vector<int> a(n), b(n);
  unordered_map<int, int> rankMap;
  
  for(int i = 0; i < n; ++i)
  {
    cin >> a[i];
    b[i] = a[i];
  }
  
  sort(b.begin(), b.end());
  
  for(int i = 0; i < n; ++i)
  {
    rankMap[b[i]] = i+1;
  }
  
  for(int i = 0; i < n; ++i)
  {
    cout << rankMap[a[i]] << " ";
  }
  
  return 0;
}
import React, { useState, useRef } from 'react';

const UploadFolderModal = ({ disableBackgroundClose = true }) => {
  const [active, setActive] = useState(false);
  const [folderName, setFolderName] = useState('');
  const [fileList, setFileList] = useState([]);
  const [uploadProgress, setUploadProgress] = useState({});
  const dropArea = useRef(null);
  const fileInput = useRef(null);

  const handleDrop = (e) => {
    e.preventDefault();
    e.stopPropagation();
    dropArea.current.classList.remove('dragging');

    const items = e.dataTransfer.items;
    if (items.length > 0) {
      const folder = items[0].webkitGetAsEntry();
      if (folder?.isDirectory) {
        handleFolder(folder);
      } else {
        alert('Please drop a folder!');
      }
    }
  };

  const handleFolder = async (folder, parentPath = '') => {
    setFolderName(folder.name || 'Root');

    const reader = folder.createReader();
    const entries = await readEntries(reader);

    for (const entry of entries) {
      if (entry.isFile) {
        const file = await new Promise((resolve) => entry.file(resolve));
        setFileList((prevFileList) => [
          ...prevFileList,
          { name: file.name, size: file.size, type: file.type, folderPath: parentPath },
        ]);
      } else if (entry.isDirectory) {
        await handleFolder(entry, `${parentPath}/${entry.name}`);
      }
    }

    if (fileList.length > 0) startUpload();
  };

  const readEntries = (reader) => new Promise((resolve, reject) => {
    reader.readEntries(resolve, reject);
  });

  const uploadFileToS3 = (file, index) => {
    const formData = new FormData();
    formData.append('file', file);

    return new Promise((resolve, reject) => {
      const xhr = new XMLHttpRequest();
      xhr.open('POST', '/api/v1/upload', true);

      xhr.upload.onprogress = (e) => {
        if (e.lengthComputable) {
          const percent = (e.loaded / e.total) * 100;
          setUploadProgress((prevProgress) => ({
            ...prevProgress,
            [index]: Math.round(percent),
          }));
        }
      };

      xhr.onload = () => xhr.status === 200 ? resolve(JSON.parse(xhr.responseText).fileUrl) : reject('Error uploading file');
      xhr.onerror = () => reject('Error uploading file');
      xhr.send(formData);
    });
  };

  const handleFileSelect = (e) => {
    const files = Array.from(e.target.files).map((file) => ({
      name: file.name,
      size: file.size,
      type: file.type,
      folderPath: 'Root',
    }));
    setFileList(files);
  };

  const startUpload = async () => {
    for (let i = 0; i < fileList.length; i++) {
      await uploadFileToS3(fileList[i], i);
    }
  };

  const closeModal = () => {
    setActive(false);
    setTimeout(() => {}, 200);
  };

  const handleDragOver = (e) => {
    e.preventDefault();
    e.stopPropagation();
    dropArea.current.classList.add('dragging');
  };

  const handleDragLeave = (e) => {
    e.preventDefault();
    e.stopPropagation();
    dropArea.current.classList.remove('dragging');
  };

  return (
    <div className={`wrap-upload-modal${active ? ' active' : ''}`}>
      <div className="wrap-modal d-flex align-items-center justify-content-center">
        <div className="wrap-content">
          <div className="body-modal">
            <div
              ref={dropArea}
              className="wrap-area-drop"
              onDrop={handleDrop}
              onDragOver={handleDragOver}
              onDragLeave={handleDragLeave}
            >
              <p className="text-center main">Kéo và thả thư mục vào đây để lấy thông tin và các tệp bên trong</p>
              <p className="text-center sub">Chỉ thả thư mục vào đây</p>
            </div>
            <div className="text-center">
              <button onClick={() => fileInput.current.click()} className="btn btn-primary">Tải tệp lên</button>
              <input ref={fileInput} type="file" multiple onChange={handleFileSelect} style={{ display: 'none' }} />
            </div>
            <div className="text-center">
              <button onClick={startUpload} className="btn btn-success mt-3">Bắt đầu tải lên</button>
            </div>
          </div>
          <div className="footer-modal">
            <div><strong>Folder Name:</strong> {folderName}</div>
            <div><strong>List of Files:</strong>
              {fileList.length > 0 ? (
                fileList.map((file, index) => (
                  <div key={index}>
                    {file.name} - {file.size} bytes - {file.type} - <strong> Folder: {file.folderPath}</strong>
                    <div>
                      <progress value={uploadProgress[index] || 0} max={100}></progress>
                      <span>{uploadProgress[index] ? `${uploadProgress[index]}%` : 'Đang chờ'}</span>
                    </div>
                  </div>
                ))
              ) : (
                <p>No files to display</p>
              )}
            </div>
          </div>
        </div>
      </div>
    </div>
  );
};

export default UploadFolderModal;
Launch a secure and scalable cryptocurrency exchange with advanced trading features and high liquidity. Build a robust platform with seamless transactions and top-tier security

Email id : sales@opris.exchange
Phone number : +91 99942 48706
Choosing the right rummy game development company involves evaluating various key factors to ensure a high-quality, captivating, and user-friendly gaming experience. Look for a company that understands your vision and offers customization options to tailor the game to your specific requirements and target audience.

It’s important to assess their technical expertise in areas such as security, scalability, and platform compatibility. Make sure they provide customizable solutions to meet your unique needs. Additionally, prioritize companies that offer ongoing support and updates to keep your game competitive in the ever-evolving gaming market.

Partner with Maticz, a leading rummy game development company. With their experienced game developers, they specialize in creating customized solutions for web and mobile multiplayer rummy games tailored to your vision.

posts = list()
result = client.tiktok_user_posts_from_username(
    username="zachking",
    depth=1,
)
posts.extend(result.data["data"])
next_cursor = result.get("nextCursor")

if next_cursor is not None:
    result = client.tiktok_user_posts_from_username(
        username="zachking",
        depth=5,
        cursor=next_cursor,
    )
    posts.extend(result.data["data"])

print("Posts:", len(posts))
result = client.tiktok_user_posts_from_username(
    username="zachking",
    depth=1,
    alternative_method=True,
)
result = client.tiktok.user_info_from_username(
    username="zachking"
)
result = client.tiktok.user_info_from_secuid(
    sec_uid="MS4wLjABAAA..."
)

user = result.data["user"]
print("Username:", user["unique_id"])
print("Nickname:", user["nickname"])
print("Followers:", user["follower_count"])
print("Posts:", user["aweme_count"])
print("Likes:", user["total_favorited"])
result = client.tiktok.user_liked_posts(
    sec_uid="MS4wLjABAAA...",
)
posts = result.data["liked_posts"]
next_cursor = result.data.get("nextCursor")
result = client.tiktok.user_followers(
    id="6784819479778378757",
    sec_uid="MS4wLjABAAAAQ45...",
)

followers = result.data["followers"]
follower_count = result.data["total"]
next_cursor = result.data["nextCursor"]
result = client.tiktok.user_followings(
    id="6784819479778378757",
    sec_uid="MS4wLjABAAAAQ45...",
)

followers = result.data["followings"]
follower_count = result.data["total"]
next_cursor = result.data.get("nextCursor")
next_page_token = result.data.get("nextPageToken")
result = client.tiktok.user_followings(
    id="6784819479778378757",
    sec_uid="MS4wLjABAAAAQ45...",
    cursor=next_cursor,
    page_token=next_page_token,
)

next_cursor = result.data.get("nextCursor")
next_page_token = result.data.get("nextPageToken")
result = client.tiktok.multi_post_info(
    aweme_ids=[
        "7210531475052236078", 
        "7102806710334606597", 
        "710280671033460623434597"
    ],
)
posts = result["data"]
from ensemble.api import EDClient

client = EDClient("API_TOKEN")
result = client.tiktok.post_comments(aweme_id="6849400000000")

comments = result.data["comments"]
next_cursor = result.data("nextCursor")

print("Comments fetched:", len(comments))
print("Total comments:", result.data["total"])
Comments fetched: 30
Total comments: 136
comment = comments[0]
user = comment["user"]

print("=== First comment ===")
print("comment_id:", comment["cid"]) # We'll need this for fetching replies!
print("timestamp:", comment["create_time"])
print("text:", comment["text"])
print("likes:", comment["digg_count"])
print("replies:", comment["reply_comment_count"])
print("username:", user["unique_id"])
print("sec_uid:", user["sec_uid"])
print("user_id:", user["uid"])
from tensorflow.keras import layers, models, Input

# Define input layer explicitly
input_layer = Input(shape=(2,))  # Explicit input layer


# Instantiate the model.
linear_1d_model = tf.keras.Sequential()

linear_1d_model.add(input_layer)

# Add the normalization layer.
linear_1d_model.add(hp_normalizer)

# Add the single neuron.
linear_1d_model.add(Dense(1, input_shape=(1,)))

# Display the model summary.
linear_1d_model.summary()
Public Sub WatchRecordsetInExcel(rst As ADODB.Recordset)
    Dim objExcel
    Dim objWorkbook
    Dim objWorksheet
    Dim i As Long
    
    Set objExcel = CreateObject("Excel.Application")
    Set objWorkbook = objExcel.Workbooks.Add
    Set objWorksheet = objWorkbook.Worksheets("Sheet1")
    
    objExcel.visible = True
    
    With objWorksheet
        For i = 0 To rst.Fields.Count - 1
            objWorksheet.Range("A1").Offset(0, i).value = rst.Fields(i).Name
        Next i
        objWorksheet.Range("A2").CopyFromRecordset rst
    End With
    
    Set objWorksheet = Nothing
    Set objWorkbook = Nothing
    Set objExcel = Nothing
End Sub
#include <iostream>
#include <queue>
using namespace std;
 
int main() 
{
  int n, k;
  cin >> n >> k;
  
  int a[n];
  for(int i = 0; i < n; ++i)
  {
    cin >> a[i];
  }
  
  for(int i = 1; i < n; ++i)
  {
    int key = a[i];
    int j = i-1;
    
    while(j >= max(0, i-k) && a[j] > key)
    {
      a[j+1] = a[j];
      --j;
    }
    a[j+1] = key;
  }
  
  for(int i = 0; i < n; ++i)
  {
    cout << a[i] << " ";
  }
  
  return 0;
}
#include <iostream>
using namespace std;

void InsertionSort(int a[], int size)
{
  for(int i = 1; i < size; ++i)
  {
    int key = a[i];
    int j = i-1;
    
    while(j >= 0 && a[j] > key)
    {
      a[j+1] = a[j];
      --j;
    }
    
    a[j+1] = key;
  }
}

void PrintArray(int a[], int size)
{
  for(int i = 0; i < size; ++i)
  {
    cout << a[i] << " ";
  }
  cout << "\n";
}

int main() 
{
  int tc;
  cin >> tc;
  
  while(tc--)
  {
    int n, m;
    cin >> n; cin >> m;
    if(n-m < 0)
    {
      cout << "Invalid input!";
      break;
    }
    int a[n];
  
    for(int i = 0; i < n; ++i)
    {
      cin >> a[i];
    }
    
    InsertionSort(a, n);
    
    int num = n-m, maxSum = 0, minSum = 0;
    
    for(int i = 0; i < num; ++i)
      minSum += a[i];
      
    for(int i = n-1; i >= m; --i)
      maxSum += a[i];
      
    cout << maxSum - minSum << "\n";
  }
  
  return 0;
}
#include <iostream>
using namespace std;

int InsertionSort(int a[], int size)
{
  int numberOfSwaps = 0;
  
  for(int i = 1; i < size; ++i)
  {
    int key = a[i];
    int j = i-1;
    
    while(j >= 0 && a[j] > key)
    {
      a[j+1] = a[j];
      --j;
      ++numberOfSwaps;
    }
    
    a[j+1] = key;
  }
  
  return numberOfSwaps;
}

void PrintArray(int a[], int size)
{
  for(int i = 0; i < size; ++i)
  {
    cout << a[i] << " ";
  }
  cout << "\n";
}

int main() 
{
  int n;
  cin >> n;
  int a[n];
  
  for(int i = 0; i < n; ++i)
  {
    cin >> a[i];
  }
  
  cout << InsertionSort(a, n);
  
  return 0;
}
rish -c /data/data/com.termux/files/usr/bin/bash
sudo ./gohttpserver -r / --port 80 --upload --delete
[{"1":"Specification"},{"1":"Dimensions","2":"1000mm x 1430mm"}]
{% assign file = page.metafields.custom.files.value %}
{% if file %}
 {% for image in file %}
  <img src="{{ image | img_url: 'master'}}" max-width='100%' display='block'>
 {% endfor %}
{% endif %}
{% style %}
img {
  display: block;
  max-width: 100%;
  margin: auto !important;
}
{% endstyle %}
star

Thu Feb 20 2025 00:46:19 GMT+0000 (Coordinated Universal Time)

@davidmchale #setproperty #cssvariables

star

Wed Feb 19 2025 17:54:05 GMT+0000 (Coordinated Universal Time) /hacking.com

@wrigd8449@wrdsb #hacking

star

Wed Feb 19 2025 16:58:38 GMT+0000 (Coordinated Universal Time) https://www.thiscodeworks.com/user/wrigd8449@wrdsb

@wrigd8449@wrdsb #hacking

star

Wed Feb 19 2025 16:07:14 GMT+0000 (Coordinated Universal Time)

@Shira

star

Wed Feb 19 2025 12:32:39 GMT+0000 (Coordinated Universal Time) https://www.trioangle.com/cryptocurrency-exchange-script/

@Johnhendrick #java #javascript #django #nodejs #react.js #css

star

Wed Feb 19 2025 10:58:20 GMT+0000 (Coordinated Universal Time)

@SophieLCDZ

star

Wed Feb 19 2025 09:43:39 GMT+0000 (Coordinated Universal Time) https://www.hackitu.de/har_dump/har_dump.py.html

@rhce143

star

Wed Feb 19 2025 09:22:53 GMT+0000 (Coordinated Universal Time) https://www.coinsclone.com/cryptocurrency-exchange-development-company/

@CharleenStewar

star

Wed Feb 19 2025 09:19:22 GMT+0000 (Coordinated Universal Time)

@jak123

star

Wed Feb 19 2025 07:34:27 GMT+0000 (Coordinated Universal Time)

@MinaTimo

star

Wed Feb 19 2025 07:05:53 GMT+0000 (Coordinated Universal Time) https://myassignmenthelp.expert/case-study-assignment-help.html

@steve1997 #commandline

star

Wed Feb 19 2025 06:23:51 GMT+0000 (Coordinated Universal Time) https://www.addustechnologies.com/casino-gambling-game-development

@Seraphina

star

Wed Feb 19 2025 02:45:07 GMT+0000 (Coordinated Universal Time)

@Rohan@99

star

Wed Feb 19 2025 02:15:53 GMT+0000 (Coordinated Universal Time)

@Rohan@99

star

Tue Feb 18 2025 20:59:26 GMT+0000 (Coordinated Universal Time) https://subscription.packtpub.com/book/web-development/9781803230788

@Luciano

star

Tue Feb 18 2025 18:46:05 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/69332201/i-tried-to-request-body-json-to-node-js-using-await-fetch-the-body-is-empty

@Luciano #javascript

star

Tue Feb 18 2025 17:23:24 GMT+0000 (Coordinated Universal Time)

@caovillanueva #php

star

Tue Feb 18 2025 14:17:08 GMT+0000 (Coordinated Universal Time) https://ddls.aicell.io/post/learn-python-with-chatgpt/

@Marsel

star

Tue Feb 18 2025 10:12:22 GMT+0000 (Coordinated Universal Time) https://www.coinsclone.com/trustwallet-clone-app-development/

@CharleenStewar

star

Tue Feb 18 2025 09:40:44 GMT+0000 (Coordinated Universal Time)

@Kareem_Al_Hamwi #c#

star

Tue Feb 18 2025 07:42:36 GMT+0000 (Coordinated Universal Time) https://myassignmenthelp.com/uk/mathematics-assignment-help.html

@parkerharry0005 #assignment

star

Tue Feb 18 2025 02:52:07 GMT+0000 (Coordinated Universal Time)

@Rohan@99

star

Tue Feb 18 2025 02:33:58 GMT+0000 (Coordinated Universal Time)

@Rohan@99

star

Tue Feb 18 2025 01:53:23 GMT+0000 (Coordinated Universal Time)

@khainguyenhm

star

Mon Feb 17 2025 12:33:30 GMT+0000 (Coordinated Universal Time) https://www.opris.exchange/cryptocurrency-exchange-development/

@oprisexchange #cryptoexchange #cryptocurrency #bitcoin #binanceclone #opris

star

Mon Feb 17 2025 10:00:00 GMT+0000 (Coordinated Universal Time) https://www.coinsclone.com/white-label-crypto-wallet/

@CharleenStewar #whitelabelcryptowallet #whitelabelwallet #whitelabelsolutions #cryptowallet

star

Mon Feb 17 2025 09:19:26 GMT+0000 (Coordinated Universal Time) https://www.coinsclone.com/nft-minting-platform-development/

@Emmawoods

star

Mon Feb 17 2025 08:54:38 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:54:13 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:53:43 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:53:33 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:53:18 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:53:00 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:52:44 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:52:29 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:52:09 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:51:49 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:51:35 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:51:24 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 08:51:08 GMT+0000 (Coordinated Universal Time) https://github.com/EnsembleData/tiktok-scraper

@zerozero

star

Mon Feb 17 2025 07:17:25 GMT+0000 (Coordinated Universal Time)

@somuSan

star

Mon Feb 17 2025 07:06:28 GMT+0000 (Coordinated Universal Time)

@kAnO #vba

star

Mon Feb 17 2025 06:12:37 GMT+0000 (Coordinated Universal Time) https://www.debutinfotech.com/otc-crypto-exchange-development

@andrewthomas #otccrypto exchange development #otccrypto exchange

star

Mon Feb 17 2025 03:10:16 GMT+0000 (Coordinated Universal Time)

@Rohan@99

star

Mon Feb 17 2025 02:10:09 GMT+0000 (Coordinated Universal Time)

@Rohan@99

star

Mon Feb 17 2025 01:47:29 GMT+0000 (Coordinated Universal Time)

@Rohan@99

star

Mon Feb 17 2025 00:21:05 GMT+0000 (Coordinated Universal Time) http://172.20.10.4/data/data/com.termux/files/home/notes

@v1ral_ITS

star

Sun Feb 16 2025 20:36:03 GMT+0000 (Coordinated Universal Time) https://webforward.github.io/shopify-tables/

@procodefinder

star

Sun Feb 16 2025 20:31:58 GMT+0000 (Coordinated Universal Time)

@procodefinder

Save snippets that work with our extensions

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