Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| <artifacts_info> | |
| The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity. | |
| # Good artifacts are... | |
| - Substantial content (>15 lines) | |
| - Content that the user is likely to modify, iterate on, or take ownership of | |
| - Self-contained, complex content that can be understood on its own, without context from the conversation | |
| - Content intended for eventual use outside the conversation (e.g., reports, emails, presentations) | |
| - Content likely to be referenced or reused multiple times |
| # add this file to YOUR_PROJECT_ROOT | |
| from YOUR_PROJECT_ROOT.symbols_ import symbols | |
| from jesse import register_custom_exception_handler | |
| from jesse.modes import import_candles_mode | |
| from jesse.services import db | |
| from jesse.routes import router | |
| def get_candles(start_date, routes_, extra_candles_): | |
| router.set_routes(routes_) |
| """ | |
| Patched version to support PostgreSQL | |
| (original version: https://github.com/pydata/pandas/blob/v0.13.1/pandas/io/sql.py) | |
| Adapted functions are: | |
| - added _write_postgresql | |
| - updated table_exist | |
| - updated get_sqltype | |
| - updated get_schema | |
| - fix python3 compatibility |
| # custom WebStorm VM options, this configuration also works well for other IDEs like phpstorm, pycharm..etc. | |
| -Xms1024m | |
| -Xmx2048m | |
| -XX:ReservedCodeCacheSize=240m | |
| -XX:+UseConcMarkSweepGC | |
| -XX:SoftRefLRUPolicyMSPerMB=50 | |
| -ea | |
| -Dsun.io.useCanonCaches=false | |
| -Djava.net.preferIPv4Stack=true |
| # Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). | |
| # Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and | |
| # run `sudo service procps start` or reload. | |
| # Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit | |
| # | |
| # More information resources: | |
| # -$ man inotify # manpage | |
| # -$ man sysctl.conf # manpage | |
| # -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/