More examples¶
The example repository
contains more examples you can explore after the workshop. Each directory
has a prompt.md / prompts.md with the prompts used and a final/
directory with an example result.
Python¶
| Example | Task | Prompts |
|---|---|---|
python/countries/ |
Build a REST API client for restcountries.com and a tabbed Qt user interface, step by step over six prompts | prompt.md |
python/qt_user_interface/ |
Create a Qt user interface (via qtpy) for a beam model class |
prompt.md |
python/general/ |
A Qt QMainWindow application and a directory-traversal command-line tool |
prompts.md |
C++¶
| Example | Task | Prompts |
|---|---|---|
cpp/calfem_cpp/ |
Port a CALFEM Python element function (beam1s) to C++ with Eigen |
prompt.md |
cpp/documenting_cpp/ |
Add Doxygen documentation to an existing C++ class | prompt.md |
cpp/imgui_glfw/ |
Create an ImGui/GLFW application with CMake and vcpkg | prompt.md |
cpp/particles/ |
Create a raylib project skeleton and an Eigen-based particle system | prompts.md |
cpp/objsolver/ |
Agent-driven benchmarking and optimisation of a large FEM solver (see Demo) |
Documentation¶
| Example | Task | Prompts |
|---|---|---|
general/latex_to_rst/ |
Convert a CALFEM manual page from LaTeX to reStructuredText with separate MATLAB/Python sections | prompt.md |
general/updating_docs/ |
Turn a MATLAB-only manual chapter into a single-source MATLAB/Python chapter using NumPy | prompt.md |