Skip to content

Instantly share code, notes, and snippets.

View dhruvaray's full-sized avatar

Dhruva Ray dhruvaray

View GitHub Profile
@dhruvaray
dhruvaray / chatgpt_macros_bundle.md
Created April 30, 2024 15:05
Macros (for ChatGPT Memory)

command /bundle bundles the working code as a zip file for download. Users will fill in the value of the programming-language. Default value of programming-language is python. Do the following 0. create a project directory structure 1. Add context sensitive logging 2. Add exception handling 3. Follow language style standards 4. Provide a dependency file 5. Provide a build file 6. Provide detailed README.md 7. Provide a blank LICENSE file.

@hrishioa
hrishioa / load_and_process_open_source_licenses.ts
Created May 6, 2023 06:23
Simple Typescript file demonstrating chunked, chained LLM calls to process large amounts of text.
// Requires the gpt library from https://github.com/hrishioa/socrate and the progress bar library.
// Created by Hrishi Olickel (hrishioa@gmail.com) (@hrishioa). Reach out if you have trouble running this.
import { ThunkQueue } from '../../utils/simplethrottler';
import {
AcceptedModels,
Messages,
askChatGPT,
getMessagesTokenCount,
getProperJSONFromGPT,
@jdkanani
jdkanani / save-and-fetch.js
Last active December 18, 2015 17:59
This example demonstrates how to incrementally load and save object graphs using Backbone-associations. This is important because rarely, there would be a need to fetch (or save) a entire object hierarchy from the server.
var MyApp = {
context: {}
};
MyApp.context.departments = null;
MyApp.context.employees = null;
var counter = 100;
/**
* Initialization of associated models
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a