Skip to content

Instantly share code, notes, and snippets.

View shyney7's full-sized avatar
💭
The fact that 'goto' can do anything is exactly why we don't use it.

Marcel shyney7

💭
The fact that 'goto' can do anything is exactly why we don't use it.
View GitHub Profile
@shyney7
shyney7 / llm-wiki.md
Created April 10, 2026 20:39 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

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.

The core idea

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.

@shyney7
shyney7 / data.geojson
Created April 15, 2024 11:21
data.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shyney7
shyney7 / main.py
Last active December 21, 2023 12:54
import dash
from dash import dcc, html
from dash.dependencies import Input, Output, State
from dash.exceptions import PreventUpdate
import dash_bootstrap_components as dash_bs
import plotly.graph_objs as go
# import pandas as pd
import datetime
from time import sleep
from collections import deque
@shyney7
shyney7 / main.cpp
Created December 12, 2023 08:56
conflicts with a previous declaration typedef File32 File;
/*
WebSerialLite Demo AP
------
This example code works for both ESP8266 & ESP32 Microcontrollers
WebSerial is accessible at 192.168.4.1/webserial URL.
Author: HomeboyC
*/
#include <Arduino.h>
#if defined(ESP8266)
@shyney7
shyney7 / awtrix_spotifiy.yaml
Created October 9, 2023 18:38 — forked from BerriJ/awtrix_spotifiy.yaml
Awtrix Spotify
alias: pixelclock_spotify
description: ""
trigger:
- platform: state
entity_id: media_player.spotify_vistagamer
condition: []
action:
- choose:
- conditions:
- condition: state
@shyney7
shyney7 / Eigen Cheat sheet
Created May 25, 2020 06:16 — forked from gocarlos/Eigen Cheat sheet
Cheat sheet for the linear algebra library Eigen: http://eigen.tuxfamily.org/
// A simple quickref for Eigen. Add anything that's missing.
// Main author: Keir Mierle
#include <Eigen/Dense>
Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d.
Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols.
Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd.
Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major.
Matrix3f P, Q, R; // 3x3 float matrix.
marcel@ubuntu:~/Documents/libtorch-cross-RTOS-test/build$ source ~/qnx700/qnxsdp-env.sh 
QNX_HOST=/home/marcel/qnx700/host/linux/x86_64
QNX_TARGET=/home/marcel/qnx700/target/qnx7
MAKEFLAGS=-I/home/marcel/qnx700/target/qnx7/usr/include
marcel@ubuntu:~/Documents/libtorch-cross-RTOS-test/build$ cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/qnx_7.0.0_linux_x86_64.cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /home/marcel/qnx700/host/linux/x86_64/usr/bin/ntox86_64-gcc
-- Check for working C compiler: /home/marcel/qnx700/host/linux/x86_64/usr/bin/ntox86_64-gcc -- works
@shyney7
shyney7 / Libtorch_crosscomp_error_with_-stdlib=libstdc++_flag
Created May 12, 2020 07:56
Libtorch cross-compiling for QNX errors (with -stdlib=libstdc++ flag)
marcel@ubuntu:~/Documents/libtorch_cross_test/build$ cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/qnx_7.0.0_linux_x86_64.cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /home/marcel/qnx700/host/linux/x86_64/usr/bin/ntox86_64-gcc
-- Check for working C compiler: /home/marcel/qnx700/host/linux/x86_64/usr/bin/ntox86_64-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/marcel/qnx700/host/linux/x86_64/usr/bin/ntox86_64-c++
marcel@ubuntu:~/Documents/libtorch_cross_test/build$ source ~/qnx700/qnxsdp-env.sh
QNX_HOST=/home/marcel/qnx700/host/linux/x86_64
QNX_TARGET=/home/marcel/qnx700/target/qnx7
MAKEFLAGS=-I/home/marcel/qnx700/target/qnx7/usr/include
marcel@ubuntu:~/Documents/libtorch_cross_test/build$ make
[ 50%] Building CXX object CMakeFiles/example-app.dir/main.cpp.o
In file included from /home/marcel/Documents/libs/libtorch/include/c10/core/Allocator.h:4:0,
from /home/marcel/Documents/libs/libtorch/include/ATen/ATen.h:3,
from /home/marcel/Documents/libs/libtorch/include/torch/csrc/api/include/torch/types.h:3,
from /home/marcel/Documents/libs/libtorch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
marcel@ubuntu:~/Documents/libtorch_cross_test/build$ make
Scanning dependencies of target example-app
[ 50%] Building CXX object CMakeFiles/example-app.dir/main.cpp.o
In file included from /home/marcel/qnx700/target/qnx7/usr/include/c++/v1/algorithm:628:0,
from /home/marcel/qnx700/target/qnx7/usr/include/c++/v1/string:439,
from /home/marcel/qnx700/target/qnx7/usr/include/c++/v1/__locale:15,
from /home/marcel/qnx700/target/qnx7/usr/include/c++/v1/ios:216,
from /home/marcel/qnx700/target/qnx7/usr/include/c++/v1/iostream:38,
from /home/marcel/Documents/libtorch_cross_test/main.cpp:1:
/home/marcel/qnx700/target/qnx7/usr/include/c++/v1/memory: In instantiation of 'struct std::__1::allocator_traits<std::__1::allocator_traits<std::__1::allocator<std::__1::pair<c10::IValue, c10::IValue> > >::rebind_alloc<ska_ordered::detailv3::sherwood_v3_entry<std::__1::pair<c10::IValue, c10::IValue> > > >':