Skip to content

Instantly share code, notes, and snippets.

@SMSAgentSoftware
SMSAgentSoftware / Invoke-AIChat.ps1
Last active June 2, 2025 20:23
PowerShell script to chat interactively with various AI models using their REST APIs. Requires API keys stored in an Azure KeyVault.
function Invoke-AIChat {
<#
.SYNOPSIS
Invokes an AI chat model to generate responses based on user prompts.
.DESCRIPTION
This function provides a unified interface to interact with various AI language model providers including:
- Azure OpenAI Services
- OpenAI API
- Anthropic Claude
@disler
disler / README.md
Last active July 8, 2025 20:05
Use Meta Prompting to rapidly generate results in the GenAI Age

Meta Prompting

In the Generative AI Age your ability to generate prompts is your ability to generate results.

Guide

Claude 3.5 Sonnet and o1 series models are recommended for meta prompting.

Replace {{user-input}} with your own input to generate prompts.

Use mp_*.txt as example user-inputs to see how to generate high quality prompts.

@jakubsob
jakubsob / download_ci_snaps.R
Last active December 21, 2024 19:45
Download test snapshots generated on CI
#' Download the latest snapshot artifacts from the CI and update local snapshots
#'
#' @details
#'
#' This function uses Github API to download the latest snapshot artifacts from the CI and update the local snapshots.
#'
#' In order for the API to work it needs to be authenticated.
#'
#' Run the following command in the terminal to authenticate the API:
#' ```
@shagunmistry
shagunmistry / file_organizer.py
Created November 26, 2024 04:07
AI Files Organizer
import os
import shutil
from pathlib import Path
from typing import List, Dict
import mimetypes
from datetime import datetime
import logging
import anthropic
import asyncio
from getpass import getpass
@david-diviny-nousgroup
david-diviny-nousgroup / llm-diagram
Created November 17, 2024 23:24
Generate a Mermaid.js diagram using LLM with elmer package to explain code
library(elmer)
library(tidyverse)
library(DiagrammeR)
library(glue)
code <- "starwars %>%
group_by(species) %>%
summarise(
n = n(),
mass = mean(mass, na.rm = TRUE)
@dylanpieper
dylanpieper / app.R
Last active November 29, 2024 02:32
Compare Sequential and Parallel Chats Using Elmer
library(shiny)
library(furrr)
library(elmer)
library(text2vec)
library(tm)
library(bslib)
library(waiter)
# Set your API keys upfront
Sys.setenv(OPENAI_API_KEY = "")
@jeroen
jeroen / devtest.png
Last active November 8, 2024 21:53
Proposal for development tests
devtest.png
@jimbrig
jimbrig / jq-cheetsheet.md
Created September 21, 2024 00:05 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@ruvnet
ruvnet / registry-optimizer.md
Created September 16, 2024 11:32
Ai powered windows 11 registry optimization
@ShaunLawrie
ShaunLawrie / ChatTTY.ps1
Last active September 15, 2024 22:57
ChatTTY - A wireframe of a chat app in PwshSpectreConsole
#Requires -Modules @{ ModuleName = 'PwshSpectreConsole'; RequiredVersion = '2.1.1' }
Set-SpectreColors -AccentColor DeepPink1
# Build root layout scaffolding for:
# .--------------------------------.
# | Title | <- Update-TitleComponent will render the title
# |--------------------------------|
# | | <- Update-MessageListComponent will display the list of messages here
# | |