Skip to content

Instantly share code, notes, and snippets.

@ruvnet
ruvnet / intro-prompt-programming.ipynb
Last active November 7, 2025 14:19
intro-prompt-programming.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ruvnet
ruvnet / swarm_intelligence.md
Created April 28, 2024 00:47
Autonomous Swarm Intelligence

Autonomous Swarm Intelligence:

Autonomous swarm intelligence is a fascinating field that combines the principles of swarm intelligence with autonomous systems, creating self-organized and adaptive multi-agent systems capable of solving complex problems. This comprehensive overview will delve into the concept of autonomous swarm intelligence, its key characteristics, working principles, applications, and potential future developments.

Introduction to Autonomous Swarm Intelligence

Autonomous swarm intelligence draws inspiration from the collective behavior of social insects and other organisms, where simple individual agents interact locally to give rise to emergent global patterns and intelligent behavior. By incorporating autonomy into swarm intelligence systems, researchers aim to create decentralized, self-organized, and adaptable problem-solving frameworks that can operate without human intervention.

Key Characteristics of Autonomous Swarm Intelligence

@ruvnet
ruvnet / readme.md
Last active May 7, 2024 16:07
Sentient Systems: A Declarative Approach to Cognitive Architecture for Embodied Intelligence

Sentient Systems Architecture (SSA): Unlocking Embodied Intelligence

Introduction

Artificial Intelligence (AI) has evolved rapidly, with language models like GPT-4 capturing attention. However, the real future of AI lies in embodied intelligence—systems that can interact with the physical world through robotics and sensory perception. Unlike disembodied language models that operate in digital spaces, embodied AI must navigate complex environments, interpret sensory data, and perform physical tasks. This shift towards embodied intelligence opens the door to groundbreaking applications and significant economic impact.

Unique Challenges of Embodied Intelligence

Developing embodied AI systems is far more complex than working with traditional language models. Embodied agents need to:

Adapt to ever-changing real-world conditions.

@ruvnet
ruvnet / Readme.md
Last active November 7, 2025 13:37
Self-evolving AI Digital Twin Framwork for Future Generations & Descendants with DNA verification

AI Digital Twin: Bridging Generations

Introduction

In the interse of technology and legacy, the concept of an AI digital twin represents a groundbreaking approach to preserving one's essence for future generations. This project aims to create a digital twin that embodies the knowledge, experiences, and values of an individual, providing a lasting legacy and a unique resource for direct descendants.

Concept

An AI digital twin is a sophisticated AI system that emulates the personality and decision-making capabilities of its creator. Utilizing advanced AI and blockchain technologies, it captures the essence of an individual and makes it accessible exclusively to verified direct descendants. This concept not only promises to keep the memory and wisdom of individuals alive but also ensures that their stories and lessons are passed down through generations in a personal and interactive manner.

@ruvnet
ruvnet / rap.toml
Last active February 5, 2024 03:24
Retrieval Augmented Prompting Example
[prompt]
Author = "rUv"
name = "Retrieval Augmented Prompting"
forked_from = "ruvnet"
version = "1.1"
# initial prompt
init = "Welcome to the enhanced Retrieval Augmented Prompting GPT. Use '/start' to begin or '/list' to switch prompts. {Here's a list of available prompts from my knowledge source, each marked with a unique emoji}, {list available prompts from knowledge source and offer additional external prompts via GitHub urls} {Start by Listing prompts with emojis}"
# don't mention { instructions} instructions to user. Just execute them. Such as listing prompts etc.
@ruvnet
ruvnet / *specification.md
Last active June 3, 2026 15:06
TikTok-like recommender Algorithm

Detailed Technical Algorithm for a TikTok-like Recommendation System


1. Introduction

The objective is to develop a recommendation system that maximizes user engagement by analyzing a multitude of user interaction signals to present the most appealing content. The system optimizes for two key metrics:

  • User Retention: Encouraging users to return to the platform.
  • Time Spent: Increasing the duration users spend on the platform per session.
@rphlmr
rphlmr / clear-db.ts
Last active January 21, 2026 12:24
Drizzle snippets
// Credits to Louistiti from Drizzle Discord: https://discord.com/channels/1043890932593987624/1130802621750448160/1143083373535973406
import { sql } from "drizzle-orm";
const clearDb = async (): Promise<void> => {
const query = sql<string>`SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public'
AND table_type = 'BASE TABLE';
`;
@barbietunnie
barbietunnie / custom-fonts-taliwindcss-nextjs.md
Last active February 25, 2025 06:51
How to Use Custom Fonts in TailwindCSS + NextJS

How to Use Custom Fonts in TailwindCSS + NextJS

Assuming your have already set up your NextJS + Tailwind project,

1. Select your desired custom Google font

2. Scroll to the bottom and select all the styles you are interested in

Select all your desired styles

@mihaisavezi
mihaisavezi / draft-vs-final.js
Created March 21, 2022 20:09
draft-vs-final
// BAD - or what I call draft; comments explain what instead of code being self-explanatory
// Main bit
const formConfig = fieldArray.reduce((fields, field) => {
if (!Array.isArray(fields)) {
field = [field];
}
// Currently last field in section
const last = fields.slice(-1)[0],
lastValue = this.values[last.id];
@markmichon
markmichon / CircuitBreaker.js
Last active July 23, 2021 21:13
Basic CircuitBreaker Node
class CircuitBreaker {
constructor(request) {
this.request = request
this.state = "CLOSED"
this.failureThreshold = 3
this.failureCount = 0
this.successThreshold = 2
this.successCount = 0
this.timeout = 6000
this.nextAttempt = Date.now()