DeepSeek MOE

# DeepSeek MOE

1. deepseek moe 发展:https://mp.weixin.qq.com/s?__biz=MzUxNzQ5MTExNw==&mid=2247493157&idx=1&sn=51c0e27a347dd3fe1ed868d87f667897&scene=21#wechat_redirect

Functions types

function myFunction() {
  return { name: "John", age: 30 };
}

type MyFunctionReturnType = ReturnType<typeof myFunction>;

// MyFunctionReturnType is now { name: string; age: number }

PHPメモ

・[【PHP超入門】名前空間(namespace・use)について](https://qiita.com/7968/items/1e5c61128fa495358c1f)

install_docker_mac_no_UI.md

# Docker mac no UI
#### Instalar docker
`brew install docker`<br>
`brew installa docker-compose`

#### Editar docker config
- nvim ~/.docker/config.json<br>
`"cliPluginsExtraDirs": [
     "/opt/homebrew/lib/docker/cli-plugins"
 ]`

#### Instalar colima<br>
`brew install colima`<br>
`colima start --mount-type=virtiofs --mount=/Volumes/DataExt:w,~:w`

health_wellbeing

https://freestylefeet.com.au/products/flamingo-feet-silicone-toe-activators?variant=31268016980034

873. Length of Longest Fibonacci Subsequence

A sequence x1, x2, ..., xn is Fibonacci-like if: n >= 3 xi + xi+1 == xi+2 for all i + 2 <= n Given a strictly increasing array arr of positive integers forming a sequence, return the length of the longest Fibonacci-like subsequence of arr. If one does not exist, return 0. A subsequence is derived from another sequence arr by deleting any number of elements (including none) from arr, without changing the order of the remaining elements. For example, [3, 5, 8] is a subsequence of [3, 4, 5, 6, 7, 8].
/**
 * @param {number[]} arr
 * @return {number}
 */
var lenLongestFibSubseq = function(arr) {
    const n = arr.length;
    if (n < 3) return 0;

    const indexMap = new Map();
    for (let i = 0; i < n; i++) {
        indexMap.set(arr[i], i);
    }

    const dp = new Map();
    let maxLength = 0;

    // Iterate over all pairs (i, j) where i < j.
    for (let j = 0; j < n; j++) {
        for (let i = 0; i < j; i++) {
            const x = arr[i];
            const y = arr[j];
            con

Ben Hong - One object to rule them all

<!-- https://www.vuemastery.com/courses/component-design-patterns/one-object-to-rule-them-all -->

<!-- To heavy , to complicated, all props we dont need ...-->
<template>
  <main>
    <Component 
      v-for="content in apiResponse"
      :key="content.id"
      :is="content.type"
      :article-title="content.title"
      :article-content="content.body"
      :ad-image="content.image"
      :ad-heading="content.heading"
      @click="content.type === 'NewsArticle' ? openArticle : openAd"
     

Liquid - Rating product

{% comment %}
  Renders a product rating

  Accepts:
  - product: {Object} Product Liquid object (optional)
  - classes: {String}

  Usage:
  {% render 'product-rating', product: product %}
{% endcomment %}

{%- assign reviews_metafield = product.metafields.reviews -%}

{%- if reviews_metafield.rating.value != blank -%}
  {% liquid
    assign rating_count = reviews_metafield.rating_count
    assign rating_metafield = reviews_metafield.rating.value
    assign rating = rating_meta

Pretty Agile Footer

<footer class="position-relative">
    <a href="#top" class="backtop-btn">
        <div id="div_block-219-19294" class="ct-div-block"><img id="image-217-19294" alt="arrow-up" src="https://prettyagile.com.au/assets/images/arrow-up.png" class="ct-image"></div>
        <div id="text_block-214-19294" class="ct-text-block">Back to Top</div>
    </a>
    <section id="footer" class="position-relative">
        <div class="inner-wrapper page-container p-0 ">
            <div class="news-letter-se

Search File

how to use > cmd filename path > .\search_path.bat file.text c:\
@echo off
set arg1=%1
set arg2=%2
echo Searching %arg1% ...
setlocal
rem change to the correct directory
cd /d %arg2%
rem count the files
dir /b %arg1% /s 2> nul | find "" /v /c > %temp%\count
set /p _count=<%temp%\count
rem cleanup
del %temp%\count
rem output the number of files
rem list the files
echo File Paths:
dir /b %arg1% /s
echo Total files found: %_count%
endlocal
pause

1749. Maximum Absolute Sum of Any Subarray

You are given an integer array nums. The absolute sum of a subarray [numsl, numsl+1, ..., numsr-1, numsr] is abs(numsl + numsl+1 + ... + numsr-1 + numsr). Return the maximum absolute sum of any (possibly empty) subarray of nums. Note that abs(x) is defined as follows: If x is a negative integer, then abs(x) = -x. If x is a non-negative integer, then abs(x) = x.
/**
 * @param {number[]} nums
 * @return {number}
 */
var maxAbsoluteSum = function(nums) {
    // Initialize variables to store the max sum, current max, min sum, and current min
    let maxSum = 0;
    let currentMax = 0;
    let minSum = 0;
    let currentMin = 0;

    // Iterate through each number in the array
    for (let num of nums) {
        // Update currentMax to be the maximum of the current number or the currentMax plus the current number
        currentMax = Math.max(currentMax + n

✨ LangGraph - Annotated and TypeDict Tutorial

# Building Robust LLM Applications with LangGraph's StateGraph

## Introduction

LangGraph is a framework for building stateful applications powered by language models. At its core is the `StateGraph` class, which allows you to create explicit state machines that can coordinate complex LLM-based workflows.

This tutorial will guide you through using `StateGraph` effectively while leveraging Python's type system through `Annotated` and `TypedDict` to create more robust applications.

## U

macOffboarding.sh

#!/bin/zsh --no-rcs

# Title:  macOffboarding.sh
# Created By:  HCS Technology Group
# Version: 2
# Creation Date: 02-10-2025
# Tested on macOS Version:  macOS Sequoia
# Contact HCS: info@hcsonline.com
# Visit HCS:  https://hcsonline.com
# Last Modified Date: 02-26-2025
# Modified By: Omer Ninyo
# Contact Omer Ninyo: ninyo@wediggit.co.il
################################################################################################################################################################

Actualización fallida de Firefox imposibilita su uso

En otra ocasión lo arreglé tocando algo de los "profiles" -creo que el archivo "compatibility.ini"- en una de estas rutas: C:\Users\mgonzalezmaro\AppData\Local\Mozilla\Firefox\Profiles C:\Users\mgonzalezmaro\AppData\Roaming\Mozilla\Firefox\Profiles O incluso eliminando los de Roaming Finalmente tiré de la opción rápida por comando
C:\Program Files\Mozilla Firefox>firefox --allow-downgrade

TXT2SRT

# NOT WORKING

import tkinter as tk
from tkinter import filedialog, messagebox
import os


def generate_srt(txt_file, time_length, time_space):
    try:
        with open(txt_file, 'r', encoding='utf-8') as file:
            lines = [line.strip() for line in file if line.strip()]

        srt_filename = os.path.splitext(txt_file)[0] + ".srt"

        start_time = 0

        def format_time(ms):
            hours = ms // 3600000
            minutes = (ms % 3600000) // 60000
            seconds = 

SRT RTL Change

import re
import os
import tkinter as tk
from tkinter import filedialog, messagebox


def reverse_hebrew_text(line):
    """
    Reverse Hebrew text but keep numbers and spaces in the correct position.
    """
    # Regex pattern to capture Hebrew words separately from numbers
    words = re.findall(r'[\u0590-\u05FF]+|\d+|.', line)

    reversed_line = []
    temp_hebrew = []

    for word in words:
        if re.match(r'[\u0590-\u05FF]+', word):  # If it's a Hebrew word, store it
            te