Skip to content

Instantly share code, notes, and snippets.

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

Saket Bisht gitsaket

🏠
Working from home
View GitHub Profile
@gitsaket
gitsaket / README_MINIMAL_PROMPT_CHAINABLE.md
Created August 6, 2024 11:37 — forked from disler/README_MINIMAL_PROMPT_CHAINABLE.md
Minimal Prompt Chainables - Zero LLM Library Sequential Prompt Chaining & Prompt Fusion

Minimal Prompt Chainables

Sequential prompt chaining in one method with context and output back-referencing.

Files

  • main.py - start here - full example using MinimalChainable from chain.py to build a sequential prompt chain
  • chain.py - contains zero library minimal prompt chain class
  • chain_test.py - tests for chain.py, you can ignore this
  • requirements.py - python requirements

Setup

@gitsaket
gitsaket / countries.sql
Created September 13, 2021 05:37 — forked from ereli/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes. PostgreSQL compatible
CREATE SEQUENCE country_seq;
CREATE TABLE IF NOT EXISTS country (
id int NOT NULL DEFAULT NEXTVAL ('country_seq'),
iso char(2) NOT NULL,
name varchar(80) NOT NULL,
nicename varchar(80) NOT NULL,
iso3 char(3) DEFAULT NULL,
numcode smallint DEFAULT NULL,
phonecode int NOT NULL,
@gitsaket
gitsaket / defectReporting.php
Created May 22, 2014 05:33
PHP:DefectReporting
<?php
$base=dirname(__FILE__).'/../../';
include_once($base.'/include/adminHeader.php');
$snagObj = new SnagReport();
if(isset($_GET['deleteDefect'])){
$snagObj->deleteDefectReport($_GET['deleteDefect']);
$_SESSION['msg'] = 83;
header("Location: $URL_SITE"."admin/defectReport/defectReporting.php");
}
$_SESSION['searched_defect_reprts'] = $snagObj->searchDefectReports();
@gitsaket
gitsaket / core.php
Created May 21, 2014 18:20
PHP:core
<?php
/**
* This is core configuration file.
*
* Use it to configure core behavior of Cake.
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License