1.4-Afanasiev-Anagram

Напишите код, который проверяет являются ли 2 строки анаграммами друг друга. Анаграмма - результат перестановки букв слова для получения нового слова.
public static bool Anagram(string test, string origins)
		{
			if(test.Length != origins.Length) 
				return false;
			test = test.ToLower();
			char[] charsInOrigins = origins.ToLower().ToCharArray();
			foreach (char c in charsInOrigins)
			{
				if (!test.Contains(c))
					return false;
			}
			return true;
		}

1.4-Afanasiev-Anagram

Напишите код, который проверяет являются ли 2 строки анаграммами друг друга. Анаграмма - результат перестановки букв слова для получения нового слова.
public static bool Anagram(string test, string origins)
		{
			if(test.Length != origins.Length) 
				return false;
			test = test.ToLower();
			char[] charsInOrigins = origins.ToLower().ToCharArray();
			foreach (char c in charsInOrigins)
			{
				if (!test.Contains(c))
					return false;
			}
			return true;
		}

Aggiornare titolo pulsante senza che sparisca

Se vogliamo aggiornare il titolo di un pulsante, senza visualizzare alcuna "animazione", possiamo impostare il type del pulsante a Custom. Viceversa conviene impostarlo a System.
btnFiltra.buttonType = .custom

RD - Generic event Form Submit - Muy Mucho

<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({
	"event": "genericEvent",          //Nombre del evento
	"eventCategory":"form submit",  //Categoría
	"eventAction":"newsletter",   //Acción
	"eventLabel":""     //Etiqueta
});
</script>

voter qualiservice

// src/Security/Voter/EmailVoter.php

namespace App\Security\Voter;

use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\Voter\Voter;

class EmailVoter extends Voter
{
    protected function supports($attribute, $subject)
    {
        return in_array($attribute, ['ACCESS_EMAIL']);
    }

    protected function voteOnAttribute($attribute, $subject, TokenInterface $token)
    {
        $user = $token->getUser();

        if (!

CSSのsinとcosで要素を円周上の扇型に配置

<div class="container">
  <div class="circle">
    <div class="particles">
      <div class="particle">1</div>
      <div class="particle">2</div>
      <div class="particle">3</div>
      <div class="particle">4</div>
      <div class="particle">5</div>
      <div class="particle">6</div>
      <div class="particle">7</div>
      <div class="particle">8</div>
    </div>
  </div>
</div>

CSSのsinとcosで要素を円周上の扇型に配置

      <div class="container">
        <div class="circle">
          <div class="particles">
            <div class="particle">1</div>
            <div class="particle">2</div>
            <div class="particle">3</div>
            <div class="particle">4</div>
            <div class="particle">5</div>
            <div class="particle">6</div>
            <div class="particle">7</div>
            <div class="particle">8</div>
          </div>
        </div>
      </div>

CSSのsinとcosで要素を円周上に配置(三角関数解説)

<div class="container">
  <div class="circle">
    <div class="particles">
      <div class="particle">1</div>
      <div class="particle">2</div>
      <div class="particle">3</div>
      <div class="particle">4</div>
      <div class="particle">5</div>
      <div class="particle">6</div>
      <div class="particle">7</div>
      <div class="particle">8</div>
    </div>
  </div>
</div>

常量引用延长生命周期

### 常量引用延长生命周期

将 临时对象 绑定到 `const &` 时,临时对象的生命周期会延长至 `const &`

这个做法是 C++ 标准在 RVO 提出之前的一个优化,避免拷贝。

Ref.:
1. https://stackoverflow.com/a/39719234
2. https://pvs-studio.com/en/blog/posts/cpp/1006/

OmegaRules_AUTO.sorl

[SwitchyOmega Conditions]
; Require: SwitchyOmega >= 2.3.2
; Date: 2023/2/3
; Usage: https://github.com/FelisCatus/SwitchyOmega/wiki/RuleListUsage

*.rawgit.com
*.bootstrapcdn.com
*.cloudflare.com
*.ssrvps.org
*.hijk.pw
*.ahhhhfs.com
*.lfjack.com
*.everesttech.net
*.llnwi.net
*.jwplayer.com
*.gravatar.com
*.gstatic.com
!*.hdslb.com
!*.bilivideo.cn
*.xptou.com
*.v2ex.com
*.imgur.com
*.facebook.net
*.newxiaozhan.com
*.singlelogin.app
*.webbooksnow.net
*.1lib.vip
*.webbooksnow.org
*.webbooksnow.how

NX Recipes

# Angular/Material
```zsh

```

# Angular/Ionic
```zsh

# NextJS
```zsh

```

Configurar PHPstorm con codesniffer de Drupal

## Instalar dependencias 
`sudo php-cli php-xml php-tokenizer php-simplexml php-xmlwriter`

## Instalar php_codesniffer
`composer global require squizlabs/php_codesniffer:3.6.1`

## Configurar coder
1. Descargar code en https://www.drupal.org/project/coder/releases, 
la version que me funciono es la coder 8.3.13.

2. Ir a la carpeta donde se instala el composer global,en mi caso es en 
"~/.config/composer/vendor/squizlabs/php_codesniffer/src/Standards/", 
y copiar la carpetas Drupal y DrupalPrac

Slider Outside Grid

Slideshow UI pattern where the slider hangs outside of the grid. Examples: - https://southland.org - https://www.ivyleague.com - https://gscsports.org/ **Basic Snippet** ![](https://cdn.cacher.io/attachments/u/3hh1m1wtdgrdl/y0zlkSX0zGQ3e7GLLoMWG0wiUpX9hTks/2023-02-02_12_33_11-Transparent_Window.png) **Final Product** ![](https://cdn.cacher.io/attachments/u/3hh1m1wtdgrdl/MMOzEyExi0A5HuzXGP8YJJlpNP0ZnOiK/2023-02-02_12_39_59-Transparent_Window.png)
<div class="component c-slideshow c-slideshow--overflow">
    <div class="c-slideshow__inner row flex">
        <div class="c-slideshow__header flex">
            <div class="c-slideshow__header--inner flex flex-column">
                <img class="c-slideshow__header-logo" alt="" data-bind="attr:{ src: $component.bucket + '/images/championships_logo.svg' }">
                <span class="c-slideshow__header-title">Championships</span>
            </div>
        </div>

        <div clas

Multiple Datepicker (vanillajs datepicker) per page

// https://mymth.github.io/vanillajs-datepicker

var div_list = document.querySelectorAll('.date-field'); // returns NodeList
var div_array = Array.from(div_list); // converts NodeList to Array
var i = 0;

div_array.forEach(div => {
  var datepicker = new Datepicker(div_array[i], {
    autohide: true,
    format: 'dd/mm/yyyy',
    minDate: 'today',
    todayHighlight: true,
    language: $("html").attr("lang"),
    weekStart: 1
  });
  i++;
});

Scroll to an element based on it's class name

jQuery('.homepage-category-bar a[href^="#"]').click(function(event) {
    event.preventDefault();
    var target = jQuery(this).attr("href");
    var targetClass = target.substring(1);
    var targetElement = jQuery("." + targetClass);
    jQuery("html, body").animate({scrollTop: targetElement.offset().top}, 500);
});

Get SQL file for specific migration in Entity Framework 6 C#

Update-Database -Script -SourceMigration: <pointFromWichYouWantToStartWithGeneration> -TargetMigration: <pointWhereToEndWithGeneration>

Update-Database -Script -SourceMigration: $InitialDatabase

Script-Migration -From <PreviousMigration> -To <LastMigration> //trying this and work

Script-Migration -From <PreviousMigration>

Script-Migration -From add-parent-id-to-contract