Skip to content

Instantly share code, notes, and snippets.

INCLUDE:
- 1. Pinggy provided URL # remember it is available only for 60 minutes
- 2. PRD file
- 3. Supabase Auth login user@example.com / aa
OUTPUT:
- 1. testcases to run
- 2. results with screenshots and step-by-step running details
SPEC:
- Outcomes
- - Create 50 Testcases
INCLUDE:
- 1. PRD document
- 2. OpenAPI.json file
- 3. DB as SQL file
- 4. A mapping JSON file mapping openapi and sql
- 5. Frontend and Backend code
OUTPUT:
- 1. docker compose and other files to ensure "docker compose up" is enough to run an integrated backend and frontend connected to Supabase.
- 2. fixes for any issues in frontend or backend code
SPEC:
INCLUDE:
- 1. PRD document
- 2. OpenAPI.json file
- 3. DB as SQL file
- 4. A mapping JSON file mapping openapi and sql
OUTPUT:
- 1. Modular production-level FastAPI, SQLAlchemy, Alembic code following best practice, and model/schema/route/crud folders with relevant files in them to build auth and backend app for "LinkDem" - A tool to help 1 - 10 member teams manage small 10 - 20 task events.
SPEC:
- Outcomes
- - Python FastAPI app implementing the attached PRD document, treating the OpenAPI and SQL as the primary source of truth with mapping JSON tying them together.
INCLUDE:
- 1. PRD document
- 2. OpenAPI.json file
OUTPUT:
- 1. db.sql file with DDL to run on Supabase.
- 2. JSON mapping of Openapi (Schemas and endpoint parameters) to db.sql
SPEC:
- Outcomes
- - SQL File broken into 5 distinct groups (DDL statements, building if not exist enums, core tables, auth/RBAC tables, with soft delete mechanism, RLS enabled, policies for ALL authorized supabase users), Remember all logic stays on backend and not on DB. DB is only a storage layer
- - Mapping JSON which maps ALL POSSIBLE from openapi.json attached Endpoint | parameter | param type | field | table, eg. /student | parent_name | body | student.parent.name | parent
INCLUDE:
- 1. PRD document
OUTPUT:
- 1. openapi.json file in the data component (/data) this file is the basis of this component and the app.
- 2. Modular React/Tailwind app implementing PRD UI, built with SRP + DRY and other best practices to build landing page and production ready app for "LinkDem" - A tool to help 1 - 10 member teams manage small 10 - 20 tasks events.
SPEC:
- Outcomes
- - A valid openapi.json file which is used by the data component
- - React app implementing the attached PRD document and constraints/validations given below.
- Constraints
OUTPUT:
- 1. PRD document: describing "LinkDem" - A tool to help 1 - 10 member teams manage small 10 - 20 tasks events in a prescriptive way, guiding other agents (UI, DB, API, Testing, etc) on what you want not how to do it.
SPEC:
- Outcomes
- - One developer-ready Technical PRD in Markdown, containing but not limited to personas, user stories, acceptance criteria etc.
- Constraints
- - Have 2 Access Levels - Global / Event only - "Global" access mean a user can see/act across ALL events, while "Event-only" restricts them to specific events they're assigned to
- - Build functions for - users/roles/workflows/tasks/events
- - Add/Assign/reassign any task with a remark (mandatory) in any state(except Done)
@vickybiswas
vickybiswas / rag-reranking-gpt-colbert.ipynb
Created January 22, 2024 07:54 — forked from virattt/rag-reranking-gpt-colbert.ipynb
rag-reranking-gpt-colBERT.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"Customer":{
"Name":"",
"Phone":"",
"Email":"",
"Agreement":{
"_relation":1,
"Machine":{
"_relation":1,
"MSN":"",
@vickybiswas
vickybiswas / Add to Common Functions
Created December 5, 2012 01:14
Fix for broken menu_order
function pmc_gallery_menu_order_fix($id) {
$regex_pattern = get_shortcode_regex();
preg_match ('/'.$regex_pattern.'/s', stripslashes($_POST['content']), $regex_matches);
if ($regex_matches[2] == 'gallery') :
$attribureStr = str_replace (" ", "&", trim ($regex_matches[3]));
$attribureStr = str_replace ('"', '', $attribureStr);
$attributes = wp_parse_args ($attribureStr);
endif;
$ids = explode(',', $attributes[ids]);
$images = get_posts( array(
@vickybiswas
vickybiswas / addtofunction.php
Created July 13, 2012 03:34
Convert Caption in Attachments to a RTE
function vicky($form_fields) {
preg_match('/name="([^"]*)/', $form_fields["post_excerpt"]["html"], $matches);
$args = array("textarea_name" => $matches[1], "media_buttons" => false, 'quicktags' => true, 'textarea_rows' => '5');
preg_match('/>(.*)</', $form_fields["post_excerpt"]["html"], $matches);
ob_start();
wp_editor( html_entity_decode($matches[1]), "wpet_options[textarea_one]", $args );
$html = ob_get_clean();
$form_fields["post_excerpt"]["input"] = "html";
$form_fields["post_excerpt"]["html"] = $html;