orchestrator.py

from typing import Optional

from core.agents.architect import Architect
from core.agents.base import BaseAgent
from core.agents.bug_hunter import BugHunter
from core.agents.code_monkey import CodeMonkey
from core.agents.code_reviewer import CodeReviewer
from core.agents.developer import Developer
from core.agents.error_handler import ErrorHandler
from core.agents.executor import Executor
from core.agents.external_docs import ExternalDocumentation
from core.agents.human_input import HumanInput
f

Shopify discounts + refunds behavior

Issue:
> We are seeing incorrect refund amounts on imported historical orders that include discounts. Because discount amount is distributed between all items, refunding a full-price item can cause part of the original discount to be removed. A common scenario is an order containing a full-price item and a gift item discounted by 100%. When the full-price item is refunded, the system recalculates the discount distribution and the refund/discount amounts become inaccurate.

Reason:
> Shopify will

Blog Search + Filter

Matrix PP that acts in place of the blog main. Lists the posts and also includes a tag dropdown and input text search. | eg https://connerprairie2025.speakcreative.com/blog
{% assign base_classname = 'post-feed' %}
{% assign blogPage = SitePage %}
{% assign posts = Module.FieldValues.BlogSource.Entries %}
{% assign terms = posts[0].SiteTags %}
{% for entry in posts offset:1 %}
  {% assign terms = terms | Concat: entry.SiteTags | Uniq | OrderBy: 'Name', 'asc' %}
{% endfor %}
{% assign postsPerPage = Module.FieldValues.PostsPerPage | Default: 12 %}
{% if PageURLPath contains 'page' %}
  {% assign currentPage = PageURLPath | Split: '/' | Last | Round %}
{% e

agent-components

'use client'

import { LucideIcon } from 'lucide-react'

interface AgentCardProps {
  agent: {
    id: string
    name: string
    description: string
    icon: LucideIcon
    color: string
  }
  isSelected: boolean
  onClick: () => void
}

export default function AgentCard({ agent, isSelected, onClick }: AgentCardProps) {
  const Icon = agent.icon

  return (
    <div
      onClick={onClick}
      className={`
        agent-card-hover
        cursor-pointer
        bg-white dark:bg-gray-800
   

mastera-agents-nextjs-app

import { Agent } from '@mastra/core/agent'
import { nim, DEFAULT_MODEL } from '../nim-client'

export const projectManagerAgent = new Agent({
  name: 'Project Manager',
  instructions: `You are an expert Project Manager AI specializing in software development projects.

Your responsibilities include:
- Breaking down project requirements into actionable tasks
- Creating project timelines and milestones
- Coordinating between different specialized agents (Research, Design, Frontend, Backend, QA)
-

Extend WP login session

Saved from https://kb.hosting.com/docs/extending-login-session-on-wordpress-site
add_filter( 'auth_cookie_expiration', 'extend_login_session' );

function extend_login_session( $expire ) {

  return 31556926; // seconds for 1 year time period

}

git導入

gitインストール
ローカルとgithubを接続(名前とアドレスを登録)

翻墙vpn vps 搭建

# 开启 tcp bbr,https://github.com/iMeiji/shadowsocks_install/wiki/%E5%BC%80%E5%90%AF-TCP-BBR-%E6%8B%A5%E5%A1%9E%E6%8E%A7%E5%88%B6%E7%AE%97%E6%B3%95
# 开机后 uname -r 看看是不是内核 >= 4.9。
# 执行 lsmod | grep bbr,如果结果中没有 tcp_bbr 的话就先执行:
sudo modprobe tcp_bbr
echo "tcp_bbr" | sudo tee --append /etc/modules-load.d/modules.conf

# 然后执行
echo "net.core.default_qdisc=fq" | sudo tee --append /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee --append /etc/sysctl.conf
# 保存生效
sudo sysctl -p

# 执行
s

termine generieren v2

# ------------------------------------------------------------
# Automatischer Paketimport & -Installation
# ------------------------------------------------------------
import sys
import subprocess
import importlib
import importlib.util

def ensure_package(pkg_name, import_name=None):
    """
    Stellt sicher, dass ein Paket installiert und importierbar ist.
    Falls nicht installiert, wird es automatisch via pip installiert.
    """
    name_to_check = import_name or pkg_name
 

README.MD

  # 👋 Hi, I'm [Susant Kumar Sahoo]

<div align="center">
  
  [![Typing SVG](https://readme-typing-svg.demolab.com?font=Fira+Code&weight=600&size=28&pause=1000&color=2E9EF7&center=true&vCenter=true&width=600&lines=Data+Scientist;Machine+Learning+Engineer;AI+Enthusiast;Problem+Solver)](https://git.io/typing-svg)
  
</div>

## 🚀 About Me

I'm a passionate Data Scientist with expertise in building end-to-end machine learning solutions. I love turning data into actionable insights and creating intel

1925. Count Square Sum Triples

A square triple (a,b,c) is a triple where a, b, and c are integers and a2 + b2 = c2. Given an integer n, return the number of square triples such that 1 <= a, b, c <= n.
/**
 * @param {number} n
 * @return {number}
 */
var countTriples = function(n) {
    // Initialize a counter to keep track of valid triples
    let count = 0;
    
    // Loop through all possible values of 'a'
    for (let a = 1; a <= n; a++) {
        // Loop through all possible values of 'b'
        for (let b = 1; b <= n; b++) {
            // Compute a^2 + b^2
            let sum = a * a + b * b;
            
            // Take the square root to see if it's a perfect square
            

Fancy YooTheme Slider

Fancy YooTheme Slider. YooTheme .json attached. ![](https://cdn.cacher.io/attachments/u/3n0fz6yyl8eu5/mRClvTTLkf2oKkxDs1Guq5RizE_B4cju/fancyslider.png) [Fancy_Slider.json](https://cdn.cacher.io/attachments/u/3n0fz6yyl8eu5/NUuXVVlOt2fIBPYXdh655Xbnn8Byqyqf/Fancy_Slider.json)
@use '../util/'as u;
@use '../globals'as g;
// @use '../globals/buttons'as buttons;


.fancy_slider_section {
    .fancy_slider_row {
        display       : flex;
        flex-direction: row;


        .uk-width-1-1 {
            width         : 100%;
            display       : flex;
            flex-direction: row;
            max-height    : 690px;
            height        : 690px;

            @include u.breakpoint-down('large') {
                max-height: 500px;
                height  

パーミッションの読み方

# パーミッションの読み方

## 基本構造

パーミッションは3桁の数字で表現
各桁は所有者、グループ、その他のユーザーの権限を示す

### 例: 755の場合

1桁目(7): 所有者の権限
2桁目(5): グループの権限
3桁目(5): その他のユーザーの権限


## 数字の意味
各桁は以下の数値の合計:

4 = 読み取り (read, r)
2 = 書き込み (write, w)
1 = 実行 (execute, x)
0 = 権限なし (-)

### 計算例:
7 = 4+2+1 = rwx (すべて可能)
6 = 4+2   = rw- (読み書き可能)
5 = 4+1   = r-x (読み実行可能)
4 = 4     = r-- (読み取りのみ)
0 = 0     = --- (権限なし)


## よく使うパーミッション
644 (rw-r--r--)
  所有者: 読み書き
  グループ: 読み取り
  その他: 読み取り
  → 一般的なファイル、設定ファイル、ドキュメント

755 (rwxr-xr-x)
  所有者: 読み書き実行
  グループ: 

aria-labeledbyで紐づけていればhtmlが変更されたとき読み上げも変更される

<p id="counter-text">カウント: 0</span>
<button type="button" aria-labelledby="counter-text" id="count-button">クリックするとカウントが読み上げられるが、このテキストは無視される</button>

取得予定もしくは取得済みのドメインが過去に使用されているか確認する方法

https://whois.jprs.jp/

javascriptのsetとhasのサンプル

// new Set(): 重複のない値の集合を作成する(Setオブジェクト)
// - 同じ値は一度だけ格納される
// - インデックスは存在しない
const mySet = new Set();

// Set.add(): セットに値を追加する
mySet.add("apple");
mySet.add("banana");
mySet.add("apple"); // 重複のため実際には追加されない

console.log("mySet:", mySet);

// Set.has(): セットに指定した値が存在するかを確認する
// 戻り値: boolean (true/false)
console.log('mySet.has("apple"):', mySet.has("apple")); // true
console.log('mySet.has("banana"):', mySet.has("banana")); // true
console.log('mySet.has("orange"):', mySet.has("orange")); // false