Simplify Path

Given an absolute file path in a Unix-style file system, simplify it by converting ".." to the previous directory and removing any "." or multiple slashes. The resulting string should represent the shortest absolute path. Example: Input: path = "/a//b////c/d//././/.." Expected Output: "/a/b/c" Complexity: - Time: O(N) - Space: O(N)
function simplifyPath(path) {
    const pathArr = path.split('/')
    const n = pathArr.length
    const simplifiedPath = []

    for(let i=0; i<n; i++) {
        if(pathArr[i]==='.' || pathArr[i]==='') {
            continue
        }
        if(pathArr[i]==='..') {
            simplifiedPath.pop()
            continue
        }
        simplifiedPath.push(pathArr[i])
    }

    return `/${simplifiedPath.join('/')}`
}

Image container edge breakout

:root {
  --container-width: 700px;
  --columns: 12;
  --gap: 20px;
  --column-width: calc((var(--container-width) / var(--columns)) - var(--gap));
  --breakpoint: 46em;
}

img {
  max-width: 100%;
}


.image-edge-grid {
	margin-bottom: 2rem;
    display: grid;
    grid-gap: var(--gap);
    grid-template-columns: minmax(1em, 1fr) repeat(var(--columns), minmax(0, var(--column-width))) minmax(1em, 1fr);
    max-width: initial;
	
	
}




.image-edge-grid__img {
  grid-col

Sorting a stack

Given a stack, sort it using only stack operations (push and pop). You can use an additional temporary stack, but you may not copy the elements into any other data structure (such as an array). The values in the stack are to be sorted in descending order, with the largest elements on top. Example: Input: [34, 3, 31, 98, 92, 23] Complexity - Time: O(N2) - Space: O(N) Output: [3, 23, 31, 34, 92, 98]
function sortStack(stack) {
    let tempStack = [];

    while(stack.length) {
        const temp = stack.pop()
        while(tempStack.length && tempStack[tempStack.length - 1]>temp) {
            stack.push(tempStack.pop())
        }

        tempStack.push(temp)
        

    }

    return tempStack
}

画像を右クリックやドラッグで保存させない

<img src="assets/images/1.jpg" alt="" class="img" draggable="false" oncontextmenu="return false;" />

webGLコンテキストを破棄するサンプル

<button id="createContext">WebGLコンテキスト作成</button>
<input type="number" id="deleteNumber" min="1" value="1" />
<button id="deleteSpecific">番号を指定して削除</button>
<button id="deleteAll">全て削除</button>
<div id="canvasContainer"></div>

文字量によって自動で高さが変動するtextarea

<textarea class="auto-resize"></textarea>

Simple AI [Patrol]

using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class SmartRandomMover : MonoBehaviour
{
    [Header("Movement Settings")]
    public Transform[] targets;          // Assign points in Inspector
    public float moveSpeed = 3f;         // Speed of movement
    public float rotationSpeed = 5f;     // How fast it rotates to face target
    public float stopDistance = 0.5f;    // Distance to consider "arrived"
    public float waitTime = 1f;         

Player Continous Fire System

using UnityEngine;
using UnityEngine.InputSystem;

public class PlayerShootingAuto : MonoBehaviour
{
    [Header("Setup")]
    public GameObject bulletPrefab;
    public Transform firePoint;
    public float bulletSpeed = 20f;
    public float fireDelay = 0.3f;  // seconds between shots

    private bool isFiring = false;
    private float nextFireTime = 0f;

    // Called via Unity Event
    public void OnFire(InputAction.CallbackContext context)
    {
        if (context.perfo

clientes

inicio{
"host":"U5m7+gtVji2d8OUfCBUfluwJ0MnlCA==",
"porta":"CbyZhQEGptRObG41",
"contador":"e1Num6WG25XoF58yuifZFiiwRYcv+914nDNI57ZYQX8opvtTgHKpfsUXX+lngKGuEWTZnB3RUS03WS/UlPEg",
"spammer":"xQAIzKqmHLR3sYGuiRV33LNMw+U="
}fim

cabanova novembro scp

ainicio{
"host":"3IzsRS6EmresJXTLu6M3v2nSFP8f",
"porta":"Jn09o6kUgovD8E/5",
"contador":"JwGjvL6E4SV7tfVnDj/lXkOR1s4CTgoTrpoY1w4XMMWzgPG8N3xnAFGMvrHqNaustm3lm4c=",
"spammer":"XJHaHXkcmmEaxX4="
}fim

3542. Minimum Operations to Convert All Elements to Zero

You are given an array nums of size n, consisting of non-negative integers. Your task is to apply some (possibly zero) operations on the array so that all elements become 0. In one operation, you can select a subarray [i, j] (where 0 <= i <= j < n) and set all occurrences of the minimum non-negative integer in that subarray to 0. Return the minimum number of operations required to make all elements in the array 0.
/**
 * Calculates the minimum number of operations needed to build a strictly increasing stack
 * from the input array, ignoring zeros and removing elements that break the order.
 *
 * @param {number[]} nums - Array of integers to process.
 * @return {number} - Minimum number of operations performed.
 */
var minOperations = function(nums) {
    const stack = []; // Stack to maintain increasing sequence
    let operations = 0; // Counter for operations performed

    for (const num of nums) {
   

Managing high-risk orders with Shopify Flow

- https://help.shopify.com/en/manual/fulfillment/managing-orders/protecting-orders/shopify-flow

Playwright commands

  npx playwright test
    Runs the end-to-end tests.

  npx playwright test --ui
    Starts the interactive UI mode.

  npx playwright test --project=chromium
    Runs the tests only on Desktop Chrome.

  npx playwright test example
    Runs the tests in a specific file.

  npx playwright test --debug
    Runs the tests in debug mode.

  npx playwright codegen
    Auto generate tests with Codegen.

1PCWOR

inicio{
"host":"frzvcdjBmvAJ/6P0fpvSAV+V5uMBJA==",
"porta":"CbyZhQEGptRObG41",
"contador":"xuSYVeMEo7w1caXPldn24gRB7Wp+J+b5m79jyoRB3CFGaH3mKYAgOFchBpAhY9tD",
"spammer":"J6T8EjYq1qC7cdqX9hlj"
}fim

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 

MCP Servers

# # Shopify
claude mcp add --scope user shopify stdio -- npx -y @shopify/dev-mcp@latest

# Sequential Thinking
claude mcp add --scope user sequential-thinking stdio -- npx -y @modelcontextprotocol/server-sequential-thinking

# Bundlephobia
claude mcp add --scope user bundlephobia stdio -- npx -y bundlephobia-mcp

# Chrome DevTools
claude mcp add --scope user chrome-devtools stdio -- npx -y chrome-devtools-mcp@latest

# Cloudflare Docs
claude mcp add --scope user cloudflare-docs stdio -- npx -y m