This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { sleep } from "bun"; | |
const secure_the_border_act_path = "./secure_the_border_act.txt"; | |
const tax_relief_act_path = "./tax_relief_for_american_families_act.txt"; | |
/// Here are two bills that we want to upload to Trieve | |
const bills = [ | |
await Bun.file(secure_the_border_act_path).text(), | |
await Bun.file(tax_relief_act_path).text(), | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net::ERR_BLOCKED_BY_CLIENT | |
(anonymous) @ companies:18 | |
(anonymous) @ companies:33 | |
// i made this mini script because i am trying to collect the details of the existing public YC companies for a search demo with trieve | |
// with algolia, a search for "cloud storage" doesn't return Dropbox and a search for "bug monitoring" doesn't return PagerDuty, etc. | |
// find and build with trieve at github.com/devflowinc/trieve | |
// to use, navigate to https://www.ycombinator.com/companies and paste the following into the console | |
const sleepPromise = (ms) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// paste this into the console when viewing your skiff inbox | |
const elementToScroll = document.querySelector("#mailListElement > div.sc-irmRQO.iHuLQh > div > div:nth-child(1) > div"); | |
setInterval(() => { | |
console.log("paginating"); | |
elementToScroll.scrollTop = elementToScroll.scrollHeight; | |
}, 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import io | |
import json | |
import os | |
import re | |
import string | |
import requests | |
import tiktoken | |
import pandas as pd | |
import redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator $(which alacritty) 50 | |
sudo update-alternatives --config x-terminal-emulator |