Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@detour1999
detour1999 / gist:859794
Created March 8, 2011 03:19 — forked from nkpart/gist:859780
fork of the finest gist evar.
cherry tomatoes, roughly chopped, in a bowl with some salt and sugar
olives, chopped
capers, chopped
fresh thyme
fresh basil
fresh parsley
fetta, diced
veggie sausage/salami, sliced and pan fried
import csv
import simplegeo
OAUTH_TOKEN = ''
OAUTH_SECRET = ''
CSV_FILE = 'stops.txt'
LAYER = 'co.mager.transit.chicago'
client = simplegeo.Client(OAUTH_TOKEN, OAUTH_SECRET)

Keybase proof

I hereby claim:

  • I am detour1999 on github.
  • I am dylanr (https://keybase.io/dylanr) on keybase.
  • I have a public key whose fingerprint is A215 A100 971F 60B4 FFD7 1CE8 AE70 5ACB 55E1 3FFE

To claim this, I am signing this object:

@detour1999
detour1999 / git branch cleanup
Last active March 13, 2024 17:00
git config local branch cleanup
git config --global alias.br-cleanup '!/path/to/git-br-cleanup.sh'
@detour1999
detour1999 / ai_utils.py
Created March 14, 2024 15:32
map reduce langchain
from openai import OpenAI
from dotenv import load_dotenv
import json
import os
import structlog
from langchain.prompts import PromptTemplate
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.docstore.document import Document
from langchain.chains import AnalyzeDocumentChain, LLMChain, StuffDocumentsChain
from langchain.chains.summarize import load_summarize_chain