// []T{e1, e2, e3, ...}
// Where T is the type of the elements (e.g., int, string, bool, struct),
// and e1, e2, e3, etc., are the initial elements of the slice
fruits := []string{"Apple", "Banana", "Orange"}
services:
portainer:
container_name: portainer
image: portainer/portainer-ce:latest
ports:
- 9000:9443
# - 8000:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - ./data:/data
restart: always
## Ignore Permission Changes After Copying a Git Repository (Linux)
**Purpose**
Resolve false Git changes caused by permission differences (e.g., executable bit) after copying a repository between Linux machines.
---
### Check current setting
```bash
git config --get core.fileMode
```
---
### Disable permission tracking for this repository
```bash
git config core.fileMode false
```
---
### Reset working tree to remove permission-only changes
```bash
git checkout -- .
```
---
**Notes/**
* Definition for a binary tree node.
* function TreeNode(val, left, right) {
* this.val = (val===undefined ? 0 : val)
* this.left = (left===undefined ? null : left)
* this.right = (right===undefined ? null : right)
* }
*/
/**
* @param {TreeNode} root
* @return {TreeNode}
*/
var subtreeWithAllDeepest = function(root) {
// Helper DFS returns an object: { depth, node }
// depth = max depth from this node downward
// node = the subtree root that contains all dee METHOD move_batch.
DATA: lt_return TYPE bapiret2_t.
DATA: wt_zsd_trasf_log TYPE zsd_trasf_log.
DATA: lv_index TYPE sy-tabix.
SELECT mblnr,
mjahr,
matnr,
charg,
werks,
kdauf,
kdpos,
sjahr,
smbln
FROM mseg
INTO TABLE @DATA(lt_mseg_413)
WHERE bwart = @mc_trasf
AND kdauf = @mv_salesdocument.
SELECT mblnr,
mjahr,
matnr,
charg,
// In Go, arrays are value types, so they can be compared directly if their elements are comparable.
a := [3]int{1, 2, 3}
b := [3]int{1, 2, 3}
c := [3]int{3, 2, 1}
fmt.Println(a == b) // true
fmt.Println(a == c) // false
_______ JEANSON ANCHETA_______
💻💸 Fresh Logs Pricing 💸💻
🔐 UK Logs / Clean Bank Drops (GBP)
💰 10K GBP = $250
💰 12K GBP = $300
💰 16K GBP = $350
💰 20K GBP = $500
💰 30K GBP = $800
🛡️ Verified • HQ Access • Fast Delivery
💬 DM for escrow or direct 🔥
WESTERN UNION / MONEY GRAM/BANKS LOGINS/BANK TRANFERS/PAYPAL TRANSFERS WORLDWIDE/CASHAPP/ZELLLE/APPLE PAY/SKRILL/VENMO TRANSFER
Telegram:@JeansonCarder
Group: https://t.me/+2__ynBAtFP00M2Fk
Group: https://t.me/+CsF2t7HvV_ljMmU8
Y# Next.js App Routerで静的生成ページに動的パラメータを追加する際の注意点
## 状況
例えばSSGもしくはISRを使用しているページに、クエリパラメータに応じて表示内容を変える機能を追加する場合。
具体的には、一覧ページからの遷移時に ?from=/path/to/list のようなパラメータを付与し、そのパラメータを元にパンくずリストを動的に生成する要件。
## 失敗するアプローチ
Next.js App Router では、ページコンポーネントのsearchParams propsから直接クエリパラメータを取得できる。
このアプローチは開発モード(next dev)ではエラーなく動作する。静的生成は本番ビルド(next build)時に実行されるため、searchParams と静的生成設定の矛盾はビルド時に初めて DYNAMIC_SERVER_USAGE エラーとして検出される。
## 原因
searchParams は「動的レンダリングを引き起こす機能」に分類される。(https://nextjs.org/docs/app/guides/cach/**
* @param {number[]} nums1
* @param {number[]} nums2
* @return {number}
*/
var maxDotProduct = function(nums1, nums2) {
const m = nums1.length;
const n = nums2.length;
// Create a DP table where:
// dp[i][j] = max dot product using nums1[0..i-1] and nums2[0..j-1]
//
// We initialize everything to -Infinity because:
// - We want to allow negative numbers.
// - We want to ensure that taking no elements is never considered valid.
const dp = Array.from({ lsudo -u <user> bash- Given 2 sheets: sheet 1 and sheet 2
- Sheet 1 contains column sku
- Sheet 2 contains column compatibility (comma separated string which may contain
the sku from sheet 1 column sku)
- Result: Sheet 3, for every sku in sheet 1, find the compatible part in sheet 2
return the part name, comma seperated
### Sheet 1
id | sku
---|---
1 | ABC
### Sheet 2
Part ID | Model Compatibilty
--|--
1039228 | "ABC, DEF"
AB9034-89 | "VDR, ABC"
HUDH90-0122 | "BDN, EDF"
### Sheet 3
sku | compatibilities
--B
outing
unwind
idle
avid
pastime
gym bunny
hiking
couch potato
Questions:
blow the cobwebs away - clean your mind
pound the pavements -
know your audience
set up boundaries
daily grindfruits := [4]string{"Apple", "Banana", "Orange", "Grapes"}
for index, fruit := range fruits {
fmt.Println(position, fruitName)
}
for i, v := range fruits {
fmt.Println(i, v)
}
for position, fruitName := range fruits {
fmt.Println(position, fruitName)
}
div#tm-extra-product-options {
display: none;
}
.tm-totals-form-main.tc-show {
display: none;
}Xpra
If anyone is facing issues restarting their Xpra server after yesterday’s reboot, please try the following steps:
xpra list – to check whether there is an existing (possibly expired) session
xpra stop – to stop any existing session, if found
. start_xpra – to start the Xpra server again
Please feel free to reach out if you have any questions or need assistance.
/**
* Definition for a binary tree node.
* function TreeNode(val, left, right) {
* this.val = (val===undefined ? 0 : val)
* this.left = (left===undefined ? null : left)
* this.right = (right===undefined ? null : right)
* }
*/
/**
* @param {TreeNode} root
* @return {number}
*/
var maxProduct = function(root) {
const MOD = 1_000_000_007;
// ---------------------------------------------
// First pass: compute total sum of the tree
// --------------------------