Skip to content

Instantly share code, notes, and snippets.

@yyoncho
yyoncho / chaira-2026-opportunities.md
Last active June 1, 2026 07:05
ПАВЕЦ Чаира според отворените данни

ПАВЕЦ Чаира 2026 — Пропуснати възможности (rolling 48h, 15-min цени)

Методология

За всеки ден се търси оптималният прозорец за разряд и най-евтиният прозорец за зареждане в 48h преди разряда. Прозорците са с променлива дължина при 15-минутна резолюция на цените.

Параметри: 1 агрегат: 216 MW турбина / 197 MW помпа | 2 агрегата: 432/394 MW | Резервоар: 7 344 MWh | КПД: 75%

Диапазон на прозорците:

@yyoncho
yyoncho / ttf_merit_shift.html
Created May 15, 2026 07:24
TTF gas vs BG/GR electricity price — merit order shift 2020-2026
<html>
<head><meta charset="utf-8" /></head>
<body>
<div> <script>window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
<script charset="utf-8" src="https://cdn.plot.ly/plotly-3.5.0.min.js" integrity="sha256-fHbNLP+GlIXN+efbQec78UkemUz3NJp7UmfGxC1tNxs=" crossorigin="anonymous"></script> <div id="b7043764-e796-4316-a5b5-6ad18fe8872e" class="plotly-graph-div" style="height:620px; width:100%;"></div> <script> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("b7043764-e796-4316-a5b5-6ad18fe8872e")) { Plotly.newPlot( "b7043764-e796-4316-a5b5-6ad18fe8872e", [{"customdata":["2020-01","2020-02","2020-03","2020-04","2020-05","2020-06","2020-07","2020-08","2020-09","2020-10","2020-11","2020-12"],"hovertemplate":"\u003cb\u003e2020\u003c\u002fb\u003e\u003cbr\u003eTTF: %{x:.1f} EUR\u002fMWh\u003cbr\u003e\u0411\u0413 \u0442\u043e\u

Nimble features

Nimble feature(variant) represents grouping of dependencies/compile flags that are propagated to the consumers of a particular package. The main goal is to isolate the dependencies that may or may not be required by upstream packages and allow upstream packages to choose what set of functionality is enabled for their needs.

Syntax for the nimble file:

Create a menu(breakfast, lunch, dinner) for 1 month for 3 people for someone who
enjoys cooking in instant pot and air fryer. We cook in the oven and using
frying pan from time to time too. The meals should be made by ingredients
available in Bulgaria. Include the average prices that you have for the region
of Sofia, Bulgaria. If you don't have such, you may use whatever feels more
appropriate. Include the ingredients after each meal.
When creating the menu, consider:
1. My wife does not eat diary
2. My kid is 3 years old
git clone https://github.com/yyoncho/langserver
cd langserver
nimble build --silent
export PATH=$PATH:$(pwd)
echo $PATH
cd ..
Processor
11th Generation Intel® Core™ i7-11850H vPro® (24 MB Cache, 8 Core, 16 Threads, 2.50 GHz to 4.80 GHz, 45 W)
Operating System
Ubuntu® Linux® 20.04 LTS, 64-bit
Video Card
Integrated:
Intel® UHD Graphics
[Nimbus env] ➜ beacon_chain git:(stable) /home/yyoncho/Sources/nim/Nim-2/nimsuggest/nimsuggest nimbus_beacon_node.nim
Hint: used config file '/home/yyoncho/Sources/nim/nimbus-eth2/vendor/nimbus-build-system/vendor/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/yyoncho/Sources/nim/nimbus-eth2/vendor/nimbus-build-system/vendor/Nim/config/config.nims' [Conf]
Hint: used config file '/home/yyoncho/Sources/nim/nimbus-eth2/config.nims' [Conf]
Hint: used config file '/home/yyoncho/Sources/nim/nimbus-eth2/beacon_chain/nim.cfg' [Conf]
Hint: used config file '/home/yyoncho/Sources/nim/nimbus-eth2/beacon_chain/nimbus_beacon_node.nim.cfg' [Conf]
/home/yyoncho/Sources/nim/Nim-2/nimsuggest/nimsuggest.nim(651) nimsuggest
/home/yyoncho/Sources/nim/Nim-2/nimsuggest/nimsuggest.nim(648) handleCmdLine
/home/yyoncho/Sources/nim/nimbus-eth2/vendor/nimbus-build-system/vendor/Nim/compiler/cmdlinehelper.nim(77) loadConfigsAndRunMainCommand
/home/yyoncho/Sources/nim/Nim-2/nimsuggest/nimsuggest.nim(536) mainCommand
int main(void) {
int pfd[2]; /* Pipe’s file descriptors. */
pid_t child_pid; /* Child’s process id. */
/* Set up pipe. */
if (pipe(pfd) == -1) {
fprintf(stderr, "Call to pipe failed.\n");
exit(1);
}
/* FILE *out = fdopen(pfd[1], "a"); */
(defun lsp--client-capabilities (&optional custom-capabilities)
"Return the client capabilities appending CUSTOM-CAPABILITIES."
(append
`((workspace . ((workspaceEdit . ((documentChanges . t)
(resourceOperations . ["create" "rename" "delete"])))
(applyEdit . t)
(symbol . ((symbolKind . ((valueSet . ,(apply 'vector (number-sequence 1 26)))))))
(executeCommand . ((dynamicRegistration . :json-false)))
,@(when lsp-enable-file-watchers '((didChangeWatchedFiles . ((dynamicRegistration . t)))))
(workspaceFolders . t)
(setq my/message
'(:jsonrpc "2.0" :method "initialize" :params
(:processId nil :rootPath "/home/yyoncho/Sources/CPP/testCPP" :clientInfo
(:name "emacs" :version "GNU Emacs 28.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)\n of 2020-12-24")
:rootUri "file:///home/yyoncho/Sources/CPP/testCPP" :capabilities
((workspace
(workspaceEdit
(documentChanges . t)
(resourceOperations .
["create" "rename" "delete"]))