I hereby claim:
- I am sboesen on github.
- I am sboesen (https://keybase.io/sboesen) on keybase.
- I have a public key whose fingerprint is C27E FFD5 F2C1 DA51 B5CB BAAD EC28 F63D D1AC 32D4
To claim this, I am signing this object:
import os | |
import json | |
import ast | |
import httpx | |
import chainlit as cl | |
from openai import AsyncOpenAI | |
api_key = os.environ.get("OPENAI_API_KEY") |
There are two prompts, that chain together. The first prompt does most of the work, and the second prompt organizes the sections. I found because of the nature of how LLMs write, I couldn't get just one prompt to never jump back and forth in topics. | |
Prompt 1, which takes as input a raw transcript and generates a structured-text version... | |
"""# Instructions | |
A transcript is provided below of a voice memo I recorded as a "note to self". please extract all the points made or thoughts described, and put them in bullet-point form. use nested bullet points to indicate structure, e.g. a top-level bullet for each topic area and sub-bullets underneath. use multi-level nesting as appropriate to organize the thinking logically. use markdown formatting with `*` instead of `-` for bullet points. | |
DO NOT OMIT ANY POINTS MADE. This is not a summarization task — your only goal is to structure the thoughts there so they are logically organized and easy to read. Be concise because the reader is busy, but again DO NOT omit any |
I hereby claim:
To claim this, I am signing this object:
Copyright (c) 2016 Stefan Boesen | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE O |
alpha = 'abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ'.scan(/./) | |
alpha.each do |i| | |
key_s = "Gr34tW0RkEnjoY1T" | |
key_e = ""; | |
res = `./crypt #{key_s}#{i}#{key_e}` | |
if res.include? "No repeated" | |
else | |
puts "#{i}: #{res}" | |
end |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
use std::io::BufferedReader; | |
use std::io; | |
use rand::Rng; | |
fn main() { | |
println!("INPUT:"); | |
let mut reader = BufferedReader::new(io::stdin()); | |
let input = reader.read_line().unwrap(); | |
let num = from_str::<int>(input.slice_to(input.len() -1)); |
test gist |
sdf% which bboard | |
/usr/pkg/bin/bboard | |
sdf% ls -l /usr/pkg/bin/bboard | |
---x--s--x 1 com com 7356 Aug 7 2013 /usr/pkg/bin/bboard | |
sdf% cp /usr/pkg/bin/bboard . | |
cp: /usr/pkg/bin/bboard: Permission denied | |
sdf% uname -a | |
NetBSD sdf 6.1_STABLE NetBSD 6.1_STABLE (SDF6.amd64) #0: Tue Nov 26 12:49:14 UTC 2013 root@bjork:/spare/netbsd/src/sys/arch/amd64/compile/SDF6.amd64 amd64 | |
sdf% |