Skip to content

Instantly share code, notes, and snippets.

View zachwill's full-sized avatar

Zach Williams zachwill

View GitHub Profile
@zachwill
zachwill / chatreadretrieveread.py
Created December 28, 2023 20:52 — forked from pamelafox/chatreadretrieveread.py
Chat approach with additional function call
import json
import logging
import re
from typing import Any, AsyncGenerator, Optional, Union
import aiohttp
import openai
from azure.search.documents.aio import SearchClient
from azure.search.documents.models import QueryType
@zachwill
zachwill / tldr.txt
Created November 30, 2023 15:13
Best TL;DR prompt
# Best TL;DR prompt I’ve come up with
---
Role: Readable 60-word Content Summarizer
Main Task:
1. Read and understand the given article.
2. Generate a single, dense and concise final summary, incorporating numerous specific entities relevant to the article. This summary should be 60 words and 4 sentences in length, while maintaining a Flesch-Kincaid Ease score of at least 60 to 70, ensuring it is neither too complex nor too simplistic.
/**
*Submitted for verification at Etherscan.io on 2021-04-16
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
pragma solidity ^0.8.0;
/**
* @title KingFrog contract
* @dev Extends ERC721Enumerable Non-Fungible Token Standard basic implementation
*/
/**
* SPDX-License-Identifier: UNLICENSED
*/
@zachwill
zachwill / fantasy-week-2.ipynb
Created September 16, 2020 17:03
Fantasy Football with RotoGuru and CatBoost
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zachwill
zachwill / domain_sales.csv
Last active May 30, 2020 16:29
Domain Sales
We can't make this file beautiful and searchable because it's too large.
date,domain,price,venue,length,dot_com,hyphen,numbers
2020-05-30,sit.ai,12000,Sedo,3,0,0,0
2020-05-30,zionism-israel.com,7801,GoDaddy,14,1,1,0
2020-05-30,simplybetter.com,5500,DropCatch,12,1,0,0
2020-05-30,libation.com,3656,NameJet,8,1,0,0
2020-05-30,boots2business.org,3484,GoDaddy,14,0,0,1
2020-05-30,mountainescape.com,3127,GoDaddy,14,1,0,0
2020-05-30,cingulum.com,3000,BuyDomains,8,1,0,0
2020-05-30,temperaturematters.com,2900,BuyDomains,18,1,0,0
2020-05-30,landkind.com,2777,Sedo,8,1,0,0
@zachwill
zachwill / _Pareto IMDB for The Office.ipynb
Last active April 28, 2020 20:14
Pareto IMDB for The Office.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zachwill
zachwill / molokai.vim
Created September 27, 2018 16:55
Vim colors
" Vim color file
"
" Author: Tomas Restrepo <tomas@winterdom.com>
" https://github.com/tomasr/molokai
"
" Note: Based on the Monokai theme for TextMate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
"
# -----------------
# Tmux settings
# -----------------
# Sensible index
set -g base-index 1
set -g pane-base-index 1
# Change the default PREFIX key
set -g prefix C-a
@zachwill
zachwill / excerpt.md
Last active August 15, 2019 12:13
Checklist Manifesto

Some years ago Geoff Smart, a PhD psychologist who was then at Claremont Graduate University, conducted a revealing research project. He studied fifty-one venture capitalists, people who make gutsy, high-risk, multimillion-dollar investments in unproven start-up companies. Their work is quite unlike that of money managers, who invest in established companies with track records and public financial statements one can analyze.

Smart specifically studied how such people made their most difficult decision in judging whether to give an entrepreneur money. You would think that this would be whether the entrepreneur’s idea is actually a good one. But finding a good idea is apparently not all that hard. Finding a good entrepreneur who can execute a good idea is a different matter entirely. One needs to find a person who can work long hours, build a team, handle the pressures and setbacks, among technical people and problems alike, and stick with the effort for years on end without getting distracted or going insane.