{% load custom_filters %}
<!-- new pagination -->
<div class="flex items-center justify-between border-t border-gray-200 bg-white px-4 py-3 sm:px-6 mb-10">
<div class="flex flex-1 justify-between sm:hidden">
<a href="#" class="relative inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50">Previous</a>
<a href="#" class="relative ml-3 inline-flex items-center rounded-md border border-gray-300 bg-white px
# Con 'emulator':
emulator -avd <nombre_avd> # Inicia un emulador de Android con un AVD específico.
emulator -list-avds # Lista todos los AVDs disponibles.
# Con 'adb':
adb devices # Lista todos los dispositivos Android conectados, incluidos los emuladores.
adb install <nombre_archivo.apk> # Instala un archivo APK en el dispositivo o emulador.
adb shell # Abre una shell interactiva en el dispositivo o emulador.
adb shell pm lis
# histogram best practice
## 简介
https://prometheus.io/docs/practices/histograms/
https://zhuanlan.zhihu.com/p/663702683
## 热力图
https://www.xhyonline.com/?p=1594
function getNextBusinessDay(date) {
do {
date.setDate(date.getDate() + 1);
} while (date.getDay() === 0 || date.getDay() === 6);
return date;
}
inicio{
"host":"26150F15271B0970C964CACF77FF",
"porta":"3F3524"
}fim
^.*[keyword].* as part of find all/replace all
//npx playwright codegen -> Opens browser and playwright inspector window
const { test, expect } = require("@playwright/test");
test("My Test", async ({ page }) => {
await page.goto("https://google.com");
await page.locator('[data-test="username"]').click();
await page.locator('[data-test="username"]').fill("username");
await expect(page).toHaveTitle("Google");
await page.click("id=user-name");
await page.locator("id=user-name").fill("Edison");
await page.locator('[id="user-name"
<div class="component c-stories c-stories--rotator-list flex">
<div class="c-stories__thumbnails">
<ul data-bind="foreach: thumbnails">
<li tabindex="0" data-bind="css: { 'c-stories__active': active }, click: $component.slickGoTo, onEnter:$component.slickGoTo ">
<div class="c-stories__item-inner relative">
<div class="c-stories__active-indicator">
<span>
Now Viewing
/**
* @param {number[][]} grid
* @return {number}
*/
var maximumSafenessFactor = function(grid) {
// Get the size of the grid
const n = grid.length;
// Define the directions for moving to adjacent cells
const directions = [[1, 0], [-1, 0], [0, 1], [0, -1]];
// Helper function to check if a cell is within the grid boundaries
const isInBound = (r, c) => r >= 0 && r < n && c >= 0 && c < n;
// Initialize the distance array with Infinity and the queue as empty
co
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import java.io.*;
import java.util.*;
public class ContactListToJson {
public void WriteToJson() {
// Create a JSON array to store contacts
JSONArray contacts = new JSONArray();
// Create a sample contact
JSONObject contact1 = new JSONObject();
contact1.put("name", "John");
<canvas id="myCanvas"></canvas>
<script type="importmap">
{
"imports": {
"three": "https://cdnjs.cloudflare.com/ajax/libs/three.js/0.163.0/three.module.min.js"
}
}
</script>
<script src="assets/js/script.js" type="module"></script>
# Afficher stst des lignes par rapport des polygones
![](https://cdn.cacher.io/attachments/u/3fx93fy4dqwj6/-QLJU6xUcvyDp1Wa2LUWYJIHrSF6b-GZ/dw6qxw3ci.png)
```python
"nom_com" || '_' || "CODE_INSEE" || '\n' || '\n' ||
to_string(round(coalesce(aggregate(
layer:='stat',
aggregate:= 'sum',
expression:=$length,
filter:=(
"ft" LIKE '%_DET_DETECT%' AND length(intersection($geometry, geometry(@parent))) / length($geometry) > 0.5
)
), 0), 2)) || ' m ----- Detection OK ---
module load singularity
singularity run \
--cleanenv \
--bind /hpspor01/tenant1/users/pc_bix/kraken_db/:/hpspor01/tenant1/users/pc_bix/kraken_db/ \
--bind /hpspor01/tenant1/users/matt.hewitt/utilities:/hpspor01/tenant1/users/matt.hewitt/utilities \
/hpspor01/tenant1/users/pc_bix/hpcdocker.sif
module load singularity
singularity \
shell \
--cleanenv \
--bind /hpspor01/tenant1/users/pc_bix/kraken_db/:/hpspor01/tenant1/users/pc_bix/kraken_db/ \
--bind /
<template>
<div>
<h1>Async Component Example</h1>
<suspense>
<template #default>
<AsyncComponent />
</template>
<template #fallback>
<LoadingSpinner />
</template>
</suspense>
</div>
</template>
<script setup>
import { defineAsyncComponent } from 'vue';
const AsyncComponent = defineAsyncComponent(() =>
import('./AsyncComponent.vue')
);
</script>
export function textFluffy() {
$(".text-fluffy").each(function () {
var html = "";
$(this)
.contents()
.each(function () {
if (this.nodeType === 3) {
var text = $(this).text();
var lines = text.split("\n");
lines.forEach(function (line) {
var words = line.split(" ");
words.forEach(function (word) {
if (word.length > 0) {
html += "<div>";
for (var i = 0
Reference: https://ja.wikipedia.org/wiki/%E3%83%88%E3%83%A9%E3%82%A4_(%E3%83%87%E3%83%BC%E3%82%BF%E6%A7%8B%E9%80%A0)
```
struct TrieTree {
int count = 0; unordered_map<char, TrieTree> child;
};
int CountByTrieTree(const vector<string>& S) {
int ans = 0;
TrieTree root;
for (const auto& s : S) {
TrieTree* tree = &root;
for (char c : s) {
if (!tree->child.contains(c)) {
tree->child.emplace(c, TrieTr