albertveli / howtogpt Goto Github PK
View Code? Open in Web Editor NEWOpenAI Chat Completion example python script
License: MIT License
OpenAI Chat Completion example python script
License: MIT License
Simple openai chatcompletion python script based on https://gynvael.coldwind.pl/?lang=en&id=771 $ ./howtogpt.py -h Usage: ./howtogpt.py [-h] [-r] [-m <system>] <question> Use -m raw (or -r) for a raw question or the name of any system for a cmdline. Default value is "ubuntu". EXAMPLES $ ./howtogpt.py reverse lines in one file tac <filename> $ ./howtogpt.py -m powershell reverse lines in one file Get-Content -Path "file.txt" | Select-Object -Reverse | Set-Content -Path "reversed.txt" $ ./howtogpt.py -r describe the gecos field in a unix password file The GECOS field in a Unix password file contains general information about a user. It typically includes the user's full name, contact information, office location, and other optional details. This field is primarily used for administrative purposes and may vary depending on the Unix system in use. # Create symlink to howtogpt.py in ~/bin $ cd ~/bin $ ln -s <path to howtogpt.py> howto # Make sure ~/bin is in $PATH $ echo $PATH | tr ':' '\n' | grep $HOME /home/albert/bin # now howto can be run from any directory $ howto convert heic image to png heif-convert image.heic image.png $ howto -r what are the fundamental axioms in mathematical proofs The fundamental axioms vary depending on the branch of mathematics. However, some common axioms include: 1. Peano axioms: These axioms define the properties of natural numbers, such as the existence of zero, successor function, and induction principle. 2. Euclidean axioms: These axioms describe the properties of plane geometry, including the existence of points, lines, and angles. 3. Field axioms: These axioms define the properties of arithmetic operations and algebraic structures like groups, rings, and fields. 4. Zermelo-Fraenkel set theory axioms: These axioms provide a foundation for set theory, including principles of existence, extensionality, and power sets. 5. Continuum axioms: These axioms describe properties of real numbers, including completeness and the least upper bound property. LICENSE The openai examples use the MIT license and this is basically an openai example with some cmdline flag parsing so it feels appropriate to use the same. $ ./howtogpt.py -r Can you generate an MIT license text for a project named HowtoGPT? MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of the HowtoGPT project and associated documentation files (the "Project"), to deal in the Project without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Project, and to permit persons to whom the Project 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 Project. THE PROJECT 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 PROJECT OR THE USE OR OTHER DEALINGS IN THE PROJECT. Good luck, have fun! //Albert
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.