/**
* @param {number[]} nums
* @param {number} target
* @return {number}
*/
var search = function(nums, target) {
let left = 0, right = nums.length - 1;
while (left <= right) {
const mid = Math.floor((left + right) / 2);
if (nums[mid] === target) return mid;
// Left half is sorted
if (nums[left] <= nums[mid]) {
if (nums[left] <= target && target < nums[mid]) {
right = mid - 1;
} else {
left = m<!-- this HTML includes the image file URL of the original website this was made for - you should be able to replace it from within the editor -->
<!-- wp:cover {"url":"https://dev.diasporaalliance.co/wp-content/uploads/2026/05/DA-Page-Title@2x-scaled.png","id":959,"dimRatio":50,"overlayColor":"contrast","isUserOverlayColor":true,"focalPoint":{"x":0.15,"y":0.5},"minHeight":300,"minHeightUnit":"px","contentPosition":"bottom center","sizeSlug":"full","align":"full","className":"dac-page-header","sAIzaSyAvqMh76LpJh9V81ExH8qGcjHvt9_LVJzAconst fs = require("fs");
const path = require("path");
const args = process.argv.slice(2);
const MODE = args.find((a) => a === "flag" || a === "remove") ?? "flag";
const schemaArg = args.find((a) => a.endsWith(".json") && a.includes("schema"));
const dataArg = args.find((a) => a.endsWith(".json") && a.includes("data"));
const schemaPath = path.resolve(schemaArg ?? "config/settings_schema.json");
const dataPath = path.resolve(dataArg ?? "config/settings_data.json");
if (!fs.existsSync(schemaP'use strict';
const fs = require('fs');
const path = require('path');
const FILE_PATH = path.resolve('assets/styles.css.liquid');
// ─── Filter strategy map ───────────────────────────────────────────────────
const FILTER_STRATEGIES = {
color_modify: 'derivative-token',
color_lighten: 'derivative-token',
color_darken: 'derivative-token',
color_mix: 'derivative-token',
color_saturate: 'derivative-token',
color_desaturate:'derivative-token',
color_extract: 'derivamongodb+srv://weezy:weezy@cluster0.4so3vbh.mongodb.net/npx create-react-router@latest snippet-app
cd snippet-app
npm i highlight.js @tabler/icons-webfont
npm i -D @vitejs/plugin-rsc vite-tsconfig-paths <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snippet library</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.0.0/dist/tabler-icons.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<style>
:root {
--bg-primary: #ffffff;
--bg-secondary: #f5f5f4;
--text-primary: #1c1917;
# Constraints vs Guardrails — Fiche synthèse ACI
> **Statut épistémique** : la distinction Constraints/Guardrails est explicite dans la source (ACI-knowledge.md, §3). La **catégorisation des Guardrails ci-dessous n'est PAS dans la source** — c'est une extension pédagogique cohérente avec l'esprit du document. À utiliser comme grille de lecture, pas comme citation faisant autorité.
---
## 1. Vue comparée
| | **Constraints** | **Guardrails** |
|---|---|---|
| **Nature** | Élément de **design**Get-NetTCPConnection -State Listen | Where-Object { $_.OwningProcess -in (Get-Process node -ErrorAction SilentlyContinue).Id } | Select-Object LocalPort, OwningProcess@media (min-width: 1024px) {
.dropdown.menu.large-horizontal>li.is-dropdown-submenu-parent>a {
color: white;
}
.nav-btn.menu-item > a {
color: var(--button-font-color, #fefefe)!important;
background-color: var(--button-background-color, --primary-color)!important;
margin-left: 15px;
padding: 0.5rem 1rem !important;
transition: 300ms all ease;
&:hover {
color: var(--button-font-color-hover)!important;
background-color: var(--button-background-color-ho/**
* @param {number[]} nums1
* @param {number[]} nums2
* @return {number}
*/
var getCommon = function(nums1, nums2) {
// Two pointers starting at the beginning of each sorted array
let i = 0;
let j = 0;
// Walk both arrays while both pointers are in bounds
while (i < nums1.length && j < nums2.length) {
// If both values match, we've found the smallest common value
if (nums1[i] === nums2[j]) {
return nums1[i];
}
// If nums1'simport { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";
import * as schema from "./schema";
import { envs } from "@/config/envs";
const globalForDrizzle = global as unknown as {
db: ReturnType<typeof drizzle>;
client: ReturnType<typeof postgres>;
};
/**
* When configuring Drizzle with Supabase the property `prepare` must be FALSE.
* https://supabase.com/docs/guides/database/drizzle
*/
const client =
globalForDrizzle.client ?? postgres(envs.DATABASE_URL, { pconst button = document.getElementById("swipe-button");
const container = document.getElementById("swipe-container");
let startX = 0;
button.addEventListener("touchstart", (e) => {
startX = e.touches[0].clientX;
});
button.addEventListener("touchmove", (e) => {
const currentX = e.touches[0].clientX;
const offset = Math.min(
container.offsetWidth - button.offsetWidth,
currentX - startX
);
button.style.transform = `translateX(${offset}px)`;
});
button.addEvent// using the descript method
import { test, expect } from '@playwright/test';
test.describe('two tests', () => {
test('one', async ({ page }) => {
// ...
});
test('two', async ({ page }) => {
// ...
});
});npx test filename.spec.ts --grep groupName