Skip to content

Instantly share code, notes, and snippets.

View Andrielson's full-sized avatar
🏠
Working from home

Andrielson Ferreira da Silva Andrielson

🏠
Working from home
View GitHub Profile

Cody AI Prompts

Generate Requirements for an Idea: I have an idea for a new software project. If I haven't already given my idea to you, ask me to provide it before proceeding.

Using my project idea, generate a set of core requirements. Keep the requirements simple and focused on the aspects that are most likely to impact the architecture.

Present the list of requirements in an organized manner. Categorize as appropriate. Give each core feature a unique number I can use later to refer back to that feature.

Give me this in markdown format and offer to let me insert your generated content into a new file.

@Andrielson
Andrielson / yt-aider-cursor-windsurf-tutorial-prompts.md
Created December 22, 2024 17:54 — forked from codingthefuturewithai/yt-aider-cursor-windsurf-tutorial-prompts.md
Prompts from YouTube tutorial: Aider, Cursor, Windsurf: Build Apps with a SINGLE prompt, NO coding!

Sequential Prompts from Original RAG with aider and Claude 3.5 Sonnet Tutorial

LangChain RAG App Prompts

Initial RAG App Setup

Prompt: Use the LangChain RAG tutorial documentation, which I provided to you previously, to generate a simple RAG app in Python that uses the LangChain v0.2 framework. The app will allow the user to provide the URL for a web page and ask questions related to the contents of the page. The user interface will be the command line for now. The app should use OpenAI models and APIs. Generate all the required files, functions, methods, imports, etc. but don't implement any functions yet. Instead, just insert comments. Also, generate the Python requirements.txt file. Only implement the features I've requested.


@Andrielson
Andrielson / generic-observable-state.ts
Last active December 18, 2021 00:14
A generic observable state implementing a interface that is compatible with BehaviorSubject from RxJS.
import {
Inject,
Injectable,
InjectionToken,
ValueProvider,
} from "@angular/core";
import { BehaviorSubject, fromEvent, Observable, Subject } from "rxjs";
import { map, takeUntil } from "rxjs/operators";
const MENU_STATE_ID = "UNIQUE_MENU_STATE_ID";
@Andrielson
Andrielson / tetrasexagesimal.php
Created September 2, 2020 15:15
PHP base64int
<?php
define('ALFABETO', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/');
function tetrasexagesimal(int $numero): string {
$retorno = "";
while ($numero >= 0) {
if ($numero === 0) {
$retorno = "A{$retorno}";
break;