- Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
- Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
| # Docs / install guide (custom ZHA quirks + FP300 example): | |
| # https://meshstack.de/post/home-assistant/zha-custom-quirks/ | |
| # | |
| # Upstream PR: https://github.com/zigpy/zha-device-handlers/pull/4504 | |
| # Tracking issue: https://github.com/zigpy/zha-device-handlers/issues/4487 | |
| """Quirk for Aqara lumi.sensor_occupy.agl8.""" | |
| import asyncio | |
| from typing import Any, Final |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
| ############################################################################################################ | |
| # Get-ConsoleAsHtml.ps1 | |
| # | |
| # The script captures console screen buffer up to the current cursor position and returns it in HTML format. | |
| # | |
| # Returns: UTF8-encoded string. | |
| # | |
| # Example: | |
| # | |
| # $htmlFileName = "$env:temp\ConsoleBuffer.html" |
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
| if (window.location.origin !== "https://www.instagram.com") { | |
| window.alert( | |
| "Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.", | |
| ); | |
| window.location.href = "https://www.instagram.com"; | |
| console.clear(); | |
| } | |
| const fetchOptions = { | |
| credentials: "include", |
| #!/usr/bin/env python3 | |
| from lib.core.enums import PRIORITY | |
| __priority__ = PRIORITY.NORMAL | |
| def dependencies(): | |
| pass | |
| def tamper(payload, **kwargs): | |
| if payload: |
| # Add wisely, as too many plugins slow down shell startup. | |
| # history and fzf plugins allows ctrl+r fzf like command search | |
| plugins=(git history fzf) | |
| alias cdf='cd "$(dirname "$(fdfind -a -t f . ~ --hidden --exclude .git 2>/dev/null | fzf --preview="bat --style=full --color=always {}" --preview-window=right)")"' | |
| # Define la función para buscar y navegar (cd function with fzf) | |
| function cdf_widget { | |
| # Ejecuta fzf y fd con bat para la vista previa. | |
| # Usamos -a para rutas absolutas y 2>/dev/null para ignorar errores de permisos | |
| local selected_file |
| /* SQL Server Statistics Explained with Playing Cards | |
| v0.1 - 2020-08-14 | |
| https://BrentOzar.com/go/learnstats | |
| This first RAISERROR is just to make sure you don't accidentally hit F5 and | |
| run the entire script. You don't need to run this: | |
| */ | |
| RAISERROR(N'Oops! No, don''t just hit F5. Run these demos one at a time.', 20, 1) WITH LOG; | |
| GO |