{
"explorer.confirmDelete": false,
"git.autofetch": true,
"trae.tab.enableSummaryAutoDisplay": true,
"AI.toolcall.v2.ide.mcp.autoRun": "alwaysRun",
"AI.toolcall.v2.ide.command.mode": "whitelist",
"cSpell.language": "en,es",
"files.exclude": {
"**/*.g.dart": true,
"**/*.freezed.dart": true
},
"window.zoomLevel": 1.2,
"[dart]": {
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.fontSize": 14,
"editor.lineHeight": 1.2,
"editor.inlayHi// in setup()
pinMode(TRIG, OUTPUT);
pinMode(ECHO, INPUT);
digitalWrite(TRIG, LOW);
delay(1000);
// in loop()
digitalWrite(TRIG, LOW);
delayMicroseconds(2);
digitalWrite(TRIG, HIGH);
delayMicroseconds(10);
digitalWrite(TRIG, LOW);
duration = pulseIn(ECHO, HIGH);
distance = duration / 58.0;
meter = distance / 100.0;/**
* @param {number} zero
* @param {number} one
* @param {number} limit
* @return {number}
*/
var numberOfStableArrays = function(zero, one, limit) {
const MOD = 1_000_000_007;
// dp0[x][y] = ways using x zeros, y ones, ending with 0
// dp1[x][y] = ways using x zeros, y ones, ending with 1
const dp0 = Array.from({ length: zero + 1 }, () =>
Array(one + 1).fill(0)
);
const dp1 = Array.from({ length: zero + 1 }, () =>
Array(one + 1).fill(0)
);
TechnicalSpecifications
DigitalAgency
1. INTRODUCTION
1.1 EXECUTIVE SUMMAR Y
1.1.1 Project Overview
AgencyOS r epresents a compr ehensive digital transfor mation initiative
designed to addr ess the critical operational challenges facing moder n
digital design and development agencies. The platfor m serves as a hybrid
CRM and pr oject management solution purpose-built for agencies,
consultancies, and service-driven businesses that manage high-touch
client r elationships. <p class="js_page_top"><a href="#"><img src="./images/common/page_top_icon.png"
srcset="./images/common/page_top_ico@2x.png 2x" alt="" width="48" height="48"></a></p>
(footer手前に記述)
SELECT
marcaProducto,
cveProducto,
cveProductoProveedor,
stock
FROM (
SELECT
MP.marcaProducto,
UP.cveProducto,
ALT.cveProductoProveedor,
SS.stock,
ROW_NUMBER() OVER (
PARTITION BY MP.marcaProducto
ORDER BY ALT.cveProductoProveedor DESC
) AS rn
FROM MARCA_PRODUCTO MP
INNER JOIN U_PRODUCTO UP
ON MP.cveMarcaProducto = UP.cveMarcaProducto
LEFT JOIN (
SELECT *
FROM (
SELECT
*
FROM ALTERNA
WHERE LEN(cveProductoProveedor) = 12
OR LEN(cv/**
* @param {number} zero
* @param {number} one
* @param {number} limit
* @return {number}
*/
var numberOfStableArrays = function (zero, one, limit) {
const MOD = 1_000_000_007;
// ------------------------------------------------------------
// dp[a][b][c][d] means:
// a = number of 0s used so far
// b = number of 1s used so far
// c = last bit placed (0 or 1)
// d = length of the current run of c
//
// Example:
// dp[3][2][1][2] = number/**
* @class BaseModal
* @extends HTMLElement
*
* Base popup element.
*/
export class BaseModal extends HTMLElement {
#originalParent = null;
#nextSibling = null;
#previouslyFocused = null;
#triggerElement = null;
/**
* When true, the modal is appended to `<body>` on open to ensure
* correct stacking context.
*
* @returns {boolean}
*/
get shouldAppendToBody() {
return this.hasAttribute('should-append-to-body');
}
/**
* When true, the modal remains at# PowerShell
- $env:LOCALAPPDATA\Microsoft\SSMS\BackupFiles\Solution1
- $env:USERPROFILE\Documents\Visual Studio 2017\Backup Files\Solution1
# Batch
- %LOCALAPPDATA%\Microsoft\SSMS\BackupFiles\Solution1
- %USERPROFILE%\Documents\Visual Studio 2017\Backup Files\Solution1
## Reference
- [Set AutoRecover options](https://learn.microsoft.com/en-us/visualstudio/ide/autorecover-environment-options-dialog-box?view=visualstudio) - This article contains highly inaccurate information.# CSV × スプレッドシート × Shift_JIS で発生する文字変換
Shift_JIS の CSV をスプレッドシート (Google Sheets, Excel, Numbers) で開いて保存し直すと、以下の文字変換が発生する。
## 1. 波ダッシュ (U+FF5E ↔ U+301C)
Shift_JIS の `0x8160` を Unicode のどの文字にマッピングするかは実装依存。
| コードポイント | 名称 | 採用元 |
|---------------|------|--------|
| U+FF5E | FULLWIDTH TILDE | Microsoft CP932 (iconv-lite 等) |
| U+301C | WAVE DASH | JIS X 0208 (スプレッドシート、Java、macOS 等) |
iconv-lite で U+FF5E → 0x8160 にエンコードした CSV を、スプレッドシートが 0x8160 → U+301C としてデコードする。UTF-8 で再保存されると U+301C になり、元の U+F# Webフォント読み込みの最適化
## `rel="preload"` と `rel="preconnect"` の違い
### `rel="preconnect"`
DNS解決・TCP接続・TLSハンドシェイクを事前に行う。リソース自体のダウンロードは行わない。
```html
<link rel="preconnect" href="https://fonts.googleapis.com" />
```
用途: リソースのURLが確定しないが、接続先オリジンがわかっている場合(例: Typekitのように動的にリソースURLが決まるケース)。
### `rel="preload"`
リソース自体をダウンロードし、ブラウザキャッシュに保存する。preconnect(接続の事前確立)とは別の機能であり、上位互換ではない。
```html
<link rel="preload" href="https://fonts.googleapis.com/css2?family=..." as="style" crossorigin />
```
用途: リソースのURLがfind . -maxdepth 4 -not -path '*/.*' -type f -exec echo "--- FICHIER: {} ---" \; -exec cat {} \; -exec printf "\n\n" \;
get sorted out
large-- Taking a sample of `batiment_groupe_id`
WITH sample_ids AS (
SELECT batiment_groupe_id
FROM fr_marts.agg_compilation_building_groupe TABLESAMPLE SYSTEM (0.01)
),
prod_rows AS (
SELECT
batiment_groupe_id,
-- Sort the array for order-independent comparison for `l_cle_interop_adr` column
(SELECT ARRAY_AGG(x ORDER BY x) FROM unnest(l_cle_interop_adr) x) AS l_cle_interop_adr_sorted,
street_number, postal_code, city, address_line_1,
s_geom_groupeBuild Mastra.ai Digital Agency with Multi-Agent System
Repository Setup
Create a new repository digital-agency (or similar name) with the following stack:
Next.js 15 (App Router)
Mastra.ai (@mastra/core, @mastra/rag)
MongoDB via Mongoose
Tailwind CSS v4
shadcn/ui
TypeScript
Step 1: Initialize the Project
npx create-next-app@latest digital-agency --typescript --tailwind --eslint --app --src-dir
cd digital-agency
npx shadcn@latest init
npm install @mastra/core @mastra/rag mongoose @ai-sdk/@::Please stop false-flagging this script over and over. This is the 3rd time I've had to update the script to deal with the false positives.
@::Nothing in this script is malicious and it is used by thousands of people *daily*.
@::Is a real person even the one deciding to flag this or is it Copilot told to flag anything it decides not to like?
@::If a campaign is using this script as a cover, please flag parts of the campaign instead of the script. This isn't the first time we experienced col