Bookzo Data naar Google Analytics

<!-- Google Analytics gtag.js (if not already included in template) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HG8NR4R2JE"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-HG8NR4R2JE');
</script>

<!-- Bookzo Analytics Tracking -->
<script>
// Function to calculate stay duration
function calculateDays(arrivalDate, departureDate) {
    try {
        const arrival = 

Bookzo data naar Google Tag Manager

Dit is de code die we bij Hotel Tantenhoeve hebben gebruikt om de boekingsgegevens naar Google Analytics te sturen. --> kijk bij Hotel Tatenhove, HTML blok op de bevestigings pagina#

<script>
    // Bookzo Google Tag Manager
    
const handleEvent = (event) => {
  console.log(event.detail);
  window.dataLayer = window.dataLayer || [];
  window.dataLayer.push({
    'event': 'conversion',
    'send_to': 'PLACEHOLDERGOOGLETAG/PLACEHOLDERLINKURL', // kijk bij Hotel Tatenhove, HTML blok op de bevestigings pagina
    'value': 1.0,
    'currency': 'EUR',
    'transaction_id': ''
  });
};

document.addEventListener('bookzoBookingSuccess', handleEvent);
document.addEventListener('bo

автотест

pip install -r requirements.txt - установка
pytest -s tests/test_open_url.py --headed - запуск теста

Scrolling on desktop with mouse in overflowed element (JS)

<!--
https://jsbin.com/bihofirugo/2/edit?html,css,output
-->

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>

	
	
	<div class="container">
    <img src="https://picsum.photos/id/237/200/300" alt="Foto 1">
		<img src="https://picsum.photos/id/237/200/300" alt="Foto 1">
		<img src="https://picsum.photos/id/237/200/300" alt="Foto 1">
		<img src="https://picsum.photos/id/237/200/300" alt="Foto 1">
		

MBFSDF-35484-Plus 3 Finanzierungen - Darlehensbetrag - Feld Trading Partner fix mit 2724 hinterlegt

TP Enhancing
com.mbld.balls.generalledger.service.TpEnhancementService#getAlfaAdditionalGlInfo
Depending on "associatedEntityType" column:
  case "I" -> generalLedgerReportApi.getInfoForInvoice(glExtractLine.associatedEntityKey);
  case "C" -> generalLedgerReportApi.getInfoForCashAllocation(glExtractLine.associatedEntityKey);
  case "S" -> generalLedgerReportApi.getInfoForSupplier(glExtractLine.associatedEntityKey);
  case StringUtils.EMPTY -> resolveNoneEntityType(glLine);
    if empty:
      c

Reactive like unwrap on first level

// 1 Když neobalíš objekt do reactive():

const filtersStorage = {
  priceValue: computed({
    get: () => selectedFilters.value.priceValue,
    set: v => selectedFilters.value.priceValue = +v
  })
}

// Pak filtersStorage.priceValue je přímo ComputedRef objekt. A ComputedRef se chová jako ref - musíš použít .value pro přístup k hodnotě:

// Bez reactive() wrapper
filtersStorage.priceValue.value // ✅ musíš použít .value


// 2
// Když obalíš objekt do reactive():
const filtersStorage = reactive(

oracle limit

 <?
 //хумо карты
 public function getClientUzcard(string $cardNumber)
    {
        $query = "SELECT * FROM ibs.sv_cards t WHERE card_number='{$cardNumber}'";
        $query = "SELECT * FROM ibs.sv_cards t WHERE CLIENT_ID=1";

        //$query = "SELECT * FROM ibs.sv_cards FETCH FIRST 10 ROWS ONLY";
        return $this->iabService->getDataFromQuery($query);
    }
//узкард
    public function getClientIdUzcard(int $id)
    {
        $query = "SELECT * FROM ibs.client_current  WHERE id=".(int)$i

3362. Zero Array Transformation III

You are given an integer array nums of length n and a 2D array queries where queries[i] = [li, ri]. Each queries[i] represents the following action on nums: Decrement the value at each index in the range [li, ri] in nums by at most 1. The amount by which the value is decremented can be chosen independently for each index. A Zero Array is an array with all its elements equal to 0. Return the maximum number of elements that can be removed from queries, such that nums can still be converted to a zero array using the remaining queries. If it is not possible to convert nums to a zero array, return -1.
/**
 * @param {number[]} nums
 * @param {number[][]} queries
 * @return {number}
 */
var maxRemoval = function(nums, queries) {
    const n = nums.length;
    const m = queries.length;

    // Step 1: Sort queries by start index to process efficiently
    queries.sort((a, b) => a[0] - b[0]);

    // Initialize heaps to track available and active queries
    const available = new MaxHeap(); // Max-heap for available queries' end points
    const running = new MinHeap();   // Min-heap for currentl

New/Updated AWS QuickSight User

aws quicksight register-user \
   --aws-account-id {account-id} \
   --namespace default \
   --identity-type IAM \
   --user-role ADMIN_PRO \
   --email "email@example.com" \
   --iam-arn "arn:aws:iam::{account-id}:role/aws-reserved/sso.amazonaws.com/us-west-2/AWSReservedSSO_administrator_0e337cb8887b6b9e" \
   --session-name "email@example.com"

Case Extract for Salesforce Marketing Cloud (SFMC)

// This scheduled job generates two CSV files and uploads them to a SFTP server for another system to consume.
// The main file containing customer cases is named like "SalesforceMarketingCloudExtract_05202025.csv"
// A secondary file containing categorization for those cases is named like "SalesforceMarketingCloudExtract_Categorization_05202025.csv"

// Declare general variables
var grAttachment = new GlideSysAttachment();
var dateStamp = generateDateStamp();

// Declare variables used 

Reports used by mfb

Report name, used by MFB, used by MBLD, which service, is available in Alfa MFB TIMEDEV
ASSREP MFB MBLD BALLS yes +
B2B_PROPOSAL_CONDITION_PROG - - - yes
CDM-DIL - - - yes
DAT MFB MBLD LINK yes alfaReportApi.loadDatAssetData() +
DAT_ERROR MFB MBLD LINK yes +
DEALER_CONTRACT_PORTFOLIO - - - no
GET_REPLACEMENT_CONTRACTS - - - yes
GET_UBO_TP MFB MBLD ALFA-STARTER -> getBeneficialOwnerThirdParties() -> LINK -> UboHawkCaseController.callUboCheck +
GNV - - - yes
HAWK_CHECK_SCHEDULE_DETAILS - - ALFA-ST

After Effects - Flip the order of selected layers

// Flip the order of selected layers

var comp = app.project.activeItem;
if (comp && comp.selectedLayers.length > 1) {
  app.beginUndoGroup("Reverse Selected Layer Order");

  var selected = comp.selectedLayers.slice(); // Copy selection
  var indices = selected.map(function(layer) { return layer.index; });

  // Sort ascending for indices, descending for layers
  indices.sort(function(a, b) { return a - b; });
  selected.sort(function(a, b) { return b.index - a.index; }); // Reverse order

  //

Smarter if

// Noob
const eventHandler = e => {
  if (e.key === 'Escape') {
    this.closeGallery()
  }
  if (e.key === 'ArrowLeft') {
    this.prevMedia()
  }
  if (e.key === 'ArrowRight') {
    this.nextMedia()
  }
}

// Profi
const eventHandler = e => {
  const keyActions = {
    Escape: closeGallery,
    ArrowLeft: prevMedia,
    ArrowRight: nextMedia
  }

  keyActions[e.key]?.()
}