799. Champagne Tower

We stack glasses in a pyramid, where the first row has 1 glass, the second row has 2 glasses, and so on until the 100th row. Each glass holds one cup of champagne. Then, some champagne is poured into the first glass at the top. When the topmost glass is full, any excess liquid poured will fall equally to the glass immediately to the left and right of it. When those glasses become full, any excess champagne will fall equally to the left and right of those glasses, and so on. (A glass at the bottom row has its excess champagne fall on the floor.) For example, after one cup of champagne is poured, the top most glass is full. After two cups of champagne are poured, the two glasses on the second row are half full. After three cups of champagne are poured, those two cups become full - there are 3 full glasses total now. After four cups of champagne are poured, the third row has the middle glass half full, and the two outside glasses are a quarter full, as pictured below. Now after pouring some non-negative integer cups of champagne, return how full the jth glass in the ith row is (both i and j are 0-indexed.)
/**
 * @param {number} poured       - Total cups of champagne poured into the top glass
 * @param {number} query_row    - Row of the target glass (0-indexed)
 * @param {number} query_glass  - Column of the target glass (0-indexed)
 * @return {number}             - Fullness of the target glass (0 to 1)
 */
var champagneTower = function(poured, query_row, query_glass) {
    // We only need up to 100 rows, so create a 2D array of zeros.
    // dp[r][c] represents the *amount of champagne that arriv

Message Hander

## Transmitter
```python
	##send message
	messageType = self.view.params.messageType
	payload={}
	payload['label'] = self.view.params.label
	scope = 'page'
	#do not edit
	payload['messageType'] = messageType
	system.perspective.sendMessage(messageType, payload, scope=scope)
	system.perspective.print("messageType: %s, scope: %s, payload: %s" % (messageType, scope, payload))
```

## Simple Transmitter
```python
	##send message
	system.perspective.sendMessage("message_type", payload={}, scope="sess

install mongodb , docker, postgress, redis in ubuntu

#!/bin/bash
# Install MongoDB, Redis, Docker, and PostgreSQL on Ubuntu
# Usage: sudo ./install-dev-services.sh

set -e

if [[ $EUID -ne 0 ]]; then
  echo "This script must be run as root (use sudo)"
  exit 1
fi

echo "==> Updating package lists..."
apt-get update -qq

# --- Docker ---
echo ""
echo "==> Installing Docker..."
apt-get install -y ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyring

Openshift Cheat Sheet

# Openshift Cheat Sheet

## Useful commands
* `oc whoami -t`: You can also get your token for the valid login (which is very useful when playing with the
RESTful API)
* `oc whoami --show-server=true`: Check which cluster you are connected to.

## Project management
* `oc projects`: List all projects
* `oc project <project-name>`: Choose a project
* `oc new-project <project-name>`: Create a new project

## Create or modify
* `oc create -f (targetFile) [--dry-run=client]`: To create an object usin

Telegram:@lazarustoolz Bank To Bank Drop Wire Logs PayPal Zelle Venmo Apple Pay Skrill WU Transfer Bug MoneyGram Transfer



Scattered Spider (and Lazarus allied group Scattered LAPSUS$ Hunters) 🌎 


VERIFIED CARDER SELLING WU,BANK,PAYPAL,CASHAPP,SKRILL TRANSFER BANK LOGS,DUMPS+PIN,CLONED CARDS

Group: https://t.me/+LE893Ma2vIwyYWNk

Telegram: @lazarustoolz SELL CCV CANADA FULLZ FRESH SSN DOB WITH DL LIVE MAIL PASSWORD OFFICE365 PAYPAL

Telegram: @lazarustoolz CVV,Fullz,Dumps,PayPal Debit/Credit Card,CashApp, Western Union, Transfer,ATM Clone Cards!!

Telegram: @lazarustoolz SELL CVV FULLZ INFO GOOD USA-UK-CA-AU-INT

3714. Longest Balanced Substring II

You are given a string s consisting only of the characters 'a', 'b', and 'c'. A substring of s is called balanced if all distinct characters in the substring appear the same number of times. Return the length of the longest balanced substring of s.
/**
 * @param {string} s
 * @return {number}
 */
var longestBalanced = function(s) {
    const n = s.length;
    let ans = 0;

    // 1) Case: only one distinct character (runs like "aaaa")
    ans = Math.max(ans, longestSingleCharRun(s));

    // 2) Case: exactly two distinct characters with equal counts, no third present
    // Pairs: (a, b), (a, c), (b, c)
    ans = Math.max(ans, longestEqualTwoChars(s, 'a', 'b', 'c'));
    ans = Math.max(ans, longestEqualTwoChars(s, 'a', 'c', 'b'));
    ans 

cloudinary_config

//dependency:
		<dependency>
			<groupId>com.cloudinary</groupId>
			<artifactId>cloudinary-http44</artifactId>
			<version>1.32.2</version>
		</dependency>
		
//entity:
@Column(name = "image", nullable = true)
private String imageUrl; // saves url

//service:
import org.springframework.stereotype.Service;

import com.cloudinary.Cloudinary;
import com.cloudinary.utils.ObjectUtils;
import org.springframework.beans.factory.annotation.Value;

@Service
public class CloudinaryService {
    private fi

Css anchor example

<!DOCTYPE html>
<html lang="cs">
<head>
    <meta charset="UTF-8">
    <title>CSS Anchor Positioning Demo 2026</title>
    <style>
        /* Pomocný styling pro demo */
        body {
            margin: 0;
            font-family: sans-serif;
        }

        section {
            height: 100vh;
            background: orange;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: whi

application.properties

# for env
spring.config.import=optional:file:.env[.properties]

# for spring project
spring.application.name=
server.port=${SPRING_PORT}

# for database
spring.datasource.url=${SPRING_DATASOURCE_URL}
spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}

spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=update
# opti

env config

#for Spring
SPRING_PORT=7070

#for DB
SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/
SPRING_DATASOURCE_USERNAME=postgres
SPRING_DATASOURCE_PASSWORD=

#for jwt
JWT_SECRET_KEY=

#for mail
SUPPORT_EMAIL=
APP_PASSWORD=

#for Cloudinary
CLOUDINARY_NAME=
CLOUDINARY_KEY=
CLOUDINARY_SECRET=

PYQGIS script - convert et export Vecteurs et WFS layers en rester (Projet Moindre Impact)

import processing
import os
import tempfile
import math
from qgis.core import (
    QgsProject,
    QgsVectorLayer,
    QgsRasterLayer,
    QgsRasterPipe,
    QgsRasterFileWriter,
    QgsProcessingFeedback,
    QgsWkbTypes
)

# ======================
# PARAMÈTRES
# ======================

output_dir = r"R:/Ingénierie et Études techniques/Documentation Interne/Etudes Projet Ingé/4 Données SIG/RASTER_QGIS_TEST"
temp_dir = r"C:\temp"

pixel_size = 3
no_data_value = 0
buffer_d

3713. Longest Balanced Substring I

You are given a string s consisting of lowercase English letters. A substring of s is called balanced if all distinct characters in the substring appear the same number of times. Return the length of the longest balanced substring of s.
/**
 * @param {string} s
 * @return {number}
 */
var longestBalanced = function(s) {
    const n = s.length;
    let maxLen = 0;

    // Try every possible starting index i
    for (let i = 0; i < n; i++) {

        // Frequency array for 'a' to 'z'
        const freq = Array(26).fill(0);

        // Expand the substring from i to j
        for (let j = i; j < n; j++) {
            const idx = s.charCodeAt(j) - 97; // map 'a'..'z' to 0..25
            freq[idx]++;

            // Check if substr

0. Welcome to Cacher

# Welcome to Cacher

We're delighted you've chosen Cacher to be your snippet organizer! Whether you're a solo developer or a member of your team, Cacher is here to help you organize and use snippets more efficiently.

Our users create snippets to:

- Remember project-specific algorithms
- Create cheatsheets for useful libraries
- Share knowledge with colleagues

Take a few minutes to look over our **Getting Started** snippets. To view more detailed information on features, you can visit [Cacher 

1. Snippets

# Snippets

Snippets can be used to remember many different pieces of information. Here are a few tips on using them in Cacher.

## Markdown

![](https://cdn.cacher.io/intro-snippets/editing-markdown.gif)

[Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) is one of the most widely used snippet types in Cacher for documentation. We've added a few enhancements to make it even more useful.

To create a Markdown snippet, simply give your snippet file a `.md` extension or c

2. Labels

# Labels

Labels let you categorize your snippets by purpose and assist in retrieving them later on. Assign nested, color-coded labels to your snippets to maximize productivity.

![](https://cdn.cacher.io/intro-snippets/creating-a-label.gif)

## Creating a label

1. In the left-hand sidebar, click the + button under **Labels**.
2. Enter a **Label Title**.
3. Pick one of the **preset colors** or enter a hex value to define a custom color.
4. Choose whether the label will be **Private**.
5. If you

3. Teams

# Teams

A team allows you and your colleagues to collaborate on a shared library of snippets and labels. They are the best way to disseminate best practices and onboard new team members.

## Team libraries

Every team has its own library, comprised of snippets and labels. Any **owner**, **member** or **manager** is able to view and contribute snippets to the library. In addition, any changes to the team library will be synced to teammates signed into Cacher.

## Starting a Team

![](https://cdn