Skip to content

Instantly share code, notes, and snippets.

@macd2
macd2 / get_candles.py
Last active January 4, 2021 06:29
jesse-bot multi-symbol-download allows you to download multiple symbols in a loop without the need of manually inserting each symbol
# 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_)
@macd2
macd2 / sql.py
Last active December 6, 2018 13:52 — forked from jorisvandenbossche/sql.py
Patched version of pandas.io.sql to support PostgreSQL
"""
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
@macd2
macd2 / webstorm64.vmoptions
Created November 20, 2018 21:10 — forked from bitclaw/webstorm64.vmoptions
Jetbrains Custom VM Options Optimized Configuration: Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
# 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
@macd2
macd2 / 60-jetbrains.conf
Last active August 15, 2018 20:45 — forked from bittner/60-jetbrains.conf
Inotify configuration for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). Create this file with e.g. `sudo vim /etc/sysctl.d/60-jetbrains.conf`
# 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
@macd2
macd2 / README.md
Created January 14, 2018 14:41 — forked from hofmannsven/README.md
My simply Git Cheatsheet