/**
* @param {number[][]} grid
* @param {number[]} queries
* @return {number[]}
*/
// Main function to compute maximum points for each query
var maxPoints = function(grid, queries) {
let m = grid.length, n = grid[0].length;
// Store all grid cells as coordinates with their values
let coords = [];
for (let i = 0; i < m; i++) {
for (let j = 0; j < n; j++) {
coords.push([i, j, grid[i][j]]); // Format: [row, col, value]
}
}
// Sort coordinates by cell value in ascendi
✅ Check (Éxito/Verificación)
🔒 Seguridad (Candado/Cifrado/Protección)
❌ Error (Error/Prohibido/Fallo)
⚠️ Warning (Advertencia/Precaución/Riesgo)
ℹ️ Info (Información/Aviso/Detalles)
🚫 Prohibido (Acceso Denegado/Restricción)
⏳ Cargando (Procesando/Espere/Espera)
🔔 Notificación (Alerta/Recordatorio)
📧 Correo (Mensaje/Email/Comunicación)
📢 Anuncio (Broadcast/Alerta Pública/Notificación Masiva)
🔄 Actualizar (Recargar/Refrescar/Reiniciar)
👁️ Vista (Visualizar/Previsualizar/Inspeccionar)
🛑 Detenido (P
meriona
class Sevanova_Event {
// Get event date format
public static function get_date_format( $event_id = null ) {
if ( is_null( $event_id ) ) {
return false;
}
$event_date_start = get_field( 'event_date_start', $event_id );
if ( ! $event_date_start ) {
return false;
}
$event_date_end = get_field( 'event_date_end', $event_id );
$date_label = '';
if ( ! $event_date_end ) {
$date_label = date_i18n( 'j F Y', strtotime( $event_date_start ) );
} else {
<label for="file-input">
<span>ファイルを選択</span>
<input type="file" id="file-input" multiple />
</label>
<ul id="file-list"></ul>
// You have a method that returns a list of strings i.e.Func<List<string>>
public List<string> ReturnStringList() => new List<string> { "Bob", "Nancy", "Bill", "Evan" };
// Create a class with a member signature Func<List<string>>
public class MyFuncClass
{
public Func<List<string>> MyFunc { get; set; }
}
// Assign the method to the func
var myClass = new MyFuncClass { MyFunc = () => ReturnStringList() };
// or
myClass.MyFunc = ReturnStringList;
// Call the func
var list
/**
* Finds the minimum index to split the array such that both subarrays
* have the same dominant element.
*
* @param {number[]} nums - The input array of integers.
* @return {number} - The minimum index of a valid split, or -1 if no valid split exists.
*/
var minimumIndex = function(nums) {
const n = nums.length;
// Step 1: Identify the dominant element in the array.
// The "dominant" element is the one that appears more than half the time.
let dominant = 0; // Candidat
/* https://codepen.io/kevinpowell/full/vYvEdWG */
.cluster {
outline: 5px solid hotpink;
padding: 1rem;
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.flexible-grid {
outline: 5px solid hotpink;
padding: 1rem;
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
.flexible-grid > * {
flex: 1;
}
.auto-grid {
outline: 5px solid hotpink;
padding: 1rem;
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
}
.reel {
outline
rechargepartners.slack.com
shopifypartners.slack.com
pip freeze > requirements.txt && pip uninstall -r requirements.txt -y
<?php
/*
* Plugin name: Sevanova User
* Description: See title
* Author: Sevanova
* Author URI: https://www.sevanova.com
* Version: 1.0.0
* Text Domain: sn-user
*/
class Sevanova_User {
// Construct
public function __construct() {
add_action( 'manage_users_extra_tablenav', array( $this, 'sn_manage_filter_by' ), 20, 1 );
add_action( 'pre_get_users', array( $this, 'sn_filter_query_by' ) );
add_filter( 'manage_users_custom_column', array( $this, 'sn_content_custom_col
# countVowels(string):int
# countConsonants(string):int
# countCharacters(string word, string char):int
# isAnagram(string, string):boolean
# isPalindrome(string):boolean
# pyramid(int)
def countVowels(s):
vowels = ['a', 'e', 'i', 'o', 'u']
count = 0
for char in s:
if char in vowels:
count += 1
return count
def countConsonants(s):
vowels = ['a', 'e', 'i', 'o', 'u']
count = 0
for char in s:
if char not in vowels:
U/oDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAAA8PDwAAAqoAAD4AvgC+AIAAAAAAAALARwaPDw8AAD6rAAA9Vj4AvqsBxz44gAADAEAHjw8PAAABVQAAPqs+AL2rQcc+OIAAAwBAB48PDwFVP1WAAD1WPgC+qz44gccAAAMARwaPDw8AAACqgAA9Vj4AvatBxwHHAAADAEcGgAAAAAAAAD9VgAAAAAAAAAAAAAAAAwBAAA8PB4AAAAAAAD4AvgC9VgAAAAAAAARAQAqPDweAAAAAAAA+AL4AvVYAAAAAAAAEgEmBhQeCgAAAAAAAP1W/AH1WAAAAAAAABIBAB48PB4AAAAAAAD4AvgC9VgAAAAAAAARAQAqAAAANUgAAAAA/VbpW/6r+OIAAAAADAEAAAAAAMq4AAAAAAP/6VwBVPjiAAAAAAwBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM
// https://medium.com/@hxu0407/master-these-8-promise-concurrency-control-techniques-to-significantly-improve-performance-5a1c199b6b3c
// 1. Promise.all: Execute in Parallel and Return Results Together
const promise1 = Promise.resolve(1);
const promise2 = Promise.resolve(2);
const promise3 = Promise.resolve(3);
Promise.all([promise1, promise2, promise3])
.then(results => {
console.log(results); // Output: [1, 2, 3]
});
// 2. Promise.allSettled: Execute in Parallel and Retur
// ==UserScript==
// @name Email Scraper
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Scrape emails across multiple pages and save to CSV
// @match https://solicitors.lawsociety.org.uk/*
// @grant GM_setValue
// @grant GM_getValue
// @run-at document-end
// @license MIT
// ==/UserScript==
// Install this in Tampermonkey by clicking [https://gist.githubusercontent.com/MarwanShehata/34acd0b3d2a4431cf8a93c9d3cdf2d41/raw/3050c898