Gallery lightbox zoom (Showtime)

https://outdoorlegacygear.com/
https://woodwudy.com/
With photoswipe:
https://melodymusicshop.com/

ACF link field extraction

 <?php 
    $link = get_sub_field( 'link' );
    if ( $link ) :
      $link_url = $link['url'];
      $link_title = $link['title'];
      $link_target = $link['target'] ? $link['target'] : '_self';
  ?>
    <a href="<?php echo esc_url( $link_url ); ?>" target="<?php echo esc_attr( $link_target ); ?>"><span><?php echo esc_attr( $link_title ); ?></span></a>
<?php endif; ?>

Shipping calculator(Showtime)

https://shop.petlife.com/
https://outdoorlegacygear.com/

Design Pattern


![](https://cdn.cacher.io/attachments/u/3b3qij9sue2rm/bYScg8FY8N-a3WO610YQo9tP2h5vV5ph/po6e1ic8a.png)

App per generare un "clip-path" da SVG

https://yoksel.github.io/relative-clip-path/

直下の子ウィジェットを取得

# PyQt5の場合
from PySide2.QtWidgets import (QApplication, QGridLayout, QMainWindow, QWidget,
                               QHBoxLayout, QVBoxLayout, QPushButton, QCheckBox,
                               QComboBox, QStyleOptionFrame, QToolTip, QAction,
                               QFrame, QLabel, QTextEdit, QSpacerItem,
                               QSizePolicy, QGroupBox
                               )

class MyWidget(QWidget):
    def __init__(self):
        super().__init__()

FileBrowser

import sys
from PySide2.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QPushButton, QTextEdit, QWidget, QFileDialog
from PySide2.QtCore import Qt
from maya import OpenMayaUI
from shiboken2 import wrapInstance

def maya_main_window():
    main_window_ptr = OpenMayaUI.MQtUtil.mainWindow()
    return wrapInstance(int(main_window_ptr), QMainWindow)

class FileBrowser(QMainWindow):
    def __init__(self, parent = None, flags = Qt.WindowFlags()):
        # 当該window を Maya window 

re 'jt*', 'if*', or 'ctrl*

import re

# strsCompListsの中身を適切に設定してください
strsCompLists = ['fish', 'ifA']

pattern = r'^(jt|if|ctrl).*'  # jt, if, ctrlで始まる文字列に一致する正規表現パターン

if re.match(pattern, strsCompLists[1]):
    print(f"{strsCompLists[1]} matches 'jt*', 'if*', or 'ctrl*'")
else:
    print(f"{strsCompLists[1]} does not match 'jt*', 'if*', or 'ctrl*'")

UUID V4

Generate a UUID v4 string.
const uuid = () => {
  return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) =>
    (
      +c ^
      (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (+c / 4)))
    ).toString(16)
  );
};

export default uuid;

Sum Of Distances In Tree

/**
 * @param {number} n
 * @param {number[][]} edges
 * @return {number[]}
 */
var sumOfDistancesInTree = function(n, edges) {
    // Initialize adjacency list
    const graph = Array.from({length: n}, () => []);
    // Initialize arrays to store the size of each subtree and the answer
    const size = Array(n).fill(1);
    const ans = Array(n).fill(0);

    // Convert edge list to adjacency list
    for (let [u, v] of edges) {
        graph[u].push(v);
        graph[v].push(u);
    }

    // P

5. Construir Dialog

// Dialog
import clsx from "clsx";

export function Dialog({
    children
}: {
    children: React.ReactNode;
}) {
    return (
        <div
            className="fixed top-0 left-0 w-full h-full z-50"
        >
            <div className="relative w-full h-full">
                <div className="w-full h-full bg-black opacity-60" />
                {children}
            </div>
        </div>
    );
}

export function DialogContent({
    className,
    children
}: {
    

支持矩阵

# Support Matrix

https://docs.nvidia.com/deeplearning/frameworks/support-matrix/index.html

CustomScriptEditor output用

import maya.cmds as cmds
import sys
from PySide2.QtWidgets import QMainWindow, QTextEdit, QVBoxLayout, QWidget, QApplication
from PySide2.QtCore import Qt
from maya import OpenMayaUI
from shiboken2 import wrapInstance

def maya_main_window():
    main_window_ptr = OpenMayaUI.MQtUtil.mainWindow()
    return wrapInstance(int(main_window_ptr), QMainWindow)

class CustomScriptEditor(QMainWindow):
    def __init__(self, parent=None, flags=Qt.WindowFlags()):
        if parent is None:
  

Cambiar por default de master a main en windows

Abrir Git Bash y poner
```
git config --global init.defaultBranch main
```

Role Feature Matrix Configuration Full Code

//Role to Feature Mapping Configuration

CREATE TABLE [dbo].[Role_Master](
	[RoleId] [int] NOT NULL,
	[RoleName] [varchar](256) NOT NULL,
	[Description] [nvarchar](1000) NULL,
	[IsActive] [bit] NOT NULL,
	[ActionBy] [nvarchar](50) NOT NULL,
	[ActionDate] [datetime] NOT NULL,
 CONSTRAINT [PK_Role] PRIMARY KEY CLUSTERED 
(
	[RoleId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT

Image photo non fonctionnelle sur Jinja / bootstap

il faut créer un dossier static  et mettre dedans les images 
référence à l'image : 

`<!DOCTYPE html><img class="card-img-top" src="static/images/fruit_brut.png" alt="..." />`