Modals


<div id="{{ id }}" class="modal modal--{{ right ? 'right' : 'left' }}">
    <div class="modal__overlay"></div>
    <div class="modal__content">
        <div class="close-modal icon-background icon-light">{% include 'partials/svg.twig' with{attr_width: '15', attr_height: '15', id: 'cancel', ariaLabel: 'Closing cross'} %}</div>
        <div class="modal__inner-content">
            {{ content }}
        </div>
        <div class="modal-shape">
            {% if right %}
                <svg xmlns

Pagination with color variants


.pagination {
    padding: 15vh 0;
    display: flex;
    justify-content: center;

    ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: .5rem;
        list-style: none;
        margin: 0;
        padding: 0;

        @include respond-to(from-sm) {
            gap: var(--gap-sm);
        }


        li {
            a, span {
                display: inline-flex;
                justify-content: center;
                align-items: center;
     

Pagination (rounded with hidden arrow)

{% if posts.pagination.total > 1 %}
    {% set current = posts.pagination.current %}
    {% set total = posts.pagination.total %}

    <ul>
        <li class="prev{% if not posts.pagination.prev %} disabled{% endif %}">
            <{{ posts.pagination.prev ? 'a href="' ~ pagination_link(posts.pagination.prev.link, overview_url) ~ '"' : 'span'}} data-page-nr="{{ current - 1 }}">
            {% include 'partials/svg.twig' with { id: 'arrow', attr_width: '13', attr_height: '13', ariaLabel: 'Pijl'}

Remove section path from URL (Works for all anchor types, including "/#about")

<!--========== 💙 MEMBERSCRIPT #136 💙 REMOVE SECTION PATH FROM URL (Works for all anchor types) ==========-->
<script>

document.addEventListener('DOMContentLoaded', function () {
    
    // Function to scroll and clean the URL
    function scrollAndClean(id) {
        const targetElement = document.getElementById(id);
        if (targetElement) {
            targetElement.scrollIntoView({ behavior: 'smooth' });
            setTimeout(() => {
                history.replaceState(null, document.t

Get-MofManagementPath

function Get-MofManagementPath {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
        [string[]]$Path
        ,
        [switch]$CheckExist
    )

    process {
        Write-Verbose "CheckExist: $($CheckExist.IsPresent)"
        foreach ($PathItem In $Path) {
            $mof = Get-Item -Path $PathItem
            
            $FileContents = Get-Content -Path $mof.FullName

Raw file contents to array of lines (strings)

$FileContents = Get-Content -Path "$env:windir\system32\wbem\cimwin32.MOF" -Raw
($FileContents -replace '\n', "`r`n") -split "`r`n"

2616. Minimize the Maximum Difference of Pairs

You are given a 0-indexed integer array nums and an integer p. Find p pairs of indices of nums such that the maximum difference amongst all the pairs is minimized. Also, ensure no index appears more than once amongst the p pairs. Note that for a pair of elements at the index i and j, the difference of this pair is |nums[i] - nums[j]|, where |x| represents the absolute value of x. Return the minimum maximum difference among all p pairs. We define the maximum of an empty set to be zero.
/**
 * Function to minimize the maximum difference between pairs in a sorted array.
 * @param {number[]} nums - Array of numbers to be paired.
 * @param {number} p - Target number of pairs.
 * @return {number} - Minimum possible maximum difference between pairs.
 */
var minimizeMax = function(nums, p) {
    // Sort the numbers in ascending order
    nums.sort((a, b) => a - b);

    let left = 0;
    let right = nums[nums.length - 1] - nums[0];

    // Binary search to find the minimum possible m

smooth nav opening animation

instead of the clunky `height:0` to `height: auto`, use this for a smooth opening animation. Uses `display:grid` and `interpolate-size: allow-keywords` [https://caniuse.com/mdn-css_properties_interpolate-size_allow-keywords]
li {
    position: relative;
    margin: 0;
    &[id*="item--home"] {display: none!important;}
    &.item--has-children {
        margin: 0;
        display: grid;
        grid-template-rows: min-content 0fr;
        transition: grid-template-rows 0.33s ease-in-out;
    }
    // tier 2
    > ul {
        overflow: hidden;
        height: 0px;
        interpolate-size: allow-keywords;
        transition: height .33s ease-in-out;
        overflow-y: clip;
        > li {
         

Lisa

![](https://cdn.cacher.io/attachments/u/3mdb8zlwid8no/fRocJV4b_P-BAYRkhG9-MFnhG1J9W_Lp/0xeq05sgf.png)

![](https://cdn.cacher.io/attachments/u/3mdb8zlwid8no/1eV9v5TnYDwHQVAz2dzc1u0CuTTUSiYx/8ahdy4qr1.png)


![](https://cdn.cacher.io/attachments/u/3mdb8zlwid8no/naKn36Kz7lSUEkFHnODPm3PDuSdEjfaZ/uaj3z17lp.png)


![](https://cdn.cacher.io/attachments/u/3mdb8zlwid8no/nPfPbyJKP0DDDbosRQLlpl5oj6i9zFOO/4swmbl0lq.png)


![](https://cdn.cacher.io/attachments/u/3mdb8zlwid8no/MzKwjrO1O9bwxRvFiTNvEWHqQf1-ccN

Теги

```
# 1. Переключаемся на нужную ветку
git checkout main

# 2. Обновляем локальный репозиторий
git pull origin main

# 3. Создаём аннотированный тег
git tag -a v1.0 -m "Выпуск версии 1.0"

# 4. Пушим тег в удалённый репозиторий
git push origin v1.0
```

B2 Unit 17

E
1. She said, we couldn't publish a story that could harm the credibility of the newspaper.
2. She said that the paparazzi ought to be regulated and that it was wrong to invade people's privacy.
3. She asked if I had received any insulting posts from trolls on my Instagram account
4. She told me not to believe everything I read and that it was probably fake news.
5. She asked me if I promoted our product as an influencer.
6. She said that the government would try to censor their coverage of the

スクレイピング

//リファクタ前の汚いコード

const cheerio = require('cheerio');
const authHeader = {
  headers: {
    'Authorization': 'Basic ' + Buffer.from('mfmf:sbkvq57!').toString('base64')
  }
};

(async () => {
  const sitemapUrl = 'https://test.dimensional.co.jp/sitemap.xml';
  const response = await fetch(sitemapUrl, authHeader);
  const body = await response.text();
  const $ = cheerio.load(body, { xmlMode:true });

  const locs = $('loc').toArray();

  for (const loc of locs) {
    const pageUrl

expo web

npx expo export --platform web

Get-FlexeraAppPortalNameResolution

function Get-FlexeraAppPortalNameResolution {
    [CmdletBinding()]
    param(
        [string]$SiteName
        ,
        [string]$ClientIP
        ,
        [int]$Latest = 1
    )

    function ConvertFrom-IISLog {
        [CmdletBinding()]
        param(
            [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
            [string]$Path
            ,
            [switch]$ShowFields
        )
        process {

3423. Maximum Difference Between Adjacent Elements in a Circular Array

Given a circular array nums, find the maximum absolute difference between adjacent elements. Note: In a circular array, the first and last elements are adjacent.
/**
 * @param {number[]} nums
 * @return {number}
 */
var maxAdjacentDistance = function(nums) {
    if (nums.length < 2) return 0; // If there's only one element, no adjacent pairs exist.

    let maxDiff = 0; // Initialize a variable to store the maximum absolute difference

    for (let i = 0; i < nums.length; i++) {
        // Compute the absolute difference between the current element and the next one.
        // Using modulus (%) ensures that the last element wraps around to the first elem

Windows Security Center Antivirus Product Status

# Create a summary object
$avSummary = New-Object -TypeName PSObject

# Retrieve the antivirus product information
$avProducts = Get-WmiObject -Namespace 'root\SecurityCenter2' -Class AntiVirusProduct

$avProducts | ForEach-Object {
    $avProduct = $_
    $avClient = $avProduct.displayName

    # Check if the antivirus product was found
    if ($null -eq $avProduct) {
        # If not found, populate the summary with error messages
        $avSummary | Add-Member -MemberType NotePr
OSZAR »