Skip to content

Instantly share code, notes, and snippets.

@donbr
donbr / README.md
Created April 18, 2024 16:13 — forked from disler/README.md
Use these Prompt Chains to build HIGH QUALITY AI Agents (Agentic Building Blocks)

Setup

  1. Create a new directory with these three files (requirements.txt, main.py, README.md)
  2. python -m venv venv
  3. source venv/bin/activate
  4. pip install -r requirements.txt
  5. python main.py
  6. Update main() to run the example prompt chains
@DianaEromosele
DianaEromosele / Change "origin" of your GIT repository
Created August 7, 2016 00:31
Change "origin" of your GIT repository
$ git remote rm origin
$ git remote add origin [email protected]:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@geraldhumphries
geraldhumphries / entity-dialog.controller.js
Created December 19, 2015 18:26
JHipster autocomplete combobox
$scope.loadOtherEntities = function(searchQuery) {
if (searchQuery){
OtherEntitySearch.query({query: '*' + searchQuery + '*'}, function(result) {
$scope.otherEntities = result;
}, function(response) {
if(response.status === 404) {
$scope.otherEntities = OtherEntity.query({isActive: true});
}
});
} else {
@katoy
katoy / tree.json
Created February 18, 2012 00:19
jqgrid - treegrid using json
{
"total":5,
"records":5,
"page":1,
"rows":[{
"id":"1",
"cell":[
"a",
"AAA",
0,"",false,true,true