Skip to content

Instantly share code, notes, and snippets.

@spicer23
spicer23 / README.md
Created April 3, 2024 05:31 — 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
@spicer23
spicer23 / googleMaps.js
Created September 26, 2023 02:48 — forked from adrianhorning08/googleMaps.js
Scrape Google Maps
import * as cheerio from "cheerio";
import puppeteerExtra from "puppeteer-extra";
import stealthPlugin from "puppeteer-extra-plugin-stealth";
import chromium from "@sparticuz/chromium";
async function searchGoogleMaps() {
try {
const start = Date.now();
puppeteerExtra.use(stealthPlugin());
@spicer23
spicer23 / getAngelinaCountyProperties.js
Created September 8, 2022 10:27 — forked from aarmora/getAngelinaCountyProperties.js
Get tax auction properties from Angelina county Texas
// Paste this in the dev tool console on the first page
// Url for first page:
// http://taxsales.lgbs.com/api/property_sales/?county=ANGELINA+COUNTY&in_bbox=-95.62192173425001,30.916356125972055,-93.51254673425001,31.635837153739583&offset=0&ordering=precinct,sale_nbr,uid&sale_type=SALE,RESALE,STRUCK+OFF,FUTURE+SALE&state=TX
function getTheProperties() {
// Get any existing stuff
allThePropertiesThusFar = JSON.parse(window.localStorage.getItem('realEstateProperties'));
// If we don't have any yet, let's set it to an array
allThePropertiesThusFar = allThePropertiesThusFar ? allThePropertiesThusFar : [];
@spicer23
spicer23 / ipfs_ethereum.txt
Created January 2, 2018 07:30 — forked from nagydani/ipfs_ethereum.txt
Integration of ipfs and Ethereum
In this document, I outline the tasks required for storing and
presenting the Ethereum block chain and Web-based Ethereum Đapps in
ipfs. Currently, ipfs is very good at locating and delivering content
using a global, consistent address space and it has a very well designed
and implemented http gateway. However, Ethereum's use cases require
additional capabilities that ipfs currently does not provide.
Redundancy and persistency