Skip to content

Instantly share code, notes, and snippets.

View mikestaub's full-sized avatar
🐝
working hard on peapods.com

Mike Staub mikestaub

🐝
working hard on peapods.com
View GitHub Profile
const fetchRssFeed = async () => {
const response = await fetch(
"https://hnrss.org/frontpage?points=100&count=10"
);
const text = await response.text();
const items = text.split("<item>").slice(1);
return items.map((item) => {
let title = item.match(/<title>(.*?)<\/title>/)[1];
@mikestaub
mikestaub / aichat-config.yml
Created June 26, 2024 21:18
aichat-config.yml
model: groq
clients:
- type: openai-compatible
name: groq
api_base: https://api.groq.com/openai/v1
api_key: REPLACE_ME
- type: openai
api_key: REPLACE_ME
api_base: https://api.openai.com/v1
@mikestaub
mikestaub / cloudformation.yml
Created July 26, 2024 04:08
cloudformation template to demo AWS lambda with SSE
AWSTemplateFormatVersion: '2010-09-09'
Description: 'CloudFormation template for SSE with Lambda Function URL'
Resources:
LambdaExecutionRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
@mikestaub
mikestaub / webllm-demo.html
Last active August 13, 2024 13:31
webllm demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Triple LLM Inference Demo</title>
<style>
.container {
display: flex;
flex-direction: column;
@mikestaub
mikestaub / ilograph.com.0.2.0.yaml
Last active August 31, 2024 19:08
ilograph.com diagrams for atproto.com
# use https://app.ilograph.com to edit and view this document
# tutorials are here https://www.ilograph.com/docs/editing/tutorial/#making-some-simple-changes
# author: Mike Staub <[email protected]>
# Lexicons are here: https://rdmurphy.github.io/atproto-openapi-types
# Learn more about atproto.com here: https://github.com/atproto-developers
description: |-
Architecture and sequence diagrams for the ATprotocol and Bluesky social app network. Generated from source code and whitepaper reference. https://arxiv.org/pdf/2402.03239
resources: