NavigationSet_Add

<NavigationSet_Add>
    <Code><![CDATA[primary_navigation]]></Code>
    <Name><![CDATA[Primary Site Navigation Bar]]></Name>
    <Description><![CDATA[]]></Description>
    <Template>![CDATA[]]</Template>
    <Notes>#Set_Current_Time#</Notes>
    <Layout>Horizontal Drop-Down</Layout>
    <Items>
        <Item>
            <Active>true</Active>
            <Name><![CDATA[Shop All]]></Name>
            <Link type="Page" target="_self"><![CDATA[CTLG]]></Link>
        </Item>
        <I

modern finance 1

Lecture 1 - Decisiones financieras de hogares y empresas.

Ejemplo de un proyecto = campaña de marketing.
Se asemeja a una inversion.

Conclusion una decision de negocio se trata de realmente valuar un projecto o su flujo de caja.
Esto es realmente un problema financiero.
Segundo, la valuacion no es un ejercicio subjetivo.

Finanza es la herramienta basica para resolver esas actividades/negocios (campaña de marketing, R&D project, expansion de una linea de prodccion, etc)
y tomar buenas desicion

func js rule

# Your rule content
When creating code in JavaScript use functional programing best practices esp when creating new code, so it should look like this: you are given a task, you then create a scratchpad.md and use that for you thought process and computations, use it to work through the tasks in a logical manor in order unless you have a good reason to do so . after you code for a task is complete, test said code, if it passes , go to next task and repseat if not loop around and refactor , test a

Apply M values into the nodes

from qgis.core import QgsGeometry, QgsPoint, QgsProject

layer = QgsProject.instance().mapLayersByName('test')[0]

layer.startEditing()

for f in layer.getFeatures():
    geom = f.geometry()

    # sécurité : seulement LineString
    if geom.isMultipart():
        continue

    pts = geom.constGet().points()
    dist = 0.0
    new_pts = []

    for i, p in enumerate(pts):
        if i > 0:
            dist += pts[i-1].distance(p)
        new_pts.append(QgsPoint(p.x(), p.y(), 

1200. Minimum Absolute Difference

Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elements. Return a list of pairs in ascending order(with respect to pairs), each pair [a, b] follows a, b are from arr a < b b - a equals to the minimum absolute difference of any two elements in arr
/**
 * @param {number[]} arr
 * @return {number[][]}
 */
var minimumAbsDifference = function(arr) {
    // Step 1: Sort the array so that minimum absolute difference
    // must occur between adjacent elements.
    arr.sort((a, b) => a - b);

    let minDiff = Infinity;     // Track the smallest difference found
    const result = [];          // Store all pairs that match minDiff

    // Step 2: First pass - find the minimum adjacent difference
    for (let i = 0; i < arr.length - 1; i++) {
   

how to compare maps in golang

	// maps.Equal(map1, map2) bool
	myMap2 := map[string]string{
		"name":    "Alice",
		"country": "Wonderland",
	}
	fmt.Println("Second map:", myMap2)

	myMap3 := map[string]string{
		"name":    "Alice",
		"country": "Wonderland",
	}

	if maps.Equal(myMap2, myMap3) {
		fmt.Println("Maps are equal")
	} else {
		fmt.Println("Maps are not equal")
	}

how to create and initialize a map in golang

// syntax: mapLiteral := map[keyType]valueType{ key1: value1, key2: value2, }
	myMap2 := map[string]string{
		"name":    "Alice",
		"country": "Wonderland",
	}
	fmt.Println("Second map:", myMap2)

how to check if a key has a value?

	myMap := make(map[string]int)
	myMap["key1"] = 15
	myMap["key2"] = 100
	myMap["key3"] = 7
	myMap["key4"] = 23

	value, exists := myMap["key1"]
	fmt.Println("Value for key1:", value, "Exists:", exists) //Value for key1: 15 Exists: true
	valueOfKey10, existsKey10 := myMap["key10"]
	fmt.Println("Value for key10:", valueOfKey10, "Exists:", existsKey10) // Value for key10: 0 Exists: false

how to delete all key and values in a map in golang

	myMap := make(map[string]int)
	myMap["key1"] = 15
	myMap["key2"] = 100
	myMap["key3"] = 7
	myMap["key4"] = 23
	// clear syntax: clear(mapVariable)
	clear(myMap)
	fmt.Println("Map after clearing:", myMap)

how to delete a key in map in golang

	// delete syntax: delete(mapVariable, key)
	myMap := make(map[string]int)
	myMap["key1"] = 9
	delete(myMap, "key1")

1984. Minimum Difference Between Highest and Lowest of K Scores

You are given a 0-indexed integer array nums, where nums[i] represents the score of the ith student. You are also given an integer k. Pick the scores of any k students from the array so that the difference between the highest and the lowest of the k scores is minimized. Return the minimum possible difference.
/**
 * @param {number[]} nums
 * @param {number} k
 * @return {number}
 */
var minimumDifference = function(nums, k) {
    // If k is 1, picking a single student always gives difference = 0
    if (k === 1) return 0;

    // Sort scores so close values sit next to each other
    nums.sort((a, b) => a - b);

    // We'll track the smallest range found
    let minDiff = Infinity;

    // Slide a window of size k across the sorted array
    // Window goes from index i to i + k - 1
    for (let i = 

Solution for missing images in YOOtheme Pro 5

Solution for missing images in YOOtheme Pro 5
# Joomla
RewriteCond %{REQUEST_URI} ^/media/yootheme
# WordPress
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/yootheme
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.php [L,NC]

1877. Minimize Maximum Pair Sum in Array

The pair sum of a pair (a,b) is equal to a + b. The maximum pair sum is the largest pair sum in a list of pairs. For example, if we have pairs (1,5), (2,3), and (4,4), the maximum pair sum would be max(1+5, 2+3, 4+4) = max(6, 5, 8) = 8. Given an array nums of even length n, pair up the elements of nums into n / 2 pairs such that: Each element of nums is in exactly one pair, and The maximum pair sum is minimized. Return the minimized maximum pair sum after optimally pairing up the elements.
/**
 * @param {number[]} nums
 * @return {number}
 */
var minPairSum = function(nums) {
    // Step 1: Sort the array so we can pair smallest with largest
    nums.sort((a, b) => a - b);

    let left = 0;                   // pointer to smallest element
    let right = nums.length - 1;    // pointer largest element
    let maxPairSum = 0;             // track the maximum pair sum we create

    // Step 2: Pair elements from both end moving inward
    while (left < right) {
        const pairSum

Commit message authoring prompt

Review the current changes staged to be commit by running `git diff HEAD` and then write an appropriate git message for these changes and be sure to adhere to the guidlines in `CONTRIBUTING.md`.

スクロール連動で線びよん

<div class="container">
  <div class="ornament-container">
    <svg
      class="ornament-svg"
      preserveAspectRatio="none"
      width="1440"
      height="80"
      viewBox="0 0 1440 80"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
    >
      <path class="ornament-path" fill="#E60019" />
    </svg>
  </div>
</div>

borderにグラデーション

<div class="gradient-border">
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id ultrices arcu.
</div>