Linkedin: www.linkedin.com/in/henrique-surian-stobbe
GitHub: github.com/Persioqq
Email: henriquesstobbe@gmail.com
Hello! I am Henrique from Brazil! I started to code when I was 11 years old by the curiosity and by the fun of building things. Currently I am finishing the high school and preparing for the university. I like science, literature, journalism and technology.
QChat is a simpler way to use the OpenAI's, Ollama's and Maritaca AI's APIs for interacting with the models easily and for developing small agents.
Example:
from qchat import MaritacaAI
chat = MaritacaAI('secret',
'https://chat.maritaca.ai/api',
'sabiazinho-4', 12000)
chat.add_system_role('Show the factorial from the number which the user will request.')
chat.add_user_question('5')
chat.add_assistant_response('120')
chat.add_user_question('What is the result of what you have just shown?')
chat.complete()
print(chat) # This will show the entire chat!
A simple C++ CSV reader. Inspired by Python Pandas.
Example:
For a better example, see the github page.
QCsv::ReadCsvFile("example.csv"); // read csv file
QCsv::PrintDf(); // print the DataFrame
QCsv::WriteCsv("example.csv"); // write the changes of DataFrame
QCsv::convertAVectorToStringVector(vector);
// a misc utility fucntion to transform vectors.
QCsv::headers[]; // a vector with the DataFrame headers
QCsv::df["header"];
// A map that have the DataFrame structure, like python pandas.
// The example above returns the series that is a string vector.
A micro post utility.
Example:
qpost get 127.0.0.1:8080/countries
qpost post 127.0.0.1:8080/countries '{"Name": "USA", "Language": "English"}'
A simple lua script to make the basic, but better.
Example:
lua qbuild.lua build
clean
run
buildrun
qbuild = {
compiler = "g++",
lang_std = "-std=c++17",
compiler_flags = "-Wall -Wextra -g -O3 -pipe -march=native",
include_path = "-I\"./libs/\"",
src_files = "./src/*.cpp ./src/Game/*.cpp",
linker_flags = "-lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -llua5.4",
obj_name = "qengine",
}
A ls clone, but its two times more faster.
Example:
$ qls / root 4096 Sat Sep 25 15:44:05 2021 usr root 4096 Wed Feb 2 11:44:38 2022 boot root 4096 Tue Sep 26 00:09:39 2006 mnt root 4096 Mon Feb 7 11:36:42 2022 root ...
A fetch, like any other.
Example:
___ ___________________ | | system => Linux | | | hostname => pi.org | \/ / kernel => 5.15.19 | / arch => x86_64 \ / ___________________
A calculator made with the python eval() function.
Example:
[0]> 2+2*((3+2)/2) 7.0 [1]> exit
Contact: henriquesstobbe@gmail.com
Bitcoin address: bc1q26xvdv00hpca02v5nv86yft62jyvxu7s9z7yze