Skip to content

Instantly share code, notes, and snippets.

View roadlabs's full-sized avatar

roadlabs roadlabs

View GitHub Profile
@slintak
slintak / _README.md
Last active February 26, 2025 05:32
Meshtastic AI Chat Assistant Integration

This gist contains a proof of concept project (hacked together during one evening) aimed at connecting an AI chat assistant to the Meshtastic network, enhancing its capabilities. The assistant is designed to provide concise and helpful responses within the constraints of the Meshtastic environment.

Project Overview:

This project brings together two favorite elements: the Meshtastic network and an AI chat assistant. The assistant is based on the "FuseChat-7B-VaRM-Q5_K_M" model, and the code is written in Python.

@roadlabs
roadlabs / embed.py
Created April 18, 2023 01:28 — forked from peterw/embed.py
embedding the pdf
import openai
import streamlit as st
from streamlit_chat import message
from dotenv import load_dotenv
import os
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.vectorstores import Chroma
import openai
from langchain.document_loaders import UnstructuredMarkdownLoader
from langchain.chains.question_answering import load_qa_chain
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
# Query the OpenAI API
- Prompts the user for an OPENAI_API_KEY
- Prompts the user for a prompt to send to OpenAI
- Sends the prompt to OpenAI
- Displays the response from OpenAI in the built-in editor
*/
// Name: OpenAI Playground
@PierreMacherel
PierreMacherel / ReadMe.md
Last active August 5, 2022 06:18
Upload picture to nodocb using the rest api

to use:

npm install

then

npm run start -- baseURL token project_id table_id pathToImage

where

@jessvb
jessvb / .Teaching-Tech-to-Talk.md
Last active May 29, 2023 19:59
Appendix for "Teaching Tech to Talk: K-12 Conversational Artificial Intelligence Literacy Curriculum and Development Tools"

Teaching Tech to Talk: K-12 Conversational Artificial Intelligence Literacy Curriculum and Development Tools

This Gist contains additional information about the studies presented in "Teaching Tech to Talk: K-12 Conversational Artificial Intelligence Literacy Curriculum and Development Tools" at EAAI 2021 (focused on learning outcomes) and "'Alexa, Can I Program You?': Student Perceptions of Conversational Artificial Intelligence Before and After Programming Alexa" at IDC 2021 (focused on student perceptions of Alexa). There is also a video demo of the work.

Contents:

@oofnikj
oofnikj / answerfile
Last active May 6, 2025 17:44
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@onlurking
onlurking / programming-as-theory-building.md
Last active May 6, 2025 06:16
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct

@jessvb
jessvb / 0-convo-vlhcc-appendix.md
Last active September 9, 2021 06:02
"Convo: What does conversational programming need?" Appendix

Convo: What does conversational programming need?

This Gist contains additional information about the study presented in "Convo: What does conversational programming need?" at VL/HCC 2020.

The study can be cited as follows:

Van Brummelen, J., Weng, K., Lin, P., & Yeo, C. (2020). Convo: What does conversational programming need?. In 2020 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC).

or with BibTeX:

@tomhicks
tomhicks / plink-plonk.js
Last active May 15, 2025 13:25
Listen to your web pages