- Create a new directory with these three files (requirements.txt, main.py, README.md)
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python main.py
- Update
main()
to run the example prompt chains
Discover gists
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
#include "xplane_client.h" | |
/*---------------------------------------------- | |
Statics | |
----------------------------------------------*/ | |
static int client_s; | |
static sockaddr_in server_addr; | |
static sim_data_type current_state; | |
static char is_socket_open; |
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
# unofficial .gitignore for WWise + Unity projects | |
# dom at audiotankstudios dot com for questions | |
# | |
# this is based on a slightly older Unity and WWise version but, should be a decent starting point | |
# | |
# Instructions: | |
# 1) Place this in your root folder for your Unity project | |
# 2) Modify "WWiseProject/" below to be the path to your .wproj folder inside your Unity assets | |
# Unity portion based on https://github.com/github/gitignore/blob/master/Unity.gitignore |
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
OefcMxcunkm72Po71vVtX8zUN57vQtAC | |
PSKINdQe1GyxGgecYz2191H2JoS9qvgD | |
pHHlgpFt8Ka3Stb5UlTxcaEwciOeF2QM | |
61TvA2dNwxNxmWziZxKzR5aO9tFD00Nj | |
xTbXXOSBr0R65OcClImSwzadExoXU4tc | |
EJV3A4Mka2wPs7P8VBCO6xcpRe27iNJu | |
mEuInz8UH1ixLGJq4oQhEiJORERVG5xc | |
lkY0ng0XMo29zEhzyw3ibQfeEBxghwPF | |
syeCnFndQ8TE4qAGvhm9nZLBZOBgoLKd | |
7TeyFZ8oyLulHwYUOcSPzZ5w3cLYib61 |
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 os | |
import asyncio | |
import requests | |
import time | |
import json | |
import openai | |
from urllib.parse import quote_plus | |
from openai import OpenAI | |
from dotenv import load_dotenv |
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
#! /usr/bin/env sh | |
# A hyprland script for a laptop-external-monitor setup, toggling between which is in use | |
# Launch at startup to make hyprland disable the internal monitor if an external monitor is detected and enabled | |
# Additionally it's called with a keybind to switch between a laptop monitor and an external display | |
# Ideally the conditional monitor behaviour was instead done directly in hyprland.conf, but I'm not sure whether that's possible | |
# | |
# Relevant info: | |
# - hyprctl monitors: identifies currently enabled monitors |
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
async function check(req, res) { | |
const walletInfo = req.body.walletInfo as Wallet | |
if (!walletInfo?.connectItems?.tonProof) { | |
return res.status(httpStatus.BAD_REQUEST).send({ ok: false }) | |
} | |
const proof = walletInfo.connectItems.tonProof as TonProofItemReplySuccess | |
if (!proof) { | |
return res.status(httpStatus.BAD_REQUEST).send({ ok: false }) | |
} | |
This is not working complete code.
This is strictly a v0, scrapy, proof of concept for the first version of a personal AI Assistant working end to end in just ~322 LOC.
It's only a frame of reference for you to consume the core ideas of how to build a POC of a personal AI Assistant.
To see the high level of how this works check out the explanation video. To follow our agentic journey check out the @IndyDevDan channel.
Stay focused, keep building.
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
var crypto = require('crypto'); | |
// larger numbers mean better security, less | |
var config = { | |
// size of the generated hash | |
hashBytes: 32, | |
// larger salt means hashed passwords are more resistant to rainbow table, but | |
// you get diminishing returns pretty fast | |
saltBytes: 16, | |
// more iterations means an attacker has to take longer to brute force an |
NewerOlder